Skip to content

Commit

Permalink
Feat: 完善日志模板
Browse files Browse the repository at this point in the history
  • Loading branch information
Lruihao committed Jan 2, 2025
1 parent 8c73be0 commit edc9298
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
8 changes: 6 additions & 2 deletions changelog/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -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:",
Expand All @@ -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):"
}
}
9 changes: 7 additions & 2 deletions changelog/template.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -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}}

Expand All @@ -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

Expand Down

0 comments on commit edc9298

Please sign in to comment.