mirror of
https://github.com/Luzifer/git-changerelease.git
synced 2024-12-20 19:11:17 +00:00
Match only semver tags when searching for last version
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
eb15e13613
commit
48a288bafa
1 changed files with 1 additions and 1 deletions
2
main.go
2
main.go
|
@ -140,7 +140,7 @@ func main() {
|
||||||
prepareRun()
|
prepareRun()
|
||||||
|
|
||||||
// Get last tag
|
// Get last tag
|
||||||
lastTag, err := gitSilent("describe", "--tags", "--abbrev=0")
|
lastTag, err := gitSilent("describe", "--tags", "--abbrev=0", `--match=v[0-9]*\.[0-9]*\.[0-9]*`)
|
||||||
|
|
||||||
// Fetch logs since last tag / since repo start
|
// Fetch logs since last tag / since repo start
|
||||||
logArgs := []string{"log", `--format=` + gitLogFormat, "--abbrev-commit"}
|
logArgs := []string{"log", `--format=` + gitLogFormat, "--abbrev-commit"}
|
||||||
|
|
Loading…
Reference in a new issue