@@ -1074,6 +1074,7 @@ type BranchProtectionRule struct {
1074
1074
RequiredConversationResolutionLevel * string `json:"required_conversation_resolution_level,omitempty"`
1075
1075
AuthorizedActorsOnly * bool `json:"authorized_actors_only,omitempty"`
1076
1076
AuthorizedActorNames []string `json:"authorized_actor_names,omitempty"`
1077
+ RequireLastPushApproval * bool `json:"require_last_push_approval,omitempty"`
1077
1078
}
1078
1079
1079
1080
// ProtectionChanges represents the changes to the rule if the BranchProtection was edited.
@@ -1093,6 +1094,7 @@ type ProtectionChanges struct {
1093
1094
RequiredStatusChecks * RequiredStatusChecksChanges `json:"required_status_checks,omitempty"`
1094
1095
RequiredStatusChecksEnforcementLevel * RequiredStatusChecksEnforcementLevelChanges `json:"required_status_checks_enforcement_level,omitempty"`
1095
1096
SignatureRequirementEnforcementLevel * SignatureRequirementEnforcementLevelChanges `json:"signature_requirement_enforcement_level,omitempty"`
1097
+ RequireLastPushApproval * RequireLastPushApprovalChanges `json:"require_last_push_approval,omitempty"`
1096
1098
}
1097
1099
1098
1100
// AdminEnforcedChanges represents the changes made to the AdminEnforced policy.
@@ -1170,6 +1172,11 @@ type SignatureRequirementEnforcementLevelChanges struct {
1170
1172
From * string `json:"from,omitempty"`
1171
1173
}
1172
1174
1175
+ // RequireLastPushApprovalChanges represents the changes made to the RequireLastPushApproval policy.
1176
+ type RequireLastPushApprovalChanges struct {
1177
+ From * bool `json:"from,omitempty"`
1178
+ }
1179
+
1173
1180
// ProtectionRequest represents a request to create/edit a branch's protection.
1174
1181
type ProtectionRequest struct {
1175
1182
RequiredStatusChecks * RequiredStatusChecks `json:"required_status_checks"`
0 commit comments