aboutsummaryrefslogtreecommitdiff
path: root/labbot/addons/merge-label.py
diff options
context:
space:
mode:
Diffstat (limited to 'labbot/addons/merge-label.py')
-rw-r--r--labbot/addons/merge-label.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/labbot/addons/merge-label.py b/labbot/addons/merge-label.py
index 2b6dffa..8be84b3 100644
--- a/labbot/addons/merge-label.py
+++ b/labbot/addons/merge-label.py
@@ -98,12 +98,15 @@ async def merge_label_hook(event, gl, *args, **kwargs):
delete_labels.remove(label)
remove_labels = ",".join(delete_labels)
- log.debug(f"Applying {label} to {issue}")
if remove_labels:
log.debug(f"Removing `{remove_labels} from {issue}")
+ await gl.put(base_url, data={
+ "remove_labels": remove_labels,
+ })
+
+ log.debug(f"Applying {label} to {issue}")
await gl.put(base_url, data={
"add_labels": label,
- "remove_labels": remove_labels,
})
except KeyError: