Created
October 26, 2018 19:26
-
-
Save amueller/5d6599cd6fb1b230eb85be890a55bdda to your computer and use it in GitHub Desktop.
list recent commits by author
This file contains hidden or 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 | |
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