-
Notifications
You must be signed in to change notification settings - Fork 680
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #696 from bashtage/docs-0.8
DOC: Finish docs for 0.8pre
- Loading branch information
Showing
5 changed files
with
71 additions
and
13 deletions.
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
""" | ||
Get a list of contributors between now and a start date | ||
""" | ||
|
||
import datetime as dt | ||
import os | ||
|
||
from github import Github | ||
|
||
# or using an access token | ||
g = Github(os.environ.get("GITHUB_API_KEY")) | ||
|
||
repo = g.get_repo("pydata/pandas-datareader") | ||
|
||
start = dt.datetime(2018, 9, 12, 0, 0, 0) | ||
pulls = repo.get_pulls(state="closed", sort="updated", base="master", direction="desc") | ||
|
||
users = set() | ||
for i, p in enumerate(pulls): | ||
print(f"{i}: {p.number}") | ||
if p.merged and p.merged_at >= start: | ||
users.update([p.user.name]) | ||
if p.updated_at < start: | ||
break | ||
|
||
contrib = sorted((c for c in users if c), key=lambda s: s.split(" ")[-1]) | ||
|
||
for c in contrib: | ||
print(f"- {c}") |
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