mirror of
https://github.com/orhun/git-cliff.git
synced 2024-11-29 15:52:49 +03:00
refactor(config): use postprocessors for checking the typos
This commit is contained in:
parent
70cab990cc
commit
764e858a1e
@ -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]
|
||||
@ -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 = [
|
||||
|
Loading…
Reference in New Issue
Block a user