1
1
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:
Orhun Parmaksız 2024-01-08 13:42:01 +03:00
parent 70cab990cc
commit 764e858a1e
No known key found for this signature in database
GPG Key ID: F83424824B3E4B90

View File

@ -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 = [