Skip to content

Commit

Permalink
Add 'approved' to ListMergeRequestsOptions
Browse files Browse the repository at this point in the history
Allow to filters merge requests by their approved status.
Introduced in GitLab 15.11.

Signed-off-by: Richard Kosegi <richard.kosegi@gmail.com>
  • Loading branch information
rkosegi committed Feb 28, 2024
1 parent ceac986 commit 04133d5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions merge_requests.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ func (m MergeRequestDiffVersion) String() string {
// https://docs.gitlab.com/ee/api/merge_requests.html#list-merge-requests
type ListMergeRequestsOptions struct {
ListOptions
Approved *string `url:"approved,omitempty" json:"approved,omitempty"`
State *string `url:"state,omitempty" json:"state,omitempty"`
OrderBy *string `url:"order_by,omitempty" json:"order_by,omitempty"`
Sort *string `url:"sort,omitempty" json:"sort,omitempty"`
Expand Down

0 comments on commit 04133d5

Please sign in to comment.