You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Automatically normalize git tags based on kumahq/kuma conventions:
- Add v prefix for newer versions (>= 2.13.x, >= 3.x, specific patches)
- Remove v prefix for older versions
- Release names always use plain version numbers (e.g., `2.12.5`)
- Git tags follow version-specific conventions
Also adds `mise.toml` with pinned `golangci-lint` version.
Signed-off-by: Bart Smykla <bartek@smykla.com>
returnfmt.Errorf("release :%s has already published release notes, updating release-notes of released versions is not supported", release)
124
128
}
@@ -130,6 +134,8 @@ TODO summary of some simple stuff.
130
134
returnfmt.Errorf("release body exceeds GitHub limit: %d characters (max %d). Use --dry-run to preview the body and consider manually truncating", len(body), GitHubMaxBodySize)
131
135
}
132
136
137
+
// Normalize release name to not have v prefix (SLSA provenance may create releases with v prefix)
_, _=fmt.Fprintf(os.Stderr, "Warning: auto-adding 'v' prefix to tag %s -> v%s (kumahq/kuma uses v-prefixed tags for this version)\n", tag, tag)
42
+
if!hasPrefix&&warn {
43
+
_, _=fmt.Fprintf(os.Stderr, "Warning: auto-adding 'v' prefix to tag %s -> v%s (kumahq/kuma uses v-prefixed tags for this version)\n", tag, tag)
44
+
}
45
+
46
+
return"v"+cleanTag
47
+
}
33
48
34
-
return"v"+tag
49
+
ifhasPrefix&&warn {
50
+
_, _=fmt.Fprintf(os.Stderr, "Warning: auto-removing 'v' prefix from tag %s -> %s (kumahq/kuma uses non-prefixed tags for this version)\n", tag, cleanTag)
35
51
}
36
52
37
-
returntag
53
+
returncleanTag
38
54
}
39
55
40
56
// needsVPrefix determines if a version should have a v prefix based on kumahq/kuma conventions.
0 commit comments