Skip to content

Commit db35d6a

Browse files
authored
fixes
1 parent bbc018d commit db35d6a

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ Flags:
107107
-t, --token string GitHub Auth Token
108108
--make-release-latest bool Mark the created GitHub release as 'latest' (default "true")
109109
--packages-with-index Host the package files in the GitHub Pages branch
110-
--prerelease Mark this release as 'Pre-release' (default: false)
110+
--pre-release Mark this release as 'Pre-release' (default: false)
111111

112112
Global Flags:
113113
--config string Config file (default is $HOME/.cr.yaml)

doc/cr_upload.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ cr upload [flags]
2525
--packages-with-index Host the package files in the GitHub Pages branch
2626
--pages-branch string The GitHub pages branch (default "gh-pages")
2727
--pr Create a pull request for the chart package against the GitHub Pages branch (must not be set if --push is set)
28-
--prerelease Mark this as 'Pre-release' (default: false)
28+
--pre-release Mark this as 'Pre-release' (default: false)
2929
--push Push the chart package to the GitHub Pages branch (must not be set if --pr is set)
3030
--release-name-template string Go template for computing release names, using chart metadata (default "{{ .Name }}-{{ .Version }}")
3131
--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

pkg/releaser/releaser.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ func (r *Releaser) CreateReleases() error {
322322
Commit: r.config.Commit,
323323
GenerateReleaseNotes: r.config.GenerateReleaseNotes,
324324
MakeLatest: strconv.FormatBool(r.config.MakeReleaseLatest),
325-
Prerelease: r.config.Prerelease,
325+
Prerelease: r.config.PreRelease,
326326
}
327327
provFile := fmt.Sprintf("%s.prov", p)
328328
if _, err := os.Stat(provFile); err == nil {

pkg/releaser/releaser_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ func TestReleaser_CreateReleases(t *testing.T) {
380380
Commit: "",
381381
PackagesWithIndex: false,
382382
MakeReleaseLatest: true,
383-
Prerelease: false,
383+
PreRelease: false,
384384
},
385385
},
386386
error: true,
@@ -398,7 +398,7 @@ func TestReleaser_CreateReleases(t *testing.T) {
398398
Commit: "",
399399
PackagesWithIndex: false,
400400
MakeReleaseLatest: true,
401-
Prerelease: false,
401+
PreRelease: false,
402402
},
403403
},
404404
error: false,
@@ -416,7 +416,7 @@ func TestReleaser_CreateReleases(t *testing.T) {
416416
Commit: "5e239bd19fbefb9eb0181ecf0c7ef73b8fe2753c",
417417
PackagesWithIndex: false,
418418
MakeReleaseLatest: true,
419-
Prerelease: false,
419+
PreRelease: false,
420420
},
421421
},
422422
error: false,
@@ -435,7 +435,7 @@ func TestReleaser_CreateReleases(t *testing.T) {
435435
PackagesWithIndex: true,
436436
Push: true,
437437
MakeReleaseLatest: true,
438-
Prerelease: false,
438+
PreRelease: false,
439439
},
440440
},
441441
error: false,

0 commit comments

Comments
 (0)