@@ -754,13 +754,14 @@ type Branch struct {
754
754
755
755
// Protection represents a repository branch's protection.
756
756
type Protection struct {
757
- RequiredStatusChecks * RequiredStatusChecks `json:"required_status_checks"`
758
- RequiredPullRequestReviews * PullRequestReviewsEnforcement `json:"required_pull_request_reviews"`
759
- EnforceAdmins * AdminEnforcement `json:"enforce_admins"`
760
- Restrictions * BranchRestrictions `json:"restrictions"`
761
- RequireLinearHistory * RequireLinearHistory `json:"required_linear_history"`
762
- AllowForcePushes * AllowForcePushes `json:"allow_force_pushes"`
763
- AllowDeletions * AllowDeletions `json:"allow_deletions"`
757
+ RequiredStatusChecks * RequiredStatusChecks `json:"required_status_checks"`
758
+ RequiredPullRequestReviews * PullRequestReviewsEnforcement `json:"required_pull_request_reviews"`
759
+ EnforceAdmins * AdminEnforcement `json:"enforce_admins"`
760
+ Restrictions * BranchRestrictions `json:"restrictions"`
761
+ RequireLinearHistory * RequireLinearHistory `json:"required_linear_history"`
762
+ AllowForcePushes * AllowForcePushes `json:"allow_force_pushes"`
763
+ AllowDeletions * AllowDeletions `json:"allow_deletions"`
764
+ RequiredConversationResolution * RequiredConversationResolution `json:"required_conversation_resolution"`
764
765
}
765
766
766
767
// ProtectionRequest represents a request to create/edit a branch's protection.
@@ -852,6 +853,11 @@ type AllowForcePushes struct {
852
853
Enabled bool `json:"enabled"`
853
854
}
854
855
856
+ // RequiredConversationResolution, if enabled, requires all comments on the pull request to be resolved before it can be merged to a protected branch.
857
+ type RequiredConversationResolution struct {
858
+ Enabled bool `json:"enabled"`
859
+ }
860
+
855
861
// AdminEnforcement represents the configuration to enforce required status checks for repository administrators.
856
862
type AdminEnforcement struct {
857
863
URL * string `json:"url,omitempty"`
0 commit comments