Skip to content
This repository was archived by the owner on Mar 21, 2025. It is now read-only.

Commit 47a98fb

Browse files
author
Michael Sauter
committed
Exclude PR=0 as well
1 parent 9d55158 commit 47a98fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/sonar/quality_gate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ type QualityGateGetParams struct {
4747

4848
func (c *Client) QualityGateGet(p QualityGateGetParams) (*QualityGate, error) {
4949
urlPath := "/api/qualitygates/project_status?projectKey=" + p.ProjectKey
50-
if p.PullRequest != "" {
50+
if p.PullRequest != "" && p.PullRequest != "0" {
5151
urlPath = urlPath + "&pullRequest=" + p.PullRequest
5252
} else if p.Branch != "" {
5353
urlPath = urlPath + "&branch=" + p.Branch

0 commit comments

Comments
 (0)