From 7e526fe32b2dc8a7bc355d45dc734512117e0596 Mon Sep 17 00:00:00 2001 From: Peter Feerick Date: Fri, 30 Jan 2026 16:47:11 +1000 Subject: [PATCH] ci: tweak headings for the release notes, fix labels and scopes (#7047) --- .github/workflows/nightly.yml | 38 +++++++++++++++++++++++---- .github/workflows/release-drafter.yml | 38 +++++++++++++++++++++++---- 2 files changed, 66 insertions(+), 10 deletions(-) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 6f3c0e025..2a23c9209 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -104,21 +104,45 @@ jobs: configuration: | { "categories": [ + { + "title": "## ๐Ÿ–ฅ๏ธ Black & White Radio Changes", + "labels": ["scope:bw"] + }, + { + "title": "## ๐ŸŽจ Color Radio Changes", + "labels": ["scope:color"] + }, + { + "title": "## ๐ŸŽฎ Firmware (All Radios Generally)", + "labels": ["scope:firmware", "scope:fw"] + }, + { + "title": "## ๐Ÿ’ป Companion Software Changes", + "labels": ["scope:cpn", "companion"] + }, { "title": "## ๐Ÿš€ Features", - "labels": ["feat", "feature"] + "labels": ["feat", "enhancement โœจ"] }, { "title": "## ๐Ÿ› Fixes", - "labels": ["fix", "bugfix"] + "labels": ["fix", "bugfix", "bug ๐Ÿชฒ", "bug/regression โ†ฉ๏ธ"] + }, + { + "title": "## ๐Ÿงน Chores", + "labels": ["chore", "house keeping ๐Ÿงน"] + }, + { + "title": "## ๐Ÿ”ง CI/CD", + "labels": ["ci", "ci/cd ๐Ÿ”ง"] }, { "title": "## ๐Ÿงช Tests", - "labels": ["test"] + "labels": ["scope:test", "test", "unit tests ๐Ÿงช"] }, { "title": "## ๐Ÿ“ Documentation", - "labels": ["docs"] + "labels": ["scope:docs", "docs", "documentation ๐Ÿ“"] }, { "title": "## ๐Ÿ”จ Refactoring", @@ -138,8 +162,12 @@ jobs: "empty_template": "- No changes", "label_extractor": [ { - "pattern": "^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test)(\\(.+\\))?(!)?:", + "pattern": "^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test)(\\([^)]+\\))?(!)?:", "target": "$1" + }, + { + "pattern": "^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test)\\(([^)]+)\\)", + "target": "scope:$2" } ] } diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml index 5b1217b26..5aab366d7 100644 --- a/.github/workflows/release-drafter.yml +++ b/.github/workflows/release-drafter.yml @@ -193,21 +193,45 @@ jobs: configuration: | { "categories": [ + { + "title": "## ๐Ÿ–ฅ๏ธ Black & White Radio Changes", + "labels": ["scope:bw"] + }, + { + "title": "## ๐ŸŽจ Color Radio Changes", + "labels": ["scope:color"] + }, + { + "title": "## ๐ŸŽฎ Firmware (All Radios Generally)", + "labels": ["scope:firmware", "scope:fw"] + }, + { + "title": "## ๐Ÿ’ป Companion Software Changes", + "labels": ["scope:cpn", "companion"] + }, { "title": "## ๐Ÿš€ Features", - "labels": ["feat", "feature"] + "labels": ["feat", "enhancement โœจ"] }, { "title": "## ๐Ÿ› Fixes", - "labels": ["fix", "bugfix"] + "labels": ["fix", "bugfix", "bug ๐Ÿชฒ", "bug/regression โ†ฉ๏ธ"] + }, + { + "title": "## ๐Ÿงน Chores", + "labels": ["chore", "house keeping ๐Ÿงน"] + }, + { + "title": "## ๐Ÿ”ง CI/CD", + "labels": ["ci", "ci/cd ๐Ÿ”ง"] }, { "title": "## ๐Ÿงช Tests", - "labels": ["test"] + "labels": ["scope:test", "test", "unit tests ๐Ÿงช"] }, { "title": "## ๐Ÿ“ Documentation", - "labels": ["docs"] + "labels": ["scope:docs", "docs", "documentation ๐Ÿ“"] }, { "title": "## ๐Ÿ”จ Refactoring", @@ -227,8 +251,12 @@ jobs: "empty_template": "- No changes", "label_extractor": [ { - "pattern": "^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test)(\\(.+\\))?(!)?:", + "pattern": "^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test)(\\([^)]+\\))?(!)?:", "target": "$1" + }, + { + "pattern": "^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test)\\(([^)]+)\\)", + "target": "scope:$2" } ], "max_pull_requests": 1000,