Skip to content

Commit

Permalink
fix(gitlab): search only for release branch in mr
Browse files Browse the repository at this point in the history
  • Loading branch information
bastianccm committed Mar 22, 2022
1 parent d20e8e0 commit 49ccf33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/gitlab.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func (gitlab Gitlab) findOpenMergeRequest() (int, error) {
State string `json:"state"`
}

if err := gitlab.request(http.MethodGet, fmt.Sprintf("projects/%s/merge_requests", url.PathEscape(gitlab.repo)), http.StatusOK, nil, &mrs); err != nil {
if err := gitlab.request(http.MethodGet, fmt.Sprintf("projects/%s/merge_requests?state=opened&source_branch=semanticore%2frelease", url.PathEscape(gitlab.repo)), http.StatusOK, nil, &mrs); err != nil {
return 0, fmt.Errorf("unable to get merge requests: %w", err)
}

Expand Down

0 comments on commit 49ccf33

Please sign in to comment.