mirror of
https://github.com/FunkinCrew/Funkin.git
synced 2024-11-24 08:38:16 -05:00
more small little changelog template stuff
This commit is contained in:
parent
a42240e6a5
commit
b4c48893bc
1 changed files with 3 additions and 1 deletions
|
@ -27,7 +27,8 @@ body = """
|
||||||
{% for group, commits in commits | group_by(attribute="group") %}
|
{% for group, commits in commits | group_by(attribute="group") %}
|
||||||
### {{ group | upper_first }}
|
### {{ group | upper_first }}
|
||||||
{%- for commit in commits %}
|
{%- for commit in commits %}
|
||||||
- {{ commit.message | split(pat="\n") | first | upper_first | trim }}\
|
- {% if commit.scope %}({{commit.scope}}) {% endif %}{{ commit.message | split(pat="\n") | first | upper_first | trim }} \
|
||||||
|
([{{ commit.id | truncate(length=7, end="") }}]({{self::remote_url()}}/commit/{{ commit.id }})) -\
|
||||||
{% if commit.remote.username %} by @{{ commit.remote.username }}
|
{% if commit.remote.username %} by @{{ commit.remote.username }}
|
||||||
{%- elif commit.author.name %} by {{ commit.author.name }}
|
{%- elif commit.author.name %} by {{ commit.author.name }}
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
|
@ -67,6 +68,7 @@ commit_preprocessors = [
|
||||||
]
|
]
|
||||||
# regex for parsing and grouping commits
|
# regex for parsing and grouping commits
|
||||||
commit_parsers = [
|
commit_parsers = [
|
||||||
|
{ message = "^docs", group = "Changed", scope="docs" },
|
||||||
{ message = "^[a|A]dd", group = "Added" },
|
{ message = "^[a|A]dd", group = "Added" },
|
||||||
{ message = "^[s|S]upport", group = "Added" },
|
{ message = "^[s|S]upport", group = "Added" },
|
||||||
{ message = "^[r|R]emove", group = "Removed" },
|
{ message = "^[r|R]emove", group = "Removed" },
|
||||||
|
|
Loading…
Reference in a new issue