Fix all reports being reopened as confirmed #5
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user