Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions github/github-accessors.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions github/github-accessors_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion github/repos.go
Original file line number Diff line number Diff line change
Expand Up @@ -1010,7 +1010,8 @@ type Branch struct {
// such as 'List branches'. In such cases, if branch protection is
// enabled, Protected will be `true` but this will be nil, and
// additional protection details can be obtained by calling GetBranch().
Protection *Protection `json:"protection,omitempty"`
Protection *Protection `json:"protection,omitempty"`
ProtectionURL *string `json:"protection_url,omitempty"`
}

// Protection represents a repository branch's protection.
Expand Down
Loading