Skip to content

Instantly share code, notes, and snippets.

@ritiek

ritiek/forker.py

Created Jun 6, 2018
Embed
What would you like to do?
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
You can’t perform that action at this time.