Skip to content

Instantly share code, notes, and snippets.

@henchc
Last active July 14, 2019 21:18
Show Gist options
  • Save henchc/3b6dab453c60384f8f9f1a06ca4856d3 to your computer and use it in GitHub Desktop.
Save henchc/3b6dab453c60384f8f9f1a06ca4856d3 to your computer and use it in GitHub Desktop.
import os
TOKEN = os.environ.get('HENCHBOT_TOKEN')
for repo in ['binderhub', 'repo2docker']:
if commit_info[repo]['live'] != commit_info[repo]['latest']:
res = requests.post('https://api.github.com/repos/jupyterhub/mybinder.org-deploy/forks',
headers={'Authorization': 'token {}'.format(TOKEN)})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment