MCPcopy Create free account
hub / github.com/OpenHands/OpenHands / remove_candidate_label

Function remove_candidate_label

scripts/auto_close_duplicate_issues.py:257–271  ·  view source on GitHub ↗
(
    repository: str, issue_number: int, *, dry_run: bool
)

Source from the content-addressed store, hash-verified

255
256
257def remove_candidate_label(
258 repository: str, issue_number: int, *, dry_run: bool
259) -> bool:
260 if dry_run:
261 return True
262 try:
263 request_json(
264 f'/repos/{repository}/issues/{issue_number}/labels/{DUPLICATE_CANDIDATE_LABEL}',
265 method='DELETE',
266 )
267 except RuntimeError as exc:
268 if 'HTTP 404' in str(exc):
269 return False
270 raise
271 return True
272
273
274def post_veto_note(repository: str, issue_number: int, *, dry_run: bool) -> bool:

Callers 3

close_issue_as_duplicateFunction · 0.85
mainFunction · 0.85

Calls 1

request_jsonFunction · 0.70

Tested by

no test coverage detected