Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 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
32 changes: 32 additions & 0 deletions github/github-accessors.go

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

37 changes: 37 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.

4 changes: 4 additions & 0 deletions github/repos.go
Original file line number Diff line number Diff line change
Expand Up @@ -847,6 +847,8 @@ type Protection struct {
BlockCreations *BlockCreations `json:"block_creations,omitempty"`
LockBranch *LockBranch `json:"lock_branch,omitempty"`
AllowForkSyncing *AllowForkSyncing `json:"allow_fork_syncing,omitempty"`
RequiredSignatures *SignaturesProtectedBranch `json:"required_signatures,omitempty"`
URL *string `json:"url,omitempty"`
}

// BlockCreations represents whether users can push changes that create branches. If this is true, this
Expand Down Expand Up @@ -1015,6 +1017,8 @@ type ProtectionRequest struct {

// RequiredStatusChecks represents the protection status of a individual branch.
type RequiredStatusChecks struct {
URL *string `json:"url,omitempty"`
ContextsURL *string `json:"contexts_url,omitempty"`
// Require branches to be up to date before merging. (Required.)
Strict bool `json:"strict"`
// The list of status checks to require in order to merge into this
Expand Down