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 json,requests,pprint | |
gh_url = "https://api.github.com" | |
username = 'wehappyfew' | |
# a token is needed for 2 Factor Auth, otherwise only Name/Pass | |
custom_token = 'blablablablablablabla' # a custom personal token from GitHub | |
repo_name = 'your_repo_name' | |
new_default_branch = 'something' # this is going to change every time | |
#encode to JSON |