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
{{ message }}
Repository navigation
[FEATURE] promote-release: generalise candidate tag cleanup to the configured pre-release format #1749
promote-release.yml's best-effort cleanup only prunes candidate tags matching <prefix>X.Y.Z-rc[0-9]+ with no GitHub Release. Since #1746 a repo can publish candidates in any pre-release format (DEVKIT_PRERELEASE_FORMAT, e.g. alpha.{N}), and those tags are never cleaned up.
Problem Statement
A repo on alpha.{N} accumulates vX.Y.Z-alpha.N tags forever, while an rc{N} repo gets them pruned at promote. The cleanup is harmless when it misses (it never deletes anything unexpected), but the behaviour silently differs by format.
Proposed Solution
Thread the resolved pre-release format (resolve-toolchain's prerelease-format output) into the promote cleanup and derive the tag pattern from it — reuse release-version's format parsing (for example a --list-pattern mode) instead of a second hand-rolled regex.
Decide the policy for tags of a previous format of the same X.Y.Z (a mid-series label switch): prune them too, or leave them.
Keep the existing guard: only tags with no GitHub Release are ever deleted.
Alternatives Considered
Prune every <prefix>X.Y.Z-* tag without a Release: simpler, but deletes tags from formats the repo never configured.
Resolved by #1802 (merged to dev, ships with the next release): the scaffolded promote cleanup derives its tag match from the resolved DEVKIT_PRERELEASE_FORMAT via the new release-version --list-pattern (POSIX ERE, passed to jq with --arg). Policy: tags of a previously configured format for the same X.Y.Z are left alone; only tags with no GitHub Release are ever deleted. Devkit's own promote-release keeps literal rc{N} (it sets no format and also prunes per-arch image tags).
Activity
feat: pluggable pre-release format, draft-first Release owner and pub…
test(vig-utils): add list_pattern + --list-pattern CLI coverage
feat(vig-utils): add PreReleaseFormat.list_pattern and --list-pattern
test(promote-release): pin the format-derived cleanup pattern
fix(vig-utils): make list_pattern plain POSIX ERE
feat(promote-release): derive the cleanup tag match from the configur…
docs: update downstream cleanup docs + changelog for #1749
feat: derive promote-release cleanup pattern from the configured pre-…
c-vigo commentedon Oct 1, 2026
Resolved by #1802 (merged to
dev, ships with the next release): the scaffolded promote cleanup derives its tag match from the resolvedDEVKIT_PRERELEASE_FORMATvia the newrelease-version --list-pattern(POSIX ERE, passed to jq with--arg). Policy: tags of a previously configured format for the same X.Y.Z are left alone; only tags with no GitHub Release are ever deleted. Devkit's own promote-release keeps literalrc{N}(it sets no format and also prunes per-arch image tags).chore: release 1.18.0 (#1819)