mirror of
https://github.com/atuinsh/atuin.git
synced 2025-06-26 04:41:27 +02:00
chore: show scope in changelog (#2102)
This commit is contained in:
parent
85aa88abab
commit
c0d2c96177
841
CHANGELOG.md
841
CHANGELOG.md
File diff suppressed because it is too large
Load Diff
23
cliff.toml
23
cliff.toml
@ -21,11 +21,28 @@ body = """
|
|||||||
{% endif %}\
|
{% endif %}\
|
||||||
{% for group, commits in commits | group_by(attribute="group") %}
|
{% for group, commits in commits | group_by(attribute="group") %}
|
||||||
### {{ group | upper_first }}
|
### {{ group | upper_first }}
|
||||||
{% for commit in commits %}
|
{% for commit in commits
|
||||||
- {% if commit.breaking %}[**breaking**] {% endif %}{{ commit.message | upper_first }}\
|
| filter(attribute="scope")
|
||||||
{% endfor %}
|
| sort(attribute="scope") %}
|
||||||
|
- *({{commit.scope}})* {{ commit.message | upper_first }}
|
||||||
|
{%- if commit.breaking %}
|
||||||
|
{% raw %} {% endraw %}- **BREAKING**: {{commit.breaking_description}}
|
||||||
|
{%- endif -%}
|
||||||
|
{%- endfor -%}
|
||||||
|
{% raw %}\n{% endraw %}\
|
||||||
|
{%- for commit in commits %}
|
||||||
|
{%- if commit.scope -%}
|
||||||
|
{% else -%}
|
||||||
|
- *(No Category)* {{ commit.message | upper_first }}
|
||||||
|
{% if commit.breaking -%}
|
||||||
|
{% raw %} {% endraw %}- **BREAKING**: {{commit.breaking_description}}
|
||||||
|
{% endif -%}
|
||||||
|
{% endif -%}
|
||||||
|
{% endfor -%}
|
||||||
|
{% raw %}\n{% endraw %}\
|
||||||
{% endfor %}\n
|
{% endfor %}\n
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# remove the leading and trailing whitespace from the template
|
# remove the leading and trailing whitespace from the template
|
||||||
trim = true
|
trim = true
|
||||||
# changelog footer
|
# changelog footer
|
||||||
|
Loading…
x
Reference in New Issue
Block a user