MCPcopy Create free account
hub / github.com/apache/arrow / close_issue

Method close_issue

dev/merge_arrow_pr.py:301–315  ·  view source on GitHub ↗
(self, number, comment)

Source from the content-addressed store, hash-verified

299 headers=self.headers)
300
301 def close_issue(self, number, comment):
302 issue_url = f'{self.github_api}/issues/{number}'
303 comment_url = f'{self.github_api}/issues/{number}/comments'
304
305 r = requests.post(comment_url, json={
306 "body": comment}, headers=self.headers)
307 if not r.ok:
308 raise ValueError(
309 f"Failed request: {comment_url}:{r.status_code} -> {r.json()}")
310
311 r = requests.patch(
312 issue_url, json={"state": "closed"}, headers=self.headers)
313 if not r.ok:
314 raise ValueError(
315 f"Failed request: {issue_url}:{r.status_code} -> {r.json()}")
316
317 def assign_milestone(self, number, version):
318 url = f'{self.github_api}/issues/{number}'

Callers 1

resolveMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected