Fix all reports being reopened as confirmed #5

Merged
Bart van der Braak merged 1 commits from :fix-reopening-as-confirm into main 2024-08-15 15:52:14 +02:00
Showing only changes of commit 2efa246af8 - Show all commits

View File

@ -43,11 +43,8 @@ def issues_event(data):
if label["name"].startswith(status_prefix) and label["name"] not in status_closed: if label["name"].startswith(status_prefix) and label["name"] not in status_closed:
return return
# Set needs triage or confirmed depending if report was classified. # Set to Needs Triage
new_status = "Status/Needs Triage" new_status = "Status/Needs Triage"
for label in issue_labels:
if label["name"].startswith(type_prefix) and label["name"] != "Type/Report":
new_status = "Status/Confirmed"
else: else:
return return