chore: add autolabeler to release-drafter for conventional commits#4
Merged
chore: add autolabeler to release-drafter for conventional commits#4
Conversation
Maps conventional commit prefixes (feat, fix, chore, etc.) to GitHub labels so release-drafter can categorize changelog entries and resolve version bumps automatically. Also maps the `!` breaking change marker to the major label. Co-Authored-By: Claude Opus 4.6 <noreply@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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
.github/release-drafter.ymlthat maps conventional commit title prefixes to GitHub labelsfeat:->feature(triggers minor version bump, listed under Features)fix:->fix(triggers patch bump, listed under Bug Fixes)chore:,ci:,docs:,refactor:,perf:,test:,build:->chore(triggers patch bump, listed under Maintenance)<type>!:(breaking change marker) ->major(triggers major version bump)feature,fix,chore, andmajorlabels in the repositoryfeatureso it appears in the next draft releaseMotivation
Release-drafter is label-driven, not commit-message-driven. Without autolabeler, PRs merged with conventional commit titles but no labels were invisible to the changelog and version resolver.
Test plan
chorelabel to itGenerated with Claude Code