Skip to content

Commit e9ea28d

Browse files
Control PR: break pipeline if no PRs
1 parent 12f1302 commit e9ea28d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cmd/merkely/controlPullRequest.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,8 @@ func parseBitbucketResponse(commit, password, username string, response *request
156156
}
157157
if len(pullRequestsEvidence) > 0 {
158158
isCompliant = true
159+
} else {
160+
return isCompliant, pullRequestsEvidence, fmt.Errorf("No pull requests found for given commit %s", commit)
159161
}
160162
return isCompliant, pullRequestsEvidence, nil
161163
}

0 commit comments

Comments
 (0)