Skip to content

Commit 3709130

Browse files
authored
chore: change configuration for auto changelog generation (#37)
1 parent 22b4975 commit 3709130

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/changelog.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
timeout-minutes: 15
1313
if: |
1414
!startsWith(github.event.head_commit.message, '[Release]') &&
15-
!startsWith(github.event.head_commit.message, 'docs: update CHANGELOG.md') &&
15+
!startsWith(github.event.head_commit.message, 'chore(changelog): update CHANGELOG.md') &&
1616
github.event.head_commit.author.name != 'github-actions[bot]'
1717
steps:
1818
- uses: actions/checkout@v5
@@ -39,7 +39,7 @@ jobs:
3939
uses: stefanzweifel/git-auto-commit-action@v7
4040
if: steps.changelog-changes.outputs.has-changes == 'true'
4141
with:
42-
commit_message: "docs: update CHANGELOG.md [skip ci]"
42+
commit_message: "chore(changelog): update CHANGELOG.md"
4343
file_pattern: CHANGELOG.md
4444
commit_user_name: github-actions[bot]
4545
commit_user_email: github-actions[bot]@users.noreply.github.com

cliff.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,9 @@ commit_preprocessors = [
232232
{ pattern = '\((\w+\s)?#([0-9]+)\)', replace = "" },
233233
]
234234
commit_parsers = [
235+
{ message = "^chore\\(changelog\\)", skip = true },
236+
{ message = "^chore.*changelog", skip = true },
237+
{ message = "^docs: update CHANGELOG\\.md \\[skip ci\\]$", skip = true },
235238
{ message = "^feat", group = "Features" },
236239
{ message = "^fix", group = "Bug Fixes" },
237240
{ message = "^doc", group = "Documentation" },

0 commit comments

Comments
 (0)