Skip to content

Commit

Permalink
Merge pull request #1729 from C0mp4ct/add_regex_to_branches
Browse files Browse the repository at this point in the history
Add regex option to Branches API
  • Loading branch information
svanharmelen authored Jun 1, 2023
2 parents 46b2e30 + 628b54e commit 6d7ebb9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions branches.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ func (b Branch) String() string {
type ListBranchesOptions struct {
ListOptions
Search *string `url:"search,omitempty" json:"search,omitempty"`
Regex *string `url:"regex,omitempty" json:"regex,omitempty"`
}

// ListBranches gets a list of repository branches from a project, sorted by
Expand Down

0 comments on commit 6d7ebb9

Please sign in to comment.