Compare commits

...

6 Commits

Author SHA1 Message Date
lukaszraczylo 5f205e9856 fixup! fixup! fix(config-release): remove hardcoded version and commit overrides 2026-01-09 14:15:16 +00:00
lukaszraczylo a77bc0c7ae fixup! fix(config-release): remove hardcoded version and commit overrides 2026-01-09 14:03:20 +00:00
lukaszraczylo 99338e8527 fix(config-release): remove hardcoded version and commit overrides
- [x] Remove hardcoded major version (1)
- [x] Remove hardcoded minor version (4)
- [x] Remove hardcoded commit hash override
2026-01-09 13:58:45 +00:00
lukaszraczylo 911513c106 fixup! fix(config-release): update semantic versioning configuration 2026-01-09 13:48:52 +00:00
lukaszraczylo c2a7a4e156 fix(config-release): update semantic versioning configuration
- [x] Remove minor version override (4)
- [x] Remove commit hash reference
- [x] Add blacklist for merge commits and feature branch patterns
- [x] Add release-candidate to major wording triggers
- [x] Remove commented tag_prefixes section
2026-01-09 13:47:17 +00:00
lukaszraczylo 21b87300cc Fix the commit annotation tags. 2025-12-15 13:51:26 +00:00
2 changed files with 28 additions and 26 deletions
+15 -4
View File
@@ -179,14 +179,25 @@ func ListExistingTags(repo *GitRepository) {
} }
if err := refs.ForEach(func(ref *plumbing.Reference) error { if err := refs.ForEach(func(ref *plumbing.Reference) error {
tagName := ref.Name().Short()
commitHash := ref.Hash().String()
// For annotated tags, dereference to get the actual commit hash
tagObj, err := repo.Handler.TagObject(ref.Hash())
if err == nil {
// This is an annotated tag - get the commit it points to
commitHash = tagObj.Target.String()
}
// If err != nil, it's a lightweight tag - ref.Hash() is already the commit hash
repo.Tags = append(repo.Tags, TagDetails{ repo.Tags = append(repo.Tags, TagDetails{
Name: ref.Name().Short(), Name: tagName,
Hash: ref.Hash().String(), Hash: commitHash,
}) })
Debug("Found tag", map[string]interface{}{ Debug("Found tag", map[string]interface{}{
"tag": ref.Name().Short(), "tag": tagName,
"hash": ref.Hash().String(), "hash": commitHash,
}) })
return nil return nil
+13 -22
View File
@@ -1,22 +1,13 @@
version: 1 version: 1
force: force:
major: 1 major: 1
minor: 4 minor: 16 # Start from v1.16.x
existing: true existing: true
strict: false strict: false
commit: 960207e4677476ad31a9f389f74eaf9f33d49613 commit: 960207e4677476ad31a9f389f74eaf9f33d49613
# tag_prefixes: (optional) prefixes to strip from existing tags wording:
# Note: "v" prefix is always stripped automatically minor:
# tag_prefixes: - change
# - "app-" - improve
# - "service-" major:
wording: - breaking
patch:
- update
- initial
- fix
minor:
- change
- improve
major:
- breaking