From db35d6a382edd4597a524ad1b0b2309c772fbf5c Mon Sep 17 00:00:00 2001 From: Manish Gupta <59428681+mguptahub@users.noreply.github.com> Date: Fri, 27 Dec 2024 07:26:57 +0000 Subject: [PATCH] fixes --- README.md | 2 +- doc/cr_upload.md | 2 +- pkg/releaser/releaser.go | 2 +- pkg/releaser/releaser_test.go | 8 ++++---- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 779fb752..b03d5707 100644 --- a/README.md +++ b/README.md @@ -107,7 +107,7 @@ Flags: -t, --token string GitHub Auth Token --make-release-latest bool Mark the created GitHub release as 'latest' (default "true") --packages-with-index Host the package files in the GitHub Pages branch - --prerelease Mark this release as 'Pre-release' (default: false) + --pre-release Mark this release as 'Pre-release' (default: false) Global Flags: --config string Config file (default is $HOME/.cr.yaml) diff --git a/doc/cr_upload.md b/doc/cr_upload.md index 59b709a9..335d4d72 100644 --- a/doc/cr_upload.md +++ b/doc/cr_upload.md @@ -25,7 +25,7 @@ cr upload [flags] --packages-with-index Host the package files in the GitHub Pages branch --pages-branch string The GitHub pages branch (default "gh-pages") --pr Create a pull request for the chart package against the GitHub Pages branch (must not be set if --push is set) - --prerelease Mark this as 'Pre-release' (default: false) + --pre-release Mark this as 'Pre-release' (default: false) --push Push the chart package to the GitHub Pages branch (must not be set if --pr is set) --release-name-template string Go template for computing release names, using chart metadata (default "{{ .Name }}-{{ .Version }}") --release-notes-file string Markdown file with chart release notes. If it is set to empty string, or the file is not found, the chart description will be used instead. The file is read from the chart package diff --git a/pkg/releaser/releaser.go b/pkg/releaser/releaser.go index 8f89cf50..306a9dc2 100644 --- a/pkg/releaser/releaser.go +++ b/pkg/releaser/releaser.go @@ -322,7 +322,7 @@ func (r *Releaser) CreateReleases() error { Commit: r.config.Commit, GenerateReleaseNotes: r.config.GenerateReleaseNotes, MakeLatest: strconv.FormatBool(r.config.MakeReleaseLatest), - Prerelease: r.config.Prerelease, + Prerelease: r.config.PreRelease, } provFile := fmt.Sprintf("%s.prov", p) if _, err := os.Stat(provFile); err == nil { diff --git a/pkg/releaser/releaser_test.go b/pkg/releaser/releaser_test.go index 52e747cc..e91c2606 100644 --- a/pkg/releaser/releaser_test.go +++ b/pkg/releaser/releaser_test.go @@ -380,7 +380,7 @@ func TestReleaser_CreateReleases(t *testing.T) { Commit: "", PackagesWithIndex: false, MakeReleaseLatest: true, - Prerelease: false, + PreRelease: false, }, }, error: true, @@ -398,7 +398,7 @@ func TestReleaser_CreateReleases(t *testing.T) { Commit: "", PackagesWithIndex: false, MakeReleaseLatest: true, - Prerelease: false, + PreRelease: false, }, }, error: false, @@ -416,7 +416,7 @@ func TestReleaser_CreateReleases(t *testing.T) { Commit: "5e239bd19fbefb9eb0181ecf0c7ef73b8fe2753c", PackagesWithIndex: false, MakeReleaseLatest: true, - Prerelease: false, + PreRelease: false, }, }, error: false, @@ -435,7 +435,7 @@ func TestReleaser_CreateReleases(t *testing.T) { PackagesWithIndex: true, Push: true, MakeReleaseLatest: true, - Prerelease: false, + PreRelease: false, }, }, error: false,