Skip to content

ci: fix release-drafter duplicate entries and label/prefix mismatch#79

Merged
vmvarela merged 1 commit intomasterfrom
issue-78/fix-release-drafter-labeling
Mar 20, 2026
Merged

ci: fix release-drafter duplicate entries and label/prefix mismatch#79
vmvarela merged 1 commit intomasterfrom
issue-78/fix-release-drafter-labeling

Conversation

@vmvarela
Copy link
Owner

Summary

Addresses both action items from the Sprint 4 Retrospective (#78):

Problem 1 — Duplicate entries in release notes (PR #74 appeared in both Features and Maintenance):

  • Root cause: PR feat: add --json output flag #74 had both type:feature and type:chore labels
  • Fix: add exclude-labels to each category in release-drafter.yml so a PR only appears in the first matching section

Problem 2 — PR title prefix vs. label mismatch (PR #75 had feat: title but type:chore label → appeared in Maintenance):

  • Root cause: labeler.yml matched .github/** files → type:chore regardless of the commit prefix
  • Fix 1: add autolabeler rules to release-drafter.yml mapping Conventional Commit prefixes to type:* labels
  • Fix 2: update labeler.yml with title and head-branch pattern rules for all Conventional Commit prefixes; remove .github/** glob from type:chore (CI/packaging PRs should be typed by their title, not their file paths)

Changes

  • .github/release-drafter.yml — added autolabeler block + exclude-labels per category
  • .github/labeler.yml — added title/head-branch rules; removed .github/** from type:chore

- Add autolabeler rules to release-drafter.yml mapping Conventional Commit
  prefixes (feat:/fix:/chore:/docs:/test:/ci:/refactor:) to type:* labels,
  so PRs are categorized from their title rather than requiring manual labels
- Add exclude-labels to each release-drafter category so a PR with multiple
  type:* labels only appears in the first matching section (no duplicates)
- Update labeler.yml with title and head-branch pattern rules matching the
  same Conventional Commit prefixes, keeping file-glob rules as fallback
- Remove .github/** glob from type:chore to prevent CI/packaging PRs from
  being mislabeled when their title indicates a feature (e.g. feat: add APK)

Closes #78 (action items)
@vmvarela vmvarela added the type:chore Maintenance, refactoring, tooling label Mar 20, 2026
@vmvarela vmvarela merged commit b293928 into master Mar 20, 2026
5 checks passed
@github-actions github-actions bot removed the type:chore Maintenance, refactoring, tooling label Mar 20, 2026
@vmvarela vmvarela deleted the issue-78/fix-release-drafter-labeling branch March 20, 2026 01:12
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