From de009921a28306ce46e0fe8f4b86a3a1180c6e61 Mon Sep 17 00:00:00 2001 From: decentral1se Date: Tue, 22 Apr 2025 07:41:02 +0200 Subject: [PATCH] fix: show release notes once See https://git.coopcloud.tech/toolshed/abra/issues/543 --- cli/app/upgrade.go | 4 +--- cli/internal/deploy.go | 6 +++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/cli/app/upgrade.go b/cli/app/upgrade.go index 54b7f6a3..66c8abf9 100644 --- a/cli/app/upgrade.go +++ b/cli/app/upgrade.go @@ -213,9 +213,7 @@ beforehand. See "abra app backup" for more.`, return } - if upgradeReleaseNotes != "" && chosenUpgrade != "" { - fmt.Print(upgradeReleaseNotes) - } else { + if upgradeReleaseNotes == "" { upgradeWarnMessages = append( upgradeWarnMessages, fmt.Sprintf("no release notes available for %s", chosenUpgrade), diff --git a/cli/internal/deploy.go b/cli/internal/deploy.go index 1690a958..481e7a63 100644 --- a/cli/internal/deploy.go +++ b/cli/internal/deploy.go @@ -46,7 +46,7 @@ func DeployOverview( app appPkg.App, deployedVersion string, toDeployVersion string, - info string, + releaseNotes string, warnMessages []string, ) error { deployConfig := "compose.yml" @@ -85,8 +85,8 @@ func DeployOverview( fmt.Println(overview) - if info != "" { - fmt.Println(info) + if releaseNotes != "" { + fmt.Print(releaseNotes) } for _, msg := range warnMessages {