Skip to content

chore: add autolabeler to release-drafter for conventional commits#4

Merged
blacksd merged 1 commit intomainfrom
chore/release-drafter-autolabeler
Mar 11, 2026
Merged

chore: add autolabeler to release-drafter for conventional commits#4
blacksd merged 1 commit intomainfrom
chore/release-drafter-autolabeler

Conversation

@blacksd
Copy link
Copy Markdown
Owner

@blacksd blacksd commented Mar 11, 2026

Summary

  • Added autolabeler config to .github/release-drafter.yml that maps conventional commit title prefixes to GitHub labels
  • feat: -> 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)
  • Created the feature, fix, chore, and major labels in the repository
  • Retroactively labeled PR feat: add {version} placeholder interpolation for URL-type sources #3 with feature so it appears in the next draft release

Motivation

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

Generated with Claude Code

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>
@blacksd blacksd merged commit 384ae8e into main Mar 11, 2026
2 checks passed
@blacksd blacksd deleted the chore/release-drafter-autolabeler branch March 11, 2026 10:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant