Skip to content

Commit f47f8fe

Browse files
authored
Add RequiredConversationResolution ProtectionRequest field (#1959)
Fixes #1945.
1 parent b338ce6 commit f47f8fe

File tree

3 files changed

+21
-0
lines changed

3 files changed

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

781784
// RequiredStatusChecks represents the protection status of a individual branch.

0 commit comments

Comments
 (0)