8000 BLD: make gh_api and github_stats more robust · rohitgupta/matplotlib@7ce0def · GitHub
[go: up one dir, main page]

Skip to content

Commit 7ce0def

Browse files
committed
BLD: make gh_api and github_stats more robust
1 parent 2216260 commit 7ce0def

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tools/gh_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def get_auth_token():
7171
return token
7272

7373
def make_auth_header():
74-
return {'Authorization': 'token ' + get_auth_token()}
74+
return {'Authorization': 'token ' + get_auth_token().replace("\n","")}
7575

7676
def post_issue_comment(project, num, body):
7777
url = 'https://api.github.com/repos/{project}/issues/{num}/comments'.format(project=project, num=num)

tools/github_stats.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ def report(issues, show_urls=False):
162162
state='closed',
163163
auth=True,
164164
)
165-
issues, pulls = split_pulls(issues_and_pulls)
165+
issues, pulls = split_pulls(issues_and_pulls, project=project)
166166
else:
167167
issues = issues_closed_since(since, project=project, pulls=False)
168168
pulls = issues_closed_since(since, project=project, pulls=True)

0 commit comments

Comments
 (0)
0