diff options
author | Jan200101 <sentrycraft123@gmail.com> | 2024-02-15 09:31:16 +0100 |
---|---|---|
committer | Jan200101 <sentrycraft123@gmail.com> | 2024-02-15 09:31:16 +0100 |
commit | 42f7ce90cbf320ce47b7a14d2418545368204c31 (patch) | |
tree | 0358acf6e884bb6d7bdc2751e71ba424697571b2 /labbot/addons/merge-stable.py | |
parent | ecb3f65dff8d8e161e2dc6a8f3a361147dc6ed2d (diff) | |
download | lab-bot-42f7ce90cbf320ce47b7a14d2418545368204c31.tar.gz lab-bot-42f7ce90cbf320ce47b7a14d2418545368204c31.zip |
check if issue is open before opening stable merge request
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"]: |