From ac3c62d36df0409f0d3707b0495cb1a82648c53d Mon Sep 17 00:00:00 2001 From: Dylan Page Date: Wed, 7 Apr 2021 19:06:39 -0400 Subject: [PATCH] fix: logic bug in autoplan commit reset --- server/events/plan_command_runner.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/events/plan_command_runner.go b/server/events/plan_command_runner.go index 7c65346811..41c8228a7c 100644 --- a/server/events/plan_command_runner.go +++ b/server/events/plan_command_runner.go @@ -79,7 +79,7 @@ func (p *PlanCommandRunner) runAutoplan(ctx *CommandContext) { if len(projectCmds) == 0 { ctx.Log.Info("determined there was no project to run plan in") - if !p.silenceVCSStatusNoPlans || !p.silenceVCSStatusNoProjects { + if !(p.silenceVCSStatusNoPlans || p.silenceVCSStatusNoProjects) { // If there were no projects modified, we set successful commit statuses // with 0/0 projects planned/policy_checked/applied successfully because some users require // the Atlantis status to be passing for all pull requests.