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

Commit

Permalink
Add regex option to Branches API
Browse files Browse the repository at this point in the history
  • Loading branch information
Denis Urban committed Jun 1, 2023
1 parent 46b2e30 commit 628b54e
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 628b54e

Please sign in to comment.