mirror of
https://github.com/orhun/git-cliff-action.git
synced 2026-03-22 23:45:43 +08:00
26 lines
674 B
TOML
26 lines
674 B
TOML
# configuration file for git-cliff
|
|
|
|
[changelog]
|
|
header = "# Changelog\n"
|
|
body = """
|
|
{% if version %}\
|
|
## [{{ version | replace(from="v", to="") }}] - {{ timestamp | date(format="%Y-%m-%d") }}
|
|
{% else %}\
|
|
## [unreleased]
|
|
{% endif %}\
|
|
{% for group, commits in commits | group_by(attribute="group") %}
|
|
### {{ group | upper_first }}
|
|
{% for group, commits in commits | group_by(attribute="scope") %}\
|
|
#### {{ group }}\
|
|
{% for commit in commits %}
|
|
- {{ commit.message | upper_first }}\
|
|
{% endfor %}
|
|
{% endfor %}\
|
|
{% endfor %}\n
|
|
"""
|
|
trim = true
|
|
footer = "<!-- generated by git-cliff -->\n"
|
|
|
|
[git]
|
|
conventional_commits = true
|