Skip to content

Instantly share code, notes, and snippets.

@portothree
Created July 7, 2021 14:09
Show Gist options
  • Select an option

  • Save portothree/2fa0f64d01ec3b1d23adc57c9ba46bd5 to your computer and use it in GitHub Desktop.

Select an option

Save portothree/2fa0f64d01ec3b1d23adc57c9ba46bd5 to your computer and use it in GitHub Desktop.
All github invitations to be collaborator

Currently there's no UI to check for all invitations to collaborate in projects, but Github API has an endpoint for that.

You need a personal access token with repo:invite rights in order to view the list of your invitations.

curl -H "Authorization: token YOUR_PERSONAL_ACCESS_TOKEN" \
https://api.github.com/user/repository_invitations
curl -H "Authorization: token YOUR_PERSONAL_ACCESS_TOKEN" \
https://api.github.com/user/repository_invitations | \
  jq '.[].html_url'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment