From 8785f663916277bae6074c1e3b90c910915c1ca2 Mon Sep 17 00:00:00 2001 From: cellarspoon Date: Tue, 28 Dec 2021 03:40:18 +0100 Subject: [PATCH] feat: link direct to tag --- cli/recipe/release.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cli/recipe/release.go b/cli/recipe/release.go index dbd8d425..72cacbc0 100644 --- a/cli/recipe/release.go +++ b/cli/recipe/release.go @@ -197,7 +197,7 @@ func createReleaseFromTag(recipe recipe.Recipe, tagString, mainAppVersion string logrus.Fatal(err) } - if err := pushRelease(recipe); err != nil { + if err := pushRelease(recipe, tagString); err != nil { logrus.Fatal(err) } @@ -272,7 +272,7 @@ func tagRelease(tagString string, repo *git.Repository) error { return nil } -func pushRelease(recipe recipe.Recipe) error { +func pushRelease(recipe recipe.Recipe, tagString string) error { if internal.Dry { logrus.Info("dry run: no changes published") return nil @@ -294,7 +294,7 @@ func pushRelease(recipe recipe.Recipe) error { } } - url := fmt.Sprintf("%s/%s/tags", config.REPOS_BASE_URL, recipe.Name) + url := fmt.Sprintf("%s/%s/tags/%s", config.REPOS_BASE_URL, recipe.Name, tagString) logrus.Infof("new release published: %s", url) return nil