Updating to newer git cliff. (#5912)

This commit is contained in:
Dessalines 2025-08-01 15:49:38 -04:00 committed by GitHub
parent bc78797f46
commit 9aadf45f52
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -7,22 +7,22 @@ repo = "lemmy"
# token = "" # token = ""
[changelog] [changelog]
# template for the changelog body # A Tera template to be rendered for each release in the changelog.
# https://keats.github.io/tera/docs/#introduction # See https://keats.github.io/tera/docs/#introduction
body = """ body = """
## What's Changed ## What's Changed
{%- 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 -%}
@ -51,39 +51,32 @@ body = """
https://github.com/{{ remote.github.owner }}/{{ remote.github.repo }} https://github.com/{{ remote.github.owner }}/{{ remote.github.repo }}
{%- endmacro -%} {%- endmacro -%}
""" """
# remove the leading and trailing whitespace from the template # Remove leading and trailing whitespaces from the changelog's body.
trim = true trim = true
# changelog footer # A Tera template to be rendered as the changelog's footer.
# See https://keats.github.io/tera/docs/#introduction
footer = """ footer = """
<!-- generated by git-cliff --> <!-- generated by git-cliff -->
""" """
# postprocessors # An array of regex based postprocessors to modify the changelog.
# Replace the placeholder `<REPO>` with a URL.
postprocessors = [] postprocessors = []
[git] [git]
# parse the commits based on https://www.conventionalcommits.org # Parse commits according to the conventional commits specification.
# See https://www.conventionalcommits.org
conventional_commits = false conventional_commits = false
# filter out the commits that are not conventional # Exclude commits that do not match the conventional commits specification.
filter_unconventional = true filter_unconventional = true
# process each line of a commit as an individual commit # Split commits on newlines, treating each line as an individual commit.
split_commits = false split_commits = false
# regex for preprocessing the commit messages # An array of regex based parsers to modify commit messages prior to further processing.
commit_preprocessors = [ commit_preprocessors = [{ pattern = '\((\w+\s)?#([0-9]+)\)', replace = "" }]
# remove issue numbers from commits # Exclude commits that are not matched by any commit parser.
{ pattern = '\((\w+\s)?#([0-9]+)\)', replace = "" },
]
commit_parsers = [{ field = "author.name", pattern = "renovate", skip = true }] commit_parsers = [{ field = "author.name", pattern = "renovate", skip = true }]
# protect breaking changes from being skipped due to matching a skipping commit_parser
protect_breaking_commits = false
# filter out the commits that are not matched by commit parsers
filter_commits = false filter_commits = false
# regex for matching git tags # Order releases topologically instead of chronologically.
tag_pattern = "[0-9].*"
# regex for skipping tags
skip_tags = "beta|alpha"
# regex for ignoring tags
ignore_tags = "rc"
# sort the tags topologically
topo_order = false topo_order = false
# sort the commits inside sections by oldest/newest order # Order of commits in each group/release within the changelog.
# Allowed values: newest, oldest
sort_commits = "newest" sort_commits = "newest"