fix(release-drafter): add version templates and resolver#407
Merged
0x46616c6b merged 3 commits intomainfrom May 5, 2026
Merged
fix(release-drafter): add version templates and resolver#4070x46616c6b merged 3 commits intomainfrom
0x46616c6b merged 3 commits intomainfrom
Conversation
After commit 8465bc2 the workflow stopped passing tag/name inputs and expects release-drafter to compute the next version from the config. The config had no name-template, tag-template, or version-resolver, so drafts were created without a title or tag (e.g. untagged-a75edd17...). Add name-template/tag-template in the existing 'vX.Y.Z' scheme and a version-resolver that maps the labels already used by the categories section to semver bumps. The 'major' label is intentionally not part of the resolver because Dependabot uses it for the dependency's bump level, which should not promote this action to a major release. A dedicated 'breaking' label is reserved as an explicit opt-in for major bumps. Co-Authored-By: Claude <claude@anthropic.com>
flaxel
approved these changes
May 5, 2026
Co-authored-by: Falk Puschner <falk.puschner@staffbase.com>
The previous wording referred to the old tag-push flow. Describe the current process: Release Drafter maintains a draft on every push to main with the next version resolved from PR labels, and a human publishes from the Releases UI when ready. Co-Authored-By: Claude <claude@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Type of Change
Description
After #406 switched the release workflow from a tag-push (with explicit
publish: true,name: ${{ github.ref_name }},tag: ${{ github.ref_name }}inputs) to a continuous draft model triggered onpush: main, release-drafter is now responsible for computing the next version itself. The config in.github/release-drafter.ymlwas missingname-template,tag-template, andversion-resolver, so the latest run produced an empty draft (untagged-a75edd174a086d69cb7d) without title or tag, breaking the establishedvX.Y.Znaming scheme of all prior releases up tov2.7.0.This PR restores the previous naming scheme by adding:
name-template/tag-templaterendering asv$RESOLVED_VERSIONversion-resolvermapping the labels already consumed by thecategoriessection to semver bumps (feature/enhancement→ minor,fix/bugfix/bug/chore/dependencies/documentation→ patch,breaking→ major), withdefault: patchThe Dependabot
majorlabel is intentionally not part of the resolver: in PR labels it indicates the dependency's bump level, not a major release of this action. Real major bumps are reserved for the manually appliedbreakinglabel.With these settings, the next draft will be calculated as
v2.7.1based on the currently mergedfix:/chore:/dependency PRs sincev2.7.0.Checklist
Follow-up
The existing empty draft (
untagged-a75edd174a086d69cb7d) will not be reused by release-drafter and should be deleted manually so the next workflow run can create a fresh, correctly named draft.The changes and the PR were generated by Claude.