From f2125900e0039b301dde2a75196d27bba0dd5c6e Mon Sep 17 00:00:00 2001 From: PePe Amengual Date: Wed, 3 Jul 2024 10:29:18 -0700 Subject: [PATCH] Revert "fix: Preventing merging without running atlantis apply on Gitlab (#4651)" This reverts commit e28669064b4a7930ce067f0e47c60e2ca7265214. --- 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)