Merge "New headers argument for github.Issue.Issue"
diff --git a/jeepyb/cmd/close_pull_requests.py b/jeepyb/cmd/close_pull_requests.py
index 8abeda9..f3c4f4f 100644
--- a/jeepyb/cmd/close_pull_requests.py
+++ b/jeepyb/cmd/close_pull_requests.py
@@ -95,8 +95,9 @@
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")