44# Lines starting with "#" are comments.
55# Configuration options are organized into tables and keys.
66# See documentation for more information on available options.
7+ [remote .github ]
8+ owner = " dogy-app"
9+ repo = " backend-api"
710
811[changelog ]
912# changelog header
10- header = """
11- # Changelog
12- """
13+ header = """ """
1314# template for the changelog body
1415# https://tera.netlify.app/docs
1516body = """
16- {% set github_repo = 'backend-api' %}
17- {% set branch = 'main' %}
18- {% set github_username = 'dogy-app' %}
19-
2017{% if version %}\
2118 # Release {{ version | trim_start_matches(pat="v") }} ({{ timestamp | date(format="%Y-%m-%d") }})
2219{% else %}\
@@ -27,9 +24,7 @@ body = """
2724 ### {{ group | upper_first }}
2825 {% for commit in commits %}
2926 - [`{{ commit.id | truncate(length=7, end="")
30- }}`](https://github.com/{{github_username }}/{{ github_repo
31- }}/commit/{{ commit.id }}) {% if commit.breaking %}[**Breaking
32- Change**] {% endif %} {{commit.message | upper_first }} \
27+ }}`](https://github.com/{{ remote.github.owner }}/{{ remote.github.repo }}/commit/{{ commit.id }}) {% if commit.breaking %}[**Breaking Change**] {% endif %} {{commit.message | upper_first }} \
3328 {% endfor %}
3429{% endfor %}\n
3530"""
@@ -39,6 +34,10 @@ trim = true
3934footer = """
4035<!-- generated by git-cliff -->
4136"""
37+ postprocessors = [
38+ # Replace the placeholder `<REPO>` with a URL.
39+ { pattern = ' <REPO>' , replace = " https://github.com/dogy-app/backend-api" }, # replace repository URL
40+ ]
4241
4342[git ]
4443# parse the commits based on https://www.conventionalcommits.org
@@ -49,7 +48,7 @@ filter_unconventional = true
4948split_commits = false
5049# regex for preprocessing the commit messages
5150commit_preprocessors = [
52- # { pattern = '\((\w+\s)?#([0-9]+)\)', replace = "([#${2}](https://github.com/orhun/git-cliff /issues/${2}))"}, # replace issue numbers
51+ { pattern = ' \((\w+\s)?#([0-9]+)\)' , replace = " ([#${2}](<REPO> /issues/${2}))" }, # replace issue numbers
5352]
5453# regex for parsing and grouping commits
5554commit_parsers = [
0 commit comments