Skip to content
Discussion options

You must be logged in to vote

For the squash-merge shape, the option you probably want to try first is:

[git]
split_commits = true

That tells git-cliff to split a commit message on newlines and treat each line as a separate commit entry. There is a test fixture for exactly that behavior in the repo: a single commit message like

feat: add feature 1
feat: add feature 2
fix: fix feature 1

ends up grouped as separate Features/Bug Fixes entries.

The important constraint is that the lines in the squash commit message still need to be parseable by your commit_parsers. So this works well if your squash commit body contains plain conventional-commit lines, for example:

feat(parser): add ability to parse arrays
fix(args): rena…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by awatterson22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants