@@ -16,3 +16,54 @@ git_release_enable = true
1616name = " oxc_resolver_napi"
1717version_group = " group"
1818changelog_update = false
19+
20+ [changelog ]
21+ body = """
22+
23+ ## [{{ version }}]\
24+ {%- if release_link -%}\
25+ ({{ release_link }})\
26+ {% endif %} \
27+ - {{ timestamp | date(format="%Y-%m-%d") }}
28+ {% for group, commits in commits | group_by(attribute="group") %}
29+ ### {{ group | upper_first }}
30+
31+ {% for commit in commits %}
32+ {%- if commit.scope -%}
33+ - *({{commit.scope}})* {% if commit.breaking %}[**breaking**] {% endif %}\
34+ {{ commit.message }}{{ self::username(commit=commit) }}\
35+ {%- if commit.links %} \
36+ ({% for link in commit.links %}[{{link.text}}]({{link.href}}) {% endfor -%})\
37+ {% endif %}
38+ {% else -%}
39+ - {% if commit.breaking %}[**breaking**] {% endif %}{{ commit.message }}{{ self::username(commit=commit) }}{{ self::pr(commit=commit) }}
40+ {% endif -%}
41+ {% endfor -%}
42+ {% endfor %}
43+ {%- if remote.contributors %}
44+ ### Contributors
45+ {% for contributor in remote.contributors %}
46+ * @{{ contributor.username }}
47+ {%- endfor %}
48+ {% endif -%}
49+ {%- macro username(commit) -%}
50+ {% if commit.remote.username %} (by @{{ commit.remote.username }}){% endif -%}
51+ {% endmacro -%}
52+ {%- macro pr(commit) -%}
53+ {% if commit.remote.pr_number %} - #{{ commit.remote.pr_number }}{% endif -%}
54+ {% endmacro -%}
55+ """
56+
57+ commit_parsers = [
58+ { message = " ^feat" , group = " <!-- 0 -->π Features" },
59+ { message = " ^fix" , group = " <!-- 1 -->π Bug Fixes" },
60+ { message = " ^refactor" , group = " <!-- 2 -->π Refactor" },
61+ { message = " ^doc" , group = " <!-- 3 -->π Documentation" },
62+ { message = " ^perf" , group = " <!-- 4 -->β‘ Performance" },
63+ { message = " ^style" , group = " <!-- 5 -->π¨ Styling" },
64+ { message = " ^test" , group = " <!-- 6 -->π§ͺ Testing" },
65+ { message = " ^chore|^ci|^deps" , skip = true },
66+ { body = " .*security" , group = " <!-- 7 -->π‘οΈ Security" },
67+ { message = " ^revert" , group = " <!-- 8 -->βοΈ Revert" },
68+ { message = " .*" , group = " <!-- 9 -->πΌ Other" },
69+ ]
0 commit comments