Created
June 6, 2018 17:37
-
-
Save ritiek/135703a33abc8b8ae663d33edb1a9693 to your computer and use it in GitHub Desktop.
Fork all your starred repositories to an organization you own
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
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