diff options
| author | Ellie Huxtable <ellie@elliehuxtable.com> | 2024-06-10 08:11:46 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-10 08:11:46 +0100 |
| commit | c0d2c961773056eda6a76e5526586a11155180c2 (patch) | |
| tree | faf4c7a3d4a968ec8be9de0de194f351eeac3a40 /cliff.toml | |
| parent | docs: add docs for store subcommand (#2097) (diff) | |
| download | atuin-c0d2c961773056eda6a76e5526586a11155180c2.zip | |
chore: show scope in changelog (#2102)
Diffstat (limited to 'cliff.toml')
| -rw-r--r-- | cliff.toml | 23 |
1 files changed, 20 insertions, 3 deletions
@@ -21,11 +21,28 @@ body = """ {% endif %}\ {% for group, commits in commits | group_by(attribute="group") %} ### {{ group | upper_first }} - {% for commit in commits %} - - {% if commit.breaking %}[**breaking**] {% endif %}{{ commit.message | upper_first }}\ - {% endfor %} + {% for commit in commits + | filter(attribute="scope") + | 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 """ + # remove the leading and trailing whitespace from the template trim = true # changelog footer |
