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

Function is_old_issue

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

Source from the content-addressed store, hash-verified

29
30# Define utility function: Cf criteria in the comment of the script for the criteria
31def is_old_issue(issue):
32 has_assignees = (len(issue["assignees"]) > 0)
33 has_help_wanted_label = False
34 has_internal_label = False
35 labels = issue["labels"]
36 for label in labels:
37 if label["name"] == "HELP_WANTED":
38 has_help_wanted_label = True
39 elif label["name"] == "INTERNAL":
40 has_internal_label = True
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

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected