This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |