mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-25 22:01:19 +00:00
Updating git cliff.
This commit is contained in:
parent
f7d881ac78
commit
79850892f0
1 changed files with 10 additions and 15 deletions
25
cliff.toml
25
cliff.toml
|
@ -14,15 +14,15 @@ body = """
|
||||||
|
|
||||||
{%- if version %} in {{ version }}{%- endif -%}
|
{%- if version %} in {{ version }}{%- endif -%}
|
||||||
{% for commit in commits %}
|
{% for commit in commits %}
|
||||||
{% if commit.github.pr_title -%}
|
{% if commit.remote.pr_title -%}
|
||||||
{%- set commit_message = commit.github.pr_title -%}
|
{%- set commit_message = commit.remote.pr_title -%}
|
||||||
{%- else -%}
|
{%- else -%}
|
||||||
{%- set commit_message = commit.message -%}
|
{%- set commit_message = commit.message -%}
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
* {{ commit_message | split(pat="\n") | first | trim }}\
|
* {{ commit_message | split(pat="\n") | first | trim }}\
|
||||||
{% if commit.github.username %} by @{{ commit.github.username }}{%- endif -%}
|
{% if commit.remote.username %} by @{{ commit.remote.username }}{%- endif -%}
|
||||||
{% if commit.github.pr_number %} in \
|
{% if commit.remote.pr_number %} in \
|
||||||
[#{{ commit.github.pr_number }}]({{ self::remote_url() }}/pull/{{ commit.github.pr_number }}) \
|
[#{{ commit.remote.pr_number }}]({{ self::remote_url() }}/pull/{{ commit.remote.pr_number }}) \
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
{%- endfor -%}
|
{%- endfor -%}
|
||||||
|
|
||||||
|
@ -53,7 +53,7 @@ body = """
|
||||||
"""
|
"""
|
||||||
# remove the leading and trailing whitespace from the template
|
# remove the leading and trailing whitespace from the template
|
||||||
trim = true
|
trim = true
|
||||||
# changelog footer
|
# template for the changelog footer
|
||||||
footer = """
|
footer = """
|
||||||
<!-- generated by git-cliff -->
|
<!-- generated by git-cliff -->
|
||||||
"""
|
"""
|
||||||
|
@ -72,17 +72,12 @@ commit_preprocessors = [
|
||||||
# remove issue numbers from commits
|
# remove issue numbers from commits
|
||||||
{ pattern = '\((\w+\s)?#([0-9]+)\)', replace = "" },
|
{ pattern = '\((\w+\s)?#([0-9]+)\)', replace = "" },
|
||||||
]
|
]
|
||||||
commit_parsers = [{ field = "author.name", pattern = "renovate", skip = true }]
|
commit_parsers = [
|
||||||
# protect breaking changes from being skipped due to matching a skipping commit_parser
|
{ field = "author.name", pattern = "renovate", skip = true },
|
||||||
protect_breaking_commits = false
|
{ field = "message", pattern = "Upping version", skip = true },
|
||||||
|
]
|
||||||
# filter out the commits that are not matched by commit parsers
|
# filter out the commits that are not matched by commit parsers
|
||||||
filter_commits = false
|
filter_commits = false
|
||||||
# regex for matching git tags
|
|
||||||
tag_pattern = "[0-9].*"
|
|
||||||
# regex for skipping tags
|
|
||||||
skip_tags = "beta|alpha"
|
|
||||||
# regex for ignoring tags
|
|
||||||
ignore_tags = "rc"
|
|
||||||
# sort the tags topologically
|
# sort the tags topologically
|
||||||
topo_order = false
|
topo_order = false
|
||||||
# sort the commits inside sections by oldest/newest order
|
# sort the commits inside sections by oldest/newest order
|
||||||
|
|
Loading…
Reference in a new issue