Commit af10a684 authored by Carmine Rizzo's avatar Carmine Rizzo
Browse files

Merge branch 'correcting_mergetest' into 'main'

Correcting mergetest

See merge request li-trial!55
parents 8dabc8e7 88a4ad35
Pipeline #3237 failed with stages
in 12 seconds
......@@ -23,13 +23,15 @@ def do (commandline):
print ("Searching for corresponding MR...")
mrs = gapi(f"merge_requests?source_branch={crCommitBranch}")
mrs = gapi(f"merge_requests?source_branch={crCommitBranch}&state=opened")
if len(mrs) == 0:
print ("No MR found... aborting")
exit()
if len(mrs) > 1:
print (f"{len(mrs)} MRs found, 1 expected - aborting")
for m in mrs:
pprint.pprint(m)
exit(-1)
mr = mrs[0]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment