You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
It seems that parsing of the footer trailers produces incorrect values with valid git trailers.
To Reproduce
Steps to reproduce the behavior:
Create a commit with the message
fix(example): fix keepachangelog config example
Fixes: #123, #124, #125
Update cliff.toml config with this body to output the footers:
body = """{% for group, commits in commits | group_by(attribute="group") %} ### {{ group | upper_first }} {% for commit in commits %} - {{ commit.message | upper_first }} ({{ commit.footers | map(attribute="value") | join(sep=", ") }})\ {% endfor %}{% endfor %}\n"""
git-cliff outputs
### Bug Fixes- Fix keepachangelog config example (, , 125)
Expected behavior
### Bug Fixes- Fix keepachangelog config example (#123, #124, #125)
Screenshots/Logs
N/A
System (please complete the following information):
OS Information: x86_64-apple-darwin (macOS 16.2)
Project Version: 0.10.0
Additional context
I'm using git trailers to add the related issues in the commit message. According to its documentation the trailer value may contain whitespace and as a sanity check:
Unfortunately this is not possible since such commits are not conventional and cannot be parsed. Footer object only contains token, separator and value since you normally have <token><separator><value> as your footer. See the specification and footers section in README.md.
using a separate trailer for each related issue
Yes, this is the correct usage of conventional footers.
Feel free to ask in git-conventional to double-check since git-cliff only reflects what it gets from the parser.
git-conventional fixed the footer parsing issue crate-ci/git-conventional#34 and it seems like they released a new version with the patch. Any chance that git-cliff cuts a new release as well? Oh btw, congrats on the Dec 25 v1 release 🎉
Describe the bug
It seems that parsing of the footer trailers produces incorrect values with valid git trailers.
To Reproduce
Steps to reproduce the behavior:
cliff.toml
config with thisbody
to output the footers:git-cliff
outputsExpected behavior
Screenshots/Logs
N/A
System (please complete the following information):
Additional context
I'm using git trailers to add the related issues in the commit message. According to its documentation the trailer value may contain whitespace and as a sanity check:
When I use git-cliff to generate a changelog the parsing produces unexpected results.
JSON output
Interestingly, using a separate trailer for each related issue like this commit message:
git-cliff correctly outputs:
git log
gets too noisy when there are many related issues so I'd rather have them in a comma-separated list.The text was updated successfully, but these errors were encountered: