https://dev.kronoz.win/r/rgit.git
1[remote.github]
2owner = "w4"
3repo = "rgit"
4
5[changelog]
6body = """
7## What's Changed
8
9{%- if version %} in {{ version }}{%- endif -%}
10{% for commit in commits %}
11 {% if commit.remote.pr_title -%}
12 {%- set commit_message = commit.remote.pr_title -%}
13 {%- else -%}
14 {%- set commit_message = commit.message -%}
15 {%- endif -%}
16 * [{{ commit_message | split(pat="\n") | first | trim }}]({{ self::remote_url() }}/commit/{{ commit.id }})\
17 {% if commit.remote.username %} by @{{ commit.remote.username }}{% else %} by {{ commit.author.name }}{%- endif -%}
18 {% if commit.remote.pr_number %} in \
19 [#{{ commit.remote.pr_number }}]({{ self::remote_url() }}/pull/{{ commit.remote.pr_number }}) \
20 {%- endif %}
21{%- endfor -%}
22
23{%- if github -%}
24{% if github.contributors | filter(attribute="is_first_time", value=true) | length != 0 %}
25 {% raw %}\n{% endraw -%}
26 ## New Contributors
27{%- endif %}\
28{% for contributor in github.contributors | filter(attribute="is_first_time", value=true) %}
29 * @{{ contributor.username }} made their first contribution
30 {%- if contributor.pr_number %} in \
31 [#{{ contributor.pr_number }}]({{ self::remote_url() }}/pull/{{ contributor.pr_number }}) \
32 {%- endif %}
33{%- endfor -%}
34{%- endif -%}
35
36{% if version %}
37 {% if previous.version %}
38 **Full Changelog**: {{ self::remote_url() }}/compare/{{ previous.version }}...{{ version }}
39 {% endif %}
40{% else -%}
41 {% raw %}\n{% endraw %}
42{% endif %}
43
44{%- macro remote_url() -%}
45 https://github.com/{{ remote.github.owner }}/{{ remote.github.repo }}
46{%- endmacro -%}
47"""
48trim = true
49footer = """
50<!-- generated by git-cliff -->
51"""
52postprocessors = []
53
54[git]
55conventional_commits = false
56filter_unconventional = false
57split_commits = false
58commit_preprocessors = [{ pattern = '\((\w+\s)?#([0-9]+)\)', replace = "" }]
59filter_commits = false
60topo_order = false
61sort_commits = "newest"