Skip to content

Instantly share code, notes, and snippets.

@amueller amueller/commits.py
Created Oct 26, 2018

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