New headers argument for github.Issue.Issue
* jeepyb/cmd/close_pull_requests.py: The pygithub module added a new positional argument for headers in the middle of other positional arguments to the __init__ method for CompletableGithubObject. This change passes an empty dict in for it to get the pull request closer working again, and also adds names for the other arguments so they will be easier to diagnose if this happens again. Change-Id: Iea2913a9c76b564e9e5186fb970032696d292c86
This commit is contained in:
parent
a54b0afad6
commit
bbb29ac5d8
@ -95,8 +95,9 @@ def main():
|
||||
for req in pull_requests:
|
||||
vars = dict(project=project)
|
||||
issue_data = {"url": repo.url + "/issues/" + str(req.number)}
|
||||
issue = github.Issue.Issue(req._requester,
|
||||
issue_data,
|
||||
issue = github.Issue.Issue(requester=req._requester,
|
||||
headers={},
|
||||
attributes=issue_data,
|
||||
completed=True)
|
||||
issue.create_comment(MESSAGE % vars)
|
||||
req.edit(state="closed")
|
||||
|
Loading…
x
Reference in New Issue
Block a user