Compare commits

...

3 Commits
0.12.0 ... main

3 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,9 @@
## 0.13.0 (2024-10-25)
### Feat
- :sparkles: use time.Time.Before() instead of Sub()
## 0.12.0 (2024-10-25)
### Feat

View File

@ -5,5 +5,5 @@ commitizen:
name: cz_conventional_commits
tag_format: $version
update_changelog_on_bump: true
version: 0.12.0
version: 0.13.0
version_scheme: semver

View File

@ -99,7 +99,7 @@ func getLatestGitTag(options ...GetLatestGitTagOption) (string, error) {
return "", fmt.Errorf("error iterating tags %w", err)
}
if tagDate != nil && t.Tagger.When.Sub(*tagDate) > 0 {
if tagDate != nil && t.Tagger.When.Before(*tagDate) {
continue
}