Update status label when reopening a report based on closed status #6
@ -51,6 +51,10 @@ def issues_event(data):
|
|||||||
if not event["type"] == "label":
|
if not event["type"] == "label":
|
||||||
# We are only interested in events that modify labels
|
# We are only interested in events that modify labels
|
||||||
continue
|
continue
|
||||||
|
if not event["body"] == "1":
|
||||||
|
# "body" = "1" denotes that the label was added.
|
||||||
|
# And we don't care about labels that were removed.
|
||||||
|
continue
|
||||||
old_label_name = event["label"]["name"]
|
old_label_name = event["label"]["name"]
|
||||||
if not old_label_name.startswith(status_prefix):
|
if not old_label_name.startswith(status_prefix):
|
||||||
# We are only interested in label events that modify `Status/` labels
|
# We are only interested in label events that modify `Status/` labels
|
||||||
|
Loading…
Reference in New Issue
Block a user