(issue)
| 29 | |
| 30 | # Define utility function: Cf criteria in the comment of the script for the criteria |
| 31 | def 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 | |
| 43 | def is_old_pull_request(issue): |
| 44 | has_waiting_for_update_label = False |
no outgoing calls
no test coverage detected