Skip to content

Commit

Permalink
fix: panic if empty tags in auto mode
Browse files Browse the repository at this point in the history
  • Loading branch information
haunt98 committed Jul 23, 2023
1 parent 1521db7 commit 78ce559
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/cli/action_generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func (a *action) RunGenerate(c *cli.Context) error {

if useLatestTag {
tags, err := repo.SemVerTags()
if err == nil {
if err == nil && len(tags) > 0 {
a.flags.to = tags[len(tags)-1].Version.Original()
}
}
Expand Down

0 comments on commit 78ce559

Please sign in to comment.