MCPcopy
hub / github.com/OWASP/CheatSheetSeries / is_old_pull_request

Function is_old_pull_request

scripts/Identify_Old_Issue_And_PR.py:43–50  ·  view source on GitHub ↗
(issue)

Source from the content-addressed store, hash-verified

41 return has_assignees and (not has_help_wanted_label and not has_internal_label)
42
43def is_old_pull_request(issue):
44 has_waiting_for_update_label = False
45 labels = issue["labels"]
46 for label in labels:
47 if label["name"] == "WAITING_UPDATE":
48 has_waiting_for_update_label = True
49 break
50 return has_waiting_for_update_label
51
52# Grab the list of open Issues/PR
53buffer = "Grab the list of open Issues/PR via the GitHub API...\n"

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected