Skip to content

Commit

Permalink
fix: fix tag filter in releasenotes command (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
xoxys authored Oct 17, 2023
1 parent b3004b6 commit 795a6bb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/commands/releasenotes.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ func ReleaseNotesHandler(g app.GitSV, settings *app.ReleaseNotesSettings) cli.Ac
var (
commits []sv.CommitLog
rnVersion *semver.Version
tag string
date time.Time
err error
)
Expand All @@ -46,14 +45,14 @@ func ReleaseNotesHandler(g app.GitSV, settings *app.ReleaseNotesSettings) cli.Ac
// TODO: should generate release notes if version was not updated?
rnVersion, _, date, commits, err = getNextVersionInfo(g, g.CommitProcessor)
} else {
rnVersion, date, commits, err = getTagVersionInfo(g, tag)
rnVersion, date, commits, err = getTagVersionInfo(g, settings.Tag)
}

if err != nil {
return err
}

releasenote := g.ReleasenotesProcessor.Create(rnVersion, tag, date, commits)
releasenote := g.ReleasenotesProcessor.Create(rnVersion, settings.Tag, date, commits)

output, err := g.OutputFormatter.FormatReleaseNote(releasenote)
if err != nil {
Expand Down

0 comments on commit 795a6bb

Please sign in to comment.