|
1 | | -{% if version.tag -%} |
2 | | - ## [{{ version.tag }}]({{repository_url}}/releases/tag/{{ version.tag }}) |
3 | | -{% else -%} |
4 | | - {% set from = commits | last -%} |
5 | | - {% set to = version.id-%} |
6 | | - {% set from_shorthand = from.id | truncate(length=7, end="") -%} |
7 | | - {% set to_shorthand = to | truncate(length=7, end="") -%} |
8 | | - ## Unreleased ({{ from_shorthand ~ ".." ~ to_shorthand }}) |
9 | | -{% endif -%} |
10 | | - |
11 | | -{% for type, typed_commits in commits | sort(attribute="type")| group_by(attribute="type")-%} |
12 | | -#### {{ type | upper_first }} |
13 | | -{% for scope, scoped_commits in typed_commits | group_by(attribute="scope") -%} |
14 | | - |
15 | | -{% for commit in scoped_commits | sort(attribute="scope") -%} |
16 | | - {% set shorthand = commit.id | truncate(length=7, end="") -%} |
17 | | - - **({{ scope }})** {{ commit.summary }} - ([{{ shorthand }}]({{ repository_url }}/commit/{{ commit.id }})) |
18 | | - {{ commit.body }} |
19 | | -{% endfor -%} |
20 | | - |
21 | | -{% endfor -%} |
22 | | - |
23 | | -{%- for commit in typed_commits | unscoped -%} |
24 | | - {% if commit.author -%} |
25 | | - {% set author = commit.author -%} |
26 | | - {% else -%} |
27 | | - {% set author = commit.signature -%} |
28 | | - {% endif -%} |
29 | | - |
30 | | - {% set shorthand = commit.id | truncate(length=7, end="") -%} |
31 | | - - {{ commit.summary }} - ([{{ shorthand }}]({{ repository_url }}/commit/{{ commit.id }})) |
32 | | - {{ commit.body }} |
33 | | -{% endfor -%} |
34 | | - |
35 | | -{% endfor -%} |
| 1 | +{% if version.tag -%} |
| 2 | + ## [{{ version.tag }}]({{repository_url}}/releases/tag/{{ version.tag }}) |
| 3 | +{% else -%} |
| 4 | + {% set from = commits | last -%} |
| 5 | + {% set to = version.id-%} |
| 6 | + {% set from_shorthand = from.id | truncate(length=7, end="") -%} |
| 7 | + {% set to_shorthand = to | truncate(length=7, end="") -%} |
| 8 | + ## Unreleased ({{ from_shorthand ~ ".." ~ to_shorthand }}) |
| 9 | +{% endif -%} |
| 10 | + |
| 11 | +{% for type, typed_commits in commits | sort(attribute="type") | group_by(attribute="type") -%} |
| 12 | + {% if type != "Miscellaneous Chores" -%} |
| 13 | + #### {{ type | upper_first }} |
| 14 | + {% endif -%} |
| 15 | +{% for scope, scoped_commits in typed_commits | group_by(attribute="scope") -%} |
| 16 | + |
| 17 | +{% for commit in scoped_commits | sort(attribute="scope") -%} |
| 18 | + {% if commit.type != "Miscellaneous Chores" -%} |
| 19 | + {% set shorthand = commit.id | truncate(length=7, end="") -%} |
| 20 | + - **({{ scope }})** {{ commit.summary }} - ([{{ shorthand }}]({{ repository_url }}/commit/{{ commit.id }})) |
| 21 | + {{ commit.body }} |
| 22 | + {% endif -%} |
| 23 | +{% endfor -%} |
| 24 | + |
| 25 | +{% endfor -%} |
| 26 | + |
| 27 | +{%- for commit in typed_commits | unscoped -%} |
| 28 | + {% if commit.type != "Miscellaneous Chores" -%} |
| 29 | + {% if commit.author -%} |
| 30 | + {% set author = commit.author -%} |
| 31 | + {% else -%} |
| 32 | + {% set author = commit.signature -%} |
| 33 | + {% endif -%} |
| 34 | + |
| 35 | + {% set shorthand = commit.id | truncate(length=7, end="") -%} |
| 36 | + - {{ commit.summary }} - ([{{ shorthand }}]({{ repository_url }}/commit/{{ commit.id }})) |
| 37 | + {{ commit.body }} |
| 38 | + {% endif -%} |
| 39 | +{% endfor -%} |
| 40 | + |
| 41 | +{% endfor -%} |
0 commit comments