Skip to content
This repository has been archived by the owner on Dec 10, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1998 from adamcohen2/add-more-filters-to-group-mi…
Browse files Browse the repository at this point in the history
…lestones-endpoint

Add more filters to List group milestones
  • Loading branch information
svanharmelen authored Aug 26, 2024
2 parents 825df94 + 466b535 commit 2269380
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions group_milestones.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,19 @@ func (m GroupMilestone) String() string {
// https://docs.gitlab.com/ee/api/group_milestones.html#list-group-milestones
type ListGroupMilestonesOptions struct {
ListOptions
IIDs *[]int `url:"iids[],omitempty" json:"iids,omitempty"`
State *string `url:"state,omitempty" json:"state,omitempty"`
Title *string `url:"title,omitempty" json:"title,omitempty"`
Search *string `url:"search,omitempty" json:"search,omitempty"`
IncludeParentMilestones *bool `url:"include_parent_milestones,omitempty" json:"include_parent_milestones,omitempty"`
IIDs *[]int `url:"iids[],omitempty" json:"iids,omitempty"`
State *string `url:"state,omitempty" json:"state,omitempty"`
Title *string `url:"title,omitempty" json:"title,omitempty"`
Search *string `url:"search,omitempty" json:"search,omitempty"`
SearchTitle *string `url:"search_title,omitempty" json:"search_title,omitempty"`
IncludeParentMilestones *bool `url:"include_parent_milestones,omitempty" json:"include_parent_milestones,omitempty"`
IncludeAncestors *bool `url:"include_ancestors,omitempty" json:"include_ancestors,omitempty"`
IncludeDescendents *bool `url:"include_descendents,omitempty" json:"include_descendents,omitempty"`
UpdatedBefore *ISOTime `url:"updated_before,omitempty" json:"updated_before,omitempty"`
UpdatedAfter *ISOTime `url:"updated_after,omitempty" json:"updated_after,omitempty"`
ContainingDate *ISOTime `url:"containing_date,omitempty" json:"containing_date,omitempty"`
StartDate *ISOTime `url:"start_date,omitempty" json:"start_date,omitempty"`
EndDate *ISOTime `url:"end_date,omitempty" json:"end_date,omitempty"`
}

// ListGroupMilestones returns a list of group milestones.
Expand Down

0 comments on commit 2269380

Please sign in to comment.