0
0
mirror of https://github.com/thegeeklab/git-sv.git synced 2024-11-21 12:00:40 +00:00

fix: fix tag filter in releasenotes command (#9)

This commit is contained in:
Robert Kaussow 2023-10-17 10:43:45 +02:00 committed by GitHub
parent b3004b6be6
commit 795a6bb090
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
)
@ -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 {