Skip to content

Commit 330d51d

Browse files
committed
check hold label before merging
1 parent 63c657b commit 330d51d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

review-tools/ghmerge

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ from __future__ import print_function
180180
import json, sys
181181
rtm_set=0
182182
urgent_set=0
183+
has_hold=0
183184
input = json.load(sys.stdin)
184185
# Dont do this check if its not for the openssl repo
185186
if (input["base"]["repo"]["name"] != "openssl"):
@@ -189,8 +190,14 @@ for l in input["labels"]:
189190
rtm_set=1
190191
if (l["name"] == "severity: urgent"):
191192
urgent_set=1
193+
if (l["name"] == "hold: committer discussion"):
194+
has_hold=1
195+
192196
if (rtm_set == 0 and urgent_set == 0):
193197
print("Not ready to merge")
198+
199+
if (has_hold == 1):
200+
print("Not ready to merge")
194201
' <$PR_URL_CONTENTS)
195202

196203
if [ "$REPO_CHECK" == "Not ready to merge" ]

0 commit comments

Comments
 (0)