Skip to content

Commit

Permalink
refactor(config): use postprocessors for checking the typos
Browse files Browse the repository at this point in the history
  • Loading branch information
orhun committed Jan 8, 2024
1 parent 70cab99 commit 764e858
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions cliff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ trim = true
# postprocessors
postprocessors = [
{ pattern = '<REPO>', replace = "https://github.com/orhun/git-cliff" }, # replace repository URL
# Check typos with https://github.com/crate-ci/typos
# If the spelling is incorrect, it will be automatically fixed.
{ pattern = '.*', replace_command = 'typos --write-changes -' },
]

[git]
Expand All @@ -64,10 +67,8 @@ filter_unconventional = true
split_commits = false
# regex for preprocessing the commit messages
commit_preprocessors = [
# replace issue numbers
{ pattern = '\((\w+\s)?#([0-9]+)\)', replace = "([#${2}](<REPO>/issues/${2}))" },
# Check spelling of the commit with https://github.com/crate-ci/typos
# If the spelling is incorrect, it will be automatically fixed.
{ pattern = '.*', replace_command = 'typos --write-changes -' },
]
# regex for parsing and grouping commits
commit_parsers = [
Expand Down

0 comments on commit 764e858

Please sign in to comment.