From 330d51d5cc1c5c7b0878dfb630fcae6d43403412 Mon Sep 17 00:00:00 2001 From: sashan Date: Mon, 11 Aug 2025 12:15:31 +0200 Subject: [PATCH] check hold label before merging --- review-tools/ghmerge | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/review-tools/ghmerge b/review-tools/ghmerge index 3a86bb6..d1914e6 100755 --- a/review-tools/ghmerge +++ b/review-tools/ghmerge @@ -180,6 +180,7 @@ from __future__ import print_function import json, sys rtm_set=0 urgent_set=0 +has_hold=0 input = json.load(sys.stdin) # Dont do this check if its not for the openssl repo if (input["base"]["repo"]["name"] != "openssl"): @@ -189,8 +190,14 @@ for l in input["labels"]: rtm_set=1 if (l["name"] == "severity: urgent"): urgent_set=1 + if (l["name"] == "hold: committer discussion"): + has_hold=1 + if (rtm_set == 0 and urgent_set == 0): print("Not ready to merge") + +if (has_hold == 1): + print("Not ready to merge") ' <$PR_URL_CONTENTS) if [ "$REPO_CHECK" == "Not ready to merge" ]