Skip to content

Instantly share code, notes, and snippets.

@ritiek
Created June 6, 2018 17:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ritiek/135703a33abc8b8ae663d33edb1a9693 to your computer and use it in GitHub Desktop.
Save ritiek/135703a33abc8b8ae663d33edb1a9693 to your computer and use it in GitHub Desktop.
Fork all your starred repositories to an organization you own
from github import Github
TOKEN =
ORGANIZATION =
g = Github(TOKEN)
organ = g.get_organization(ORGANIZATION)
user = g.get_user()
for repo in user.get_starred():
fork = organ.create_fork(repo)
print(fork)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment