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 {
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{
Name: ref.Name().Short(),
Hash: ref.Hash().String(),
Name: tagName,
Hash: commitHash,
})
Debug("Found tag", map[string]interface{}{
"tag": ref.Name().Short(),
"hash": ref.Hash().String(),
"tag": tagName,
"hash": commitHash,
})
return nil
+13 -22
View File
@@ -1,22 +1,13 @@
version: 1
force:
major: 1
minor: 4
existing: true
strict: false
commit: 960207e4677476ad31a9f389f74eaf9f33d49613
# tag_prefixes: (optional) prefixes to strip from existing tags
# Note: "v" prefix is always stripped automatically
# tag_prefixes:
# - "app-"
# - "service-"
wording:
patch:
- update
- initial
- fix
minor:
- change
- improve
major:
- breaking
version: 1
force:
major: 1
minor: 16 # Start from v1.16.x
existing: true
strict: false
commit: 960207e4677476ad31a9f389f74eaf9f33d49613
wording:
minor:
- change
- improve
major:
- breaking