From 723ae1f82fcd641beb7b0b5f227c11a064117b73 Mon Sep 17 00:00:00 2001 From: Dominik Richter Date: Fri, 22 Sep 2023 22:12:27 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=B9=20add=20info=20line=20on=20version?= =?UTF-8?q?=20update?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The line you can use in your browser to open the git commit. Signed-off-by: Dominik Richter --- providers-sdk/v1/util/version/version.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/providers-sdk/v1/util/version/version.go b/providers-sdk/v1/util/version/version.go index 240db58eb7..5901d891f5 100644 --- a/providers-sdk/v1/util/version/version.go +++ b/providers-sdk/v1/util/version/version.go @@ -318,7 +318,7 @@ func commitChanges(confs updateConfs) error { } log.Info().Msg("comitted changes for " + strings.Join(confs.titles(), ", ")) - log.Info().Msg("run: git push -u origin " + branchName) + log.Info().Msg("running: git push -u origin " + branchName) // Not sure why the auth method doesn't work... so we exec here err = exec.Command("git", "push", "-u", "origin", branchName).Run() @@ -326,6 +326,8 @@ func commitChanges(confs updateConfs) error { return err } + log.Info().Msg("updates pushed successfully, open: \n\t" + + "https://github.com/mondoohq/cnquery/compare/" + branchName + "?expand=1") return nil } @@ -372,7 +374,9 @@ func countChangesSince(conf *providerConf, repoPath string) int { return count } } - fmt.Println() + if !fastMode { + fmt.Println() + } if found == nil { log.Warn().Msg("looks like there is no previous version in your commit history => we assume this is the first version commit")