+
Skip to content

fix: Add ProtectionURL field to Repositories.ListBranches response #3618

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载