From dbef96da878cf5218c065a3aacb23ec43b18595d Mon Sep 17 00:00:00 2001 From: PePe Amengual Date: Wed, 3 Jul 2024 11:04:47 -0700 Subject: [PATCH] revert: "fix: Preventing merging without running atlantis apply on Gitlab" (#4721) --- server/events/plan_command_runner.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/server/events/plan_command_runner.go b/server/events/plan_command_runner.go index 85c9f21ec1..c2b6b7a107 100644 --- a/server/events/plan_command_runner.go +++ b/server/events/plan_command_runner.go @@ -119,12 +119,6 @@ func (p *PlanCommandRunner) runAutoplan(ctx *command.Context) { ctx.Log.Warn("unable to update plan commit status: %s", err) } - if baseRepo.VCSHost.Type == models.Gitlab { - if err := p.commitStatusUpdater.UpdateCombinedCount(ctx.Log, ctx.Pull.BaseRepo, ctx.Pull, models.PendingCommitStatus, command.Apply, 0, len(projectCmds)); err != nil { - ctx.Log.Warn("unable to update apply commit status: %s", err) - } - } - // discard previous plans that might not be relevant anymore ctx.Log.Debug("deleting previous plans and locks") p.deletePlans(ctx)