Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions review-tools/ghmerge
Original file line number Diff line number Diff line change
Expand Up @@ -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"):
Expand All @@ -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" ]
Expand Down