Skip to content

Commit

Permalink
fix(changelog): version is no longer prefixed with v for -history
Browse files Browse the repository at this point in the history
… flag
  • Loading branch information
zbindenren committed Jan 4, 2021
1 parent 2e070cd commit 4a8804f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion internal/cmd/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,12 @@ func (c Command) title(g *git.Command, tag string) (string, error) {
return "", err
}

return fmt.Sprintf("%s (%s)", tag, date), nil
version, err := semver.NewVersion(tag)
if err != nil {
return "", err
}

return fmt.Sprintf("%s (%s)", version, date), nil
}

func (c Command) confirmVersion(version semver.Version, in io.Reader, out io.Writer) (*semver.Version, error) {
Expand Down

0 comments on commit 4a8804f

Please sign in to comment.