diff --git a/.github/labeler.yml b/.github/labeler.yml index db87212..efd748c 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -1,15 +1,12 @@ -# Labels are applied based on PR title prefix (Conventional Commits) first, -# then fall back to changed-file globs. The title-based rules take precedence -# because they are listed first and actions/labeler applies the first match. +# Labels are applied based on PR title prefix (Conventional Commits) and branch name. +# File-based rules are intentionally omitted: they cause multiple type:* labels to be +# applied to a single PR, which leads to duplicate entries in release notes. "type:feature": - head-branch: - "/^feat/" - title: - "/^feat(\\(.+\\))?:/i" - - changed-files: - - any-glob-to-any-file: - - "src/**" "type:bug": - head-branch: @@ -30,21 +27,9 @@ - "/^test(\\(.+\\))?:/i" - "/^refactor(\\(.+\\))?:/i" - "/^build(\\(.+\\))?:/i" - - changed-files: - - any-glob-to-any-file: - - "build.zig" - - "build.zig.zon" - - ".gitignore" - - ".editorconfig" "type:docs": - head-branch: - "/^docs/" - title: - "/^docs(\\(.+\\))?:/i" - - changed-files: - - any-glob-to-any-file: - - "**/*.md" - - "docs/**" - - "LICENSE*" - - "CHANGELOG*" diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml index 237d955..ceea644 100644 --- a/.github/release-drafter.yml +++ b/.github/release-drafter.yml @@ -34,6 +34,7 @@ categories: - "type:chore" - "type:docs" - "type:spike" + - "dependencies" - title: "🐛 Bug Fixes" labels: - "type:bug" @@ -42,6 +43,7 @@ categories: - "type:chore" - "type:docs" - "type:spike" + - "dependencies" - title: "🧰 Maintenance" labels: - "type:chore" @@ -51,6 +53,7 @@ categories: - "type:bug" - "type:docs" - "type:spike" + - "dependencies" - title: "📝 Documentation" labels: - "type:docs" @@ -59,9 +62,15 @@ categories: - "type:bug" - "type:chore" - "type:spike" + - "dependencies" - title: "🔬 Spikes & Research" labels: - "type:spike" + exclude-labels: + - "dependencies" + - title: "⬆️ Dependency Updates" + labels: + - "dependencies" change-template: "- $TITLE (#$NUMBER) @$AUTHOR" change-title-escapes: '\<*_&'