Thanks to visit codestin.com
Credit goes to github.com

Skip to content

"cancelInvitation" not found #403

@Timmmy-nlb

Description

@Timmmy-nlb

I get error Unhandled error: TypeError: github.orgs.cancelInvitation is not a function with this code:

- 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.

Another little question:
I use allway in my GH-Workflows the octokit methods with "github." instead of "octokit.rest."
Wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: SupportAny questions, information, or general needs around the SDK or GitHub APIs

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions