From 30cf772b97f244240bd3e64b702f7ec8d787a4a5 Mon Sep 17 00:00:00 2001 From: "Victor M. Varela" Date: Fri, 1 May 2026 10:50:01 +0200 Subject: [PATCH] chore: fix release-drafter duplicate entries by removing file-based labeler rules MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove changed-files rules from type:* labels in labeler.yml — they caused multiple conflicting labels on a single PR (e.g. feat: PR touching README.md got both type:feature and type:docs), leading to duplicate release note entries. Also add Dependency Updates category to release-drafter.yml for Dependabot PRs, and add 'dependencies' to exclude-labels of all other categories. Closes #117 --- .github/labeler.yml | 21 +++------------------ .github/release-drafter.yml | 9 +++++++++ 2 files changed, 12 insertions(+), 18 deletions(-) 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: '\<*_&'