From 0186fbfa0ce6155f2c43b4a5f0418912c8a67340 Mon Sep 17 00:00:00 2001 From: michdr Date: Mon, 17 Feb 2025 17:16:49 +0100 Subject: [PATCH 1/2] build: add changelog_config for build changelog --- .github/changelog_config.json | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/changelog_config.json diff --git a/.github/changelog_config.json b/.github/changelog_config.json new file mode 100644 index 0000000..d0db72e --- /dev/null +++ b/.github/changelog_config.json @@ -0,0 +1,34 @@ +{ + "template": "# What's Changed\n\n#{{CHANGELOG}}\n\n**Full Changelog**: [#{{FROM_TAG}}...#{{TO_TAG}}](#{{RELEASE_DIFF}})", + "pr_template": "- #{{TITLE}} [##{{NUMBER}}](#{{URL}})", + "empty_template": "- no changes", + "categories": [ + { + "title": "## 🚀 Features", + "labels": ["feat"] + }, + { + "title": "## 🐛 Fixes", + "labels": ["fix"] + }, + { + "title": "## 📦 Uncategorized", + "labels": [] + } + ], + "ignore_labels": ["chore", "build", "docs", "refactor", "style", "bump", "ci"], + "label_extractor": [ + { + "pattern": "^([\\w-]+)(?:\\(([^)]+)\\))?: (.+)$", + "target": "$1", + "on_property": "title" + } + ], + "transformers": [ + { + "pattern": "^([\\w-]+)(?:\\(([^)]+)\\))?: (.+)$", + "target": "$3", + "on_property": "title" + } + ] +} From 34e94ee6bccd833dab557361b7d20e0ad993fba1 Mon Sep 17 00:00:00 2001 From: michdr Date: Mon, 17 Feb 2025 21:47:53 +0100 Subject: [PATCH 2/2] improve --- .github/changelog_config.json | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/changelog_config.json b/.github/changelog_config.json index d0db72e..833d437 100644 --- a/.github/changelog_config.json +++ b/.github/changelog_config.json @@ -1,7 +1,7 @@ { "template": "# What's Changed\n\n#{{CHANGELOG}}\n\n**Full Changelog**: [#{{FROM_TAG}}...#{{TO_TAG}}](#{{RELEASE_DIFF}})", "pr_template": "- #{{TITLE}} [##{{NUMBER}}](#{{URL}})", - "empty_template": "- no changes", + "empty_template": "No Changes", "categories": [ { "title": "## 🚀 Features", @@ -26,8 +26,9 @@ ], "transformers": [ { - "pattern": "^([\\w-]+)(?:\\(([^)]+)\\))?: (.+)$", - "target": "$3", + "pattern": "^(?:[^:]+:\\s*)?(.*)$", + "method": "replace", + "target": "$1", "on_property": "title" } ]