Skip to content

Instantly share code, notes, and snippets.

@amueller
Created October 26, 2018 19:26
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 amueller/5d6599cd6fb1b230eb85be890a55bdda to your computer and use it in GitHub Desktop.
Save amueller/5d6599cd6fb1b230eb85be890a55bdda to your computer and use it in GitHub Desktop.
list recent commits by author
from github import Github
gh = Github("SECRETKEY")
rep = gh.get_repo("scikit-learn/scikit-learn")
org = gh.get_organization("scikit-learn")
org_members = list(org.get_members())
import datetime
n_commits = {}
limit = datetime.datetime(2017, 1, 1)
for author in org_members:
commits = rep.get_commits(author=author, since=limit)
n_commits[author.name] = len(list(commits))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment