Update status label when reopening a report based on closed status #6

Merged
Bart van der Braak merged 4 commits from Alaska/blender-bot:reset-to-previous into main 2024-10-01 12:39:44 +02:00
Showing only changes of commit f6eaf2460d - Show all commits

View File

@ -46,7 +46,7 @@ def issues_event(data):
# experiencing the issue.
new_status = "Status/Needs Triage"
for label in issue_labels:
if label["name"].startswith(status_prefix)
if label["name"].startswith(status_prefix):
bartvdbraak marked this conversation as resolved Outdated

Shouldn't this be:

if label["name"].startswith(status_prefix):
Shouldn't this be: ``` if label["name"].startswith(status_prefix): ```

You're right, I've fixed it.

You're right, I've fixed it.
if label["name"] not in status_closed:
# Issue was reopened and had a new status label set.
# So skip setting a new one.