Skip to content

Instantly share code, notes, and snippets.

import github3, os, subprocess
#Also requires gh CLI && gh extension install geoffreywiseman/gh-actuse
# You must create this admin auth-token at https://github.com/settings/tokens with admin:org permissions
# You must authorize for each & every org by clicking the Enable/Disable SSO button-Authorize
# Export it as env var GH_PAT
token = os.getenv('GH_PAT')
g = github3.login(token=token)