Skip to content

Commit

Permalink
Exclude PR=0 as well
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelsauter committed Jun 5, 2023
1 parent 9d55158 commit 47a98fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/sonar/quality_gate.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ type QualityGateGetParams struct {

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

0 comments on commit 47a98fb

Please sign in to comment.