Skip to content

Commit

Permalink
Add RequiredConversationResolution ProtectionRequest field (#1959)
Browse files Browse the repository at this point in the history
Fixes #1945.
  • Loading branch information
orlovm authored Jul 10, 2021
1 parent b338ce6 commit f47f8fe
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
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.

10 changes: 10 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: 3 additions & 0 deletions github/repos.go
Original file line number Diff line number Diff line change
Expand Up @@ -776,6 +776,9 @@ type ProtectionRequest struct {
AllowForcePushes *bool `json:"allow_force_pushes,omitempty"`
// Allows deletion of the protected branch by anyone with write access to the repository.
AllowDeletions *bool `json:"allow_deletions,omitempty"`
// RequiredConversationResolution, if set to true, requires all comments
// on the pull request to be resolved before it can be merged to a protected branch.
RequiredConversationResolution *bool `json:"required_conversation_resolution,omitempty"`
}

// RequiredStatusChecks represents the protection status of a individual branch.
Expand Down

0 comments on commit f47f8fe

Please sign in to comment.