@@ -15,18 +15,24 @@ All notable changes to this project will be documented in this file.\n
1515# https://keats.github.io/tera/docs/#introduction
1616body = """
1717{% macro print_commit(commit) -%}
18- - {% if commit.scope %}*({{ commit.scope }})* {% endif %}\
19- {% if commit.breaking %}[**breaking**] {% endif %}\
20- {{ commit.message | upper_first }} - \
21- ([{{ commit.id | truncate(length=7, end="") }}](<REPO>/commit/{{ commit.id }}))\
18+ - {% if commit.scope %}*({{ commit.scope }})* {% endif %}\
19+ {% if commit.breaking %}[**breaking**] {% endif %}\
20+ {{ commit.message | split(pat="\n ") | first | upper_first | trim }}\
21+ {% if commit.remote.username %} by @{{ commit.remote.username }}{%- endif -%}
22+ {% if commit.remote.pr_number %} in \
23+ [#{{ commit.remote.pr_number }}](<REPO>/pull/{{ commit.remote.pr_number }}) \
24+ {%- endif -%}
2225{% endmacro -%}
2326
24- {% macro print_username(username) -%}
25- [@{{ username }}](<GITHUB>/{{ username }})
27+ {% macro print_contributor(contributor) -%}
28+ - @{{ contributor.username }} made their first contribution
29+ {%- if contributor.pr_number %} in \
30+ [#{{ contributor.pr_number }}](<REPO>/pull/{{ contributor.pr_number }}) \
31+ {%- endif %}
2632{% endmacro -%}
2733
2834{% if version %}\
29- ## [{{ version | trim_start_matches(pat="v") }}] - {{ timestamp | date(format="%Y-%m-%d") }}
35+ ## [{{ version | trim_start_matches(pat="win32_runner- v") }}] - {{ timestamp | date(format="%Y-%m-%d") }}
3036{% else %}\
3137 ## [unreleased]
3238{% endif %}\
@@ -46,29 +52,26 @@ body = """
4652{% endfor -%}
4753{%- if github -%}
4854{% if github.contributors | filter(attribute="is_first_time", value=true) | length != 0 %}
49- ## New Contributors ❤️
55+ ### New Contributors ❤️
5056{% endif %}\
5157{% for contributor in github.contributors | filter(attribute="is_first_time", value=true) %}
52- * {{ self::print_username(username=contributor.username) }} \
53- made their first contribution
54- {%- if contributor.pr_number %} in \
55- [#{{ contributor.pr_number }}](<REPO>/pull/{{ contributor.pr_number }}) \
56- {%- endif %}
57- {%- endfor -%}
58+ {{ self::print_contributor(contributor=contributor) }}
59+ {%- endfor %}\n
5860{%- endif %}\n
5961"""
6062# template for the changelog footer
6163footer = """
6264{% for release in releases -%}
6365 {% if release.version -%}
6466 {% if release.previous.version -%}
65- [{{ release.version | trim_start_matches(pat="v") }}]: \
67+ [{{ release.version | trim_start_matches(pat="win32_runner- v") }}]: \
6668 <REPO>/compare/{{ release.previous.version }}..{{ release.version }}
6769 {% endif -%}
6870 {% else -%}
6971 [unreleased]: <REPO>/compare/{{ release.previous.version }}..HEAD
7072 {% endif -%}
71- {% endfor %}"""
73+ {% endfor %}
74+ """
7275# remove the leading and trailing s
7376trim = true
7477# postprocessors
@@ -88,22 +91,29 @@ filter_unconventional = true
8891split_commits = false
8992# regex for preprocessing the commit messages
9093commit_preprocessors = [
91- # Replace issue numbers
92- { pattern = ' \((\w+\s)?#([0-9]+)\)' , replace = " ([#${2}](<REPO>/issues/${2})) " },
94+ # remove issue numbers from commits
95+ { pattern = ' \((\w+\s)?#([0-9]+)\)' , replace = " " },
9396]
9497# regex for parsing and grouping commits
9598commit_parsers = [
9699 { message = " ^feat" , group = " <!-- 0 -->🚀 Features" },
97100 { message = " ^fix" , group = " <!-- 1 -->🐛 Bug Fixes" },
98- { message = " ^perf" , group = " <!-- 2 -->⚡ Performance Improvements" },
99- { message = " ^refactor" , group = " <!-- 3 -->🧹 Refactors" },
101+ { message = " ^perf" , group = " <!-- 2 -->⚡ Performance" },
102+ { message = " ^refactor" , group = " <!-- 3 -->🧹 Refactor" },
103+ { message = " ^docs" , group = " <!-- 4 -->📝 Documentation" },
104+ { message = " ^test" , group = " <!-- 5 -->🧪 Testing" },
105+ { message = " ^style" , group = " <!-- 6 -->🎨 Styling" },
106+ { message = " ^chore\\ (deps\\ )" , group = " <!-- 7 -->📦 Dependencies" },
107+ { message = " ^chore\\ (release\\ ): v" , skip = true },
108+ { message = " ^chore|^ci" , group = " <!-- 8 -->⚙️ Miscellaneous Tasks" },
109+ { body = " .*security" , group = " <!-- 9 -->🛡️ Security" },
100110]
101111# protect breaking changes from being skipped due to matching a skipping commit_parser
102112protect_breaking_commits = false
103113# filter out the commits that are not matched by commit parsers
104114filter_commits = true
105115# regex for matching git tags
106- tag_pattern = " v[0-9].*"
116+ tag_pattern = " win32_runner- v[0-9].*"
107117# regex for skipping tags
108118skip_tags = " "
109119# regex for ignoring tags
0 commit comments