Skip to content

Commit

Permalink
chore(cliff): fix commits with emoji to not show in changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
DamChtlv authored Jul 17, 2024
1 parent a2f1d42 commit b9ee869
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions cliff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,17 @@ 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 -' },
# Replace fancy emoji commit msg by basic text
{ pattern = '✨ Feat', replace = "feat"},
{ pattern = '🐛 Fix', replace = "fix"},
{ pattern = '🚜 Ticket', replace = "ticket"},
{ pattern = '🔨 Refact', replace = "refact"},
{ pattern = '📚 Doc', replace = "doc"},
{ pattern = '🐣 First', replace = "first"},
{ pattern = '🎨 Style', replace = "style"},
{ pattern = '🧪 Test', replace = "test"},
{ pattern = '🤖 CI', replace = "ci"},
{ pattern = '🔁 Revert', replace = "revert"},
]
# regex for parsing and grouping commits
commit_parsers = [
Expand Down

0 comments on commit b9ee869

Please sign in to comment.