@@ -751,13 +751,14 @@ type Branch struct {
751751
752752// Protection represents a repository branch's protection.
753753type Protection struct {
754- RequiredStatusChecks * RequiredStatusChecks `json:"required_status_checks"`
755- RequiredPullRequestReviews * PullRequestReviewsEnforcement `json:"required_pull_request_reviews"`
756- EnforceAdmins * AdminEnforcement `json:"enforce_admins"`
757- Restrictions * BranchRestrictions `json:"restrictions"`
758- RequireLinearHistory * RequireLinearHistory `json:"required_linear_history"`
759- AllowForcePushes * AllowForcePushes `json:"allow_force_pushes"`
760- AllowDeletions * AllowDeletions `json:"allow_deletions"`
754+ RequiredStatusChecks * RequiredStatusChecks `json:"required_status_checks"`
755+ RequiredPullRequestReviews * PullRequestReviewsEnforcement `json:"required_pull_request_reviews"`
756+ EnforceAdmins * AdminEnforcement `json:"enforce_admins"`
757+ Restrictions * BranchRestrictions `json:"restrictions"`
758+ RequireLinearHistory * RequireLinearHistory `json:"required_linear_history"`
759+ AllowForcePushes * AllowForcePushes `json:"allow_force_pushes"`
760+ AllowDeletions * AllowDeletions `json:"allow_deletions"`
761+ RequiredConversationResolution * RequiredConversationResolution `json:"required_conversation_resolution"`
761762}
762763
763764// ProtectionRequest represents a request to create/edit a branch's protection.
@@ -849,6 +850,11 @@ type AllowForcePushes struct {
849850 Enabled bool `json:"enabled"`
850851}
851852
853+ // RequiredConversationResolution, if enabled, requires all comments on the pull request to be resolved before it can be merged to a protected branch.
854+ type RequiredConversationResolution struct {
855+ Enabled bool `json:"enabled"`
856+ }
857+
852858// AdminEnforcement represents the configuration to enforce required status checks for repository administrators.
853859type AdminEnforcement struct {
854860 URL * string `json:"url,omitempty"`
0 commit comments