diff options
author | Jan200101 <sentrycraft123@gmail.com> | 2023-07-21 08:37:30 +0200 |
---|---|---|
committer | Jan200101 <sentrycraft123@gmail.com> | 2023-07-21 08:37:30 +0200 |
commit | 55aea3b57dca0a1e226003f07f8e3ab97ada4961 (patch) | |
tree | 175e93f34b104cde82ebcecc74d2a0b47d47a02a /labbot/addons/merge-stable.py | |
parent | 608caf34d32131be21c873549ab71517ecf82517 (diff) | |
download | lab-bot-55aea3b57dca0a1e226003f07f8e3ab97ada4961.tar.gz lab-bot-55aea3b57dca0a1e226003f07f8e3ab97ada4961.zip |
Abort Merge Request creation when any relevant Merge Request was found
Diffstat (limited to 'labbot/addons/merge-stable.py')
-rw-r--r-- | labbot/addons/merge-stable.py | 5 |
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") |