|
| 1 | +[remote.github] |
| 2 | +owner = "w4" |
| 3 | +repo = "rgit" |
| 4 | + |
| 5 | +[changelog] |
| 6 | +body = """ |
| 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 | +""" |
| 48 | +trim = true |
| 49 | +footer = """ |
| 50 | +<!-- generated by git-cliff --> |
| 51 | +""" |
| 52 | +postprocessors = [] |
| 53 | + |
| 54 | +[git] |
| 55 | +conventional_commits = false |
| 56 | +filter_unconventional = false |
| 57 | +split_commits = false |
| 58 | +commit_preprocessors = [ |
| 59 | + { pattern = '\((\w+\s)?#([0-9]+)\)', replace = "" }, |
| 60 | +] |
| 61 | +filter_commits = false |
| 62 | +topo_order = false |
| 63 | +sort_commits = "newest" |
0 commit comments