Skip to content

"cancelInvitation" not found #155

Closed
Closed
@Timmmy-nlb

Description

@Timmmy-nlb

Describe the bug
A method, which should be available according to the documentation of octokit, does not exist.
I get error Unhandled error: TypeError: github.orgs.cancelInvitation is not a function.
Other like github.orgs.listPendingInvitations works as expected.

To Reproduce

- name: CancelInvitation
  uses: actions/github-script@v4
  [...]
  script: |
       github.orgs.cancelInvitation({
                org: "organization",
                invitation_id: 00000,
        });

A call from console.log('Test: ', github.orgs); shows that the method is really missing.

Expected behavior
That the method can be used, as the other.

Desktop (please complete the following information):

  • OS: Win10
  • Browser Firefox, Chrome

Additional context
coming from this help ticket octokit/plugin-rest-endpoint-methods.js#403

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions