feat: show latest published version on sync

This commit is contained in:
2022-02-08 00:50:15 +01:00
committed by Gitea
parent 2b2dcc01b4
commit b5f23d3791
3 changed files with 12 additions and 9 deletions

View File

@ -95,7 +95,8 @@ likely to change.
}
if nextTag == "" && (!internal.Major && !internal.Minor && !internal.Patch) {
if err := internal.PromptBumpType(""); err != nil {
latestRelease := tags[len(tags)-1]
if err := internal.PromptBumpType("", latestRelease); err != nil {
logrus.Fatal(err)
}
}