From 0ba2ac87c1d9f8b2df1f9c285e7a866398815d0c Mon Sep 17 00:00:00 2001 From: Joseph Lombrozo Date: Thu, 14 Dec 2023 14:55:27 -0500 Subject: [PATCH] fix logic --- pkg/config/app_directory.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/config/app_directory.go b/pkg/config/app_directory.go index f64adce5..2843e7d2 100644 --- a/pkg/config/app_directory.go +++ b/pkg/config/app_directory.go @@ -100,7 +100,7 @@ func (d *AppDirectory) FindAppsBasedOnChangeList(changeList []string, targetBran log.Warn().Msgf("failed to find matched app named '%s'", appName) continue } - if app.TargetRevision == "HEAD" && (targetBranch == "main" || targetBranch == "master") { + if app.TargetRevision == "HEAD" && targetBranch != "main" && targetBranch != "master" { log.Debug().Msgf("target revision of %s is HEAD and '%s' is not main or master", appName, targetBranch) continue }