From 53ed51da8590078a607dbb76b615e0b03a03993e Mon Sep 17 00:00:00 2001 From: Diogo Teles Sant'Anna Date: Fri, 16 Feb 2024 21:14:24 +0000 Subject: [PATCH] fix linter issues Signed-off-by: Diogo Teles Sant'Anna --- clients/branch.go | 14 +++++++------- clients/gitlabrepo/branches.go | 10 +++++----- 2 files changed, 12 insertions(+), 12 deletions(-) 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, }, }