diff --git a/clients/branch.go b/clients/branch.go index 824b6cb271cc..6d3190fe0079 100644 --- a/clients/branch.go +++ b/clients/branch.go @@ -23,13 +23,13 @@ type BranchRef struct { // BranchProtectionRule captures the settings enabled on a branch for security. type BranchProtectionRule struct { - PullRequestRule PullRequestRule - AllowDeletions *bool - AllowForcePushes *bool - RequireLinearHistory *bool - EnforceAdmins *bool - RequireLastPushApproval *bool - CheckRules StatusChecksRule + PullRequestRule PullRequestRule + AllowDeletions *bool + AllowForcePushes *bool + RequireLinearHistory *bool + EnforceAdmins *bool + RequireLastPushApproval *bool + CheckRules StatusChecksRule } // StatusChecksRule captures settings on status checks. diff --git a/clients/gitlabrepo/branches.go b/clients/gitlabrepo/branches.go index 7878a33d7fee..5dbf37944da0 100644 --- a/clients/gitlabrepo/branches.go +++ b/clients/gitlabrepo/branches.go @@ -208,11 +208,11 @@ func makeBranchRefFrom(branch *gitlab.Branch, protectedBranch *gitlab.ProtectedB Name: &branch.Name, Protected: &branch.Protected, BranchProtectionRule: clients.BranchProtectionRule{ - PullRequestRule: pullRequestReviewRule, - AllowDeletions: newFalse(), - AllowForcePushes: &protectedBranch.AllowForcePush, - EnforceAdmins: newTrue(), - CheckRules: statusChecksRule, + PullRequestRule: pullRequestReviewRule, + AllowDeletions: newFalse(), + AllowForcePushes: &protectedBranch.AllowForcePush, + EnforceAdmins: newTrue(), + CheckRules: statusChecksRule, }, }