diff options
Diffstat (limited to 'labbot/addons/merge-stable.py')
-rw-r--r-- | labbot/addons/merge-stable.py | 3 |
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"]: |