aboutsummaryrefslogtreecommitdiff
path: root/labbot/addons
diff options
context:
space:
mode:
authorJan200101 <sentrycraft123@gmail.com>2023-07-21 08:37:30 +0200
committerJan200101 <sentrycraft123@gmail.com>2023-07-21 08:37:30 +0200
commit55aea3b57dca0a1e226003f07f8e3ab97ada4961 (patch)
tree175e93f34b104cde82ebcecc74d2a0b47d47a02a /labbot/addons
parent608caf34d32131be21c873549ab71517ecf82517 (diff)
downloadlab-bot-55aea3b57dca0a1e226003f07f8e3ab97ada4961.tar.gz
lab-bot-55aea3b57dca0a1e226003f07f8e3ab97ada4961.zip
Abort Merge Request creation when any relevant Merge Request was found
Diffstat (limited to 'labbot/addons')
-rw-r--r--labbot/addons/merge-stable.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/labbot/addons/merge-stable.py b/labbot/addons/merge-stable.py
index 493887f..1a2904f 100644
--- a/labbot/addons/merge-stable.py
+++ b/labbot/addons/merge-stable.py
@@ -51,8 +51,9 @@ async def issue_update_hook(event, gl, *args, **kwargs):
"source_branch": branch,
"target_branch": config["stable_branch"]
}):
- if merge_data["state"] == "opened":
- merge_exists = True
+ # We have found a merge request, we cannot sanely re-merge again.
+ merge_exists = True
+ break
if merge_exists:
log.debug(f"merge for `{branch}` already exists")