Skip to content

Instantly share code, notes, and snippets.

@d0ugal
Forked from jd/auto-star-openstack-repo
Last active May 25, 2016 13:34
Show Gist options
  • Save d0ugal/ede45cd14f32d0790b05a6f134bdc51a to your computer and use it in GitHub Desktop.
Save d0ugal/ede45cd14f32d0790b05a6f134bdc51a to your computer and use it in GitHub Desktop.
Starring all OpenStack Git repositories
#!/usr/bin/env python
from github import Github
import os
TOKEN = os.environ.get("GITHUB_TOKEN")
USERS = ("openstack", "stackforge", "openstack-dev", "openstack-infra", "openstack-attic", "stackforge-attic", "hackebrot")
g = Github(TOKEN)
me = g.get_user()
for username in USERS:
user = g.get_user(username)
for repo in user.get_repos():
me.add_to_starred(repo)
print("Starred %s" % repo.full_name)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment