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