aboutsummaryrefslogtreecommitdiff
path: root/labbot/addons
diff options
context:
space:
mode:
Diffstat (limited to 'labbot/addons')
-rw-r--r--labbot/addons/merge-stable.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/labbot/addons/merge-stable.py b/labbot/addons/merge-stable.py
index 8e4eff6..9b2f133 100644
--- a/labbot/addons/merge-stable.py
+++ b/labbot/addons/merge-stable.py
@@ -23,6 +23,9 @@ async def issue_update_hook(event, gl, *args, **kwargs):
issue_url = f"/projects/{event.project_id}/issues/{issue_id}"
issue_data = await gl.getitem(issue_url)
+ if issue_data["state"] != "opened":
+ log.debug(f"{issue_id} is closed, not opening merge request")
+ return
branches = {}
if config["merge_label"] in issue_data["labels"]: