fix(config): update template to generalize gitea remote and add postprocessors

This commit is contained in:
2025-12-14 21:58:38 +01:00
parent 7246f2f4d8
commit 51cfcdc648

View File

@@ -4,13 +4,15 @@
# Lines starting with "#" are comments. # Lines starting with "#" are comments.
# Configuration options are organized into tables and keys. # Configuration options are organized into tables and keys.
# See documentation for more information on available options. # See documentation for more information on available options.
[remote.gitea] # [remote.gitea] # Disabled by default
owner = "%OWNER%" # owner = "%OWNER%"
repo = "%REPO%" # repo = "%REPO%"
[changelog] [changelog]
postprocessors = [ postprocessors = [
{ pattern = '<GITEA_URL>', replace = "https://git.0xmax42.io" }, # replace gitea url { pattern = '<GITEA_URL>', replace = "https://git.0xmax42.io" }, # replace gitea url
{ pattern = '<OWNER>', replace = "%OWNER%" }, # replace owner
{ pattern = '<REPO>', replace = "%REPO%" }, # replace repo
] ]
header = """ header = """
@@ -20,7 +22,7 @@ All notable changes to this project will be documented in this file.\n
body = """ body = """
{%- macro remote_url() -%} {%- macro remote_url() -%}
<GITEA_URL>/{{ remote.gitea.owner }}/{{ remote.gitea.repo }} <GITEA_URL>/<OWNER>/<REPO>
{%- endmacro -%} {%- endmacro -%}
{%- macro indent(text, prefix=" ") -%} {%- macro indent(text, prefix=" ") -%}