Skip to content

Commit

Permalink
Validate that received <version> argument in `sfreleaser release <v…
Browse files Browse the repository at this point in the history
…ersion>` actually follows our convention
  • Loading branch information
maoueh committed Jul 5, 2023
1 parent a1e534f commit d296410
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## v0.5.5

* Validate that received `<version>` argument in `sfreleaser release <version>` actually follows our convention.

## v0.5.4

* Added a way to disable usage of PTY to call commands (define environment variable `SFRELEASER_DISABLE_PTY=true`).
Expand Down
1 change: 1 addition & 0 deletions cmd/sfreleaser/release.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ func release(cmd *cobra.Command, args []string) error {
release := &ReleaseModel{Version: ""}
if len(args) > 0 {
release.Version = args[0]
cli.NoError(validVersion(release.Version), "invalid version")
}

allowDirty := sflags.MustGetBool(cmd, "allow-dirty")
Expand Down

0 comments on commit d296410

Please sign in to comment.