fix(config): update template to generalize gitea remote and add postprocessors
This commit is contained in:
@@ -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=" ") -%}
|
||||
|
||||
Reference in New Issue
Block a user