Skip to content

Commit bf1d280

Browse files
fix: Add ProtectionURL field to Repositories.ListBranches response (#3618)
1 parent 21c2976 commit bf1d280

File tree

3 files changed

+21
-1
lines changed

3 files changed

+21
-1
lines changed

github/github-accessors.go

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

github/github-accessors_test.go

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

github/repos.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1010,7 +1010,8 @@ type Branch struct {
10101010
// such as 'List branches'. In such cases, if branch protection is
10111011
// enabled, Protected will be `true` but this will be nil, and
10121012
// additional protection details can be obtained by calling GetBranch().
1013-
Protection *Protection `json:"protection,omitempty"`
1013+
Protection *Protection `json:"protection,omitempty"`
1014+
ProtectionURL *string `json:"protection_url,omitempty"`
10141015
}
10151016

10161017
// Protection represents a repository branch's protection.

0 commit comments

Comments
 (0)