From edc9298a5dd346dea51505cfbb4755cd2fd159cf Mon Sep 17 00:00:00 2001 From: Cell <1024@lruihao.cn> Date: Thu, 2 Jan 2025 14:07:25 +0800 Subject: [PATCH] =?UTF-8?q?Feat:=20=E5=AE=8C=E5=96=84=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E6=A8=A1=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- changelog/config.json | 8 ++++++-- changelog/template.hbs | 9 +++++++-- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/changelog/config.json b/changelog/config.json index 586b8e5..c8443c0 100644 --- a/changelog/config.json +++ b/changelog/config.json @@ -2,7 +2,7 @@ "output": "CHANGELOG.md", "sortCommits": "relevance", "commitLimit": false, - "ignoreCommitPattern": "(Chore|chore):|\\(ignore\\)|typo", + "ignoreCommitPattern": "\\(i|ignore\\)|typo", "replaceText": { "^(Feat|feat):": ":sparkles: Feat:", "^(Fix|fix):": ":bug: Fix:", @@ -12,6 +12,10 @@ "^(Perf|perf):": ":zap: Perf:", "^(Test|test):": ":white_check_mark: Test:", "^(Docs|docs):": ":memo: Docs:", - "^(Chore|chore):": ":wrench: Chore:" + "^(Chore|chore):": ":wrench: Chore:", + "^(Chore|chore)\\(deps-dev\\):": ":arrow_up: Chore(deps-dev):", + "^(Chore|chore)\\(deps\\):": ":arrow_up: Chore(deps):", + "^(Build|build)\\(deps-dev\\):": ":arrow_up: Build(deps-dev):", + "^(Build|build)\\(deps\\):": ":arrow_up: Build(deps):" } } diff --git a/changelog/template.hbs b/changelog/template.hbs index b947b35..6ac02c3 100644 --- a/changelog/template.hbs +++ b/changelog/template.hbs @@ -20,7 +20,7 @@ All notable changes to this project will be documented in this file. {{/commit-list}} {{!-- List commits that add new features, but exclude those that have `:sparkles:` in the message --}} - {{#commit-list commits heading='### :tada: New Features' message='(:tada:|Feat:|feat:)' exclude='^:sparkles:'}} + {{#commit-list commits heading='### :tada: New Features' message='(:tada:|Feat(new):|feat(new):)' exclude='^:sparkles:'}} - {{subject}} [`{{shorthash}}`]({{href}}) by {{githubUser author}} {{/commit-list}} @@ -40,10 +40,15 @@ All notable changes to this project will be documented in this file. {{/commit-list}} {{!-- List other changes commits --}} - {{#commit-list commits heading='### :wrench: Other Changes' message='(Refactor:|refactor:|Style:|style:|Test:|test:|Chore:|chore:|Build:|build:)'}} + {{#commit-list commits heading='### :wrench: Other Changes' message='(Refactor:|refactor:|Style:|style:|Test:|test:)'}} - {{subject}} [`{{shorthash}}`]({{href}}) by {{githubUser author}} {{/commit-list}} + {{!-- List dependencies updates --}} + {{#commit-list commits heading='### :arrow_up: Dependencies Updates' message='(:arrow_up:|Chore:|chore:|Build:|build:)'}} + - {{subject}} [`{{shorthash}}`]({{href}}) by {{githubUser author}} + {{/commit-list}} + {{#if merges}} ### Merged pull requests