1- # git-cliff ~ default configuration file
1+ # git-cliff ~ configuration file
22# https://git-cliff.org/docs/configuration
3+ # Remote for git-cliff
34[remote .github ]
45owner = " doitintl"
56repo = " kube-no-trouble"
@@ -9,7 +10,7 @@ header = ""
910# template for the changelog body
1011# https://tera.netlify.app/docs
1112body = """
12- **Docker Image**: {{ get_env(name='REGISTRY', default='') }}/{{ get_env(name='IMAG_NAME', default='') }}:{{ get_env(name='GITHUB_REF_NAME', default='') }}
13+ **Docker Image**: {{ get_env(name='REGISTRY', default='ghcr.io/doitintl ') }}/{{ get_env(name='IMAG_NAME', default='kube-no-trouble ') }}:{{ get_env(name='GITHUB_REF_NAME', default='latest ') }}
1314
1415### Changelog \
1516{% for group, commits in commits | group_by(attribute="group") %}
@@ -20,24 +21,20 @@ body = """
2021 | filter(attribute="merge_commit", value=false) %}
2122 - {{commit.scope}}: \
2223 {{ commit.message }}\
23- {% if not commit.github.pr_number %} [{{ commit.id | truncate(length=7, end="") }} ]({{ self::remote_url() }}/commit/{{ commit.id }}){%- endif %}\
24+ {% if not commit.github.pr_number %} []({{ self::remote_url() }}/commit/{{ commit.id }}){%- endif %}\
2425 {% if commit.github.username %} by @{{ commit.github.username }}\
2526 {% else %} by [{{ commit.author.name }}](https://github.com/{{ commit.author.name }}){%- endif %}\
2627 {%- endfor -%}
2728{% endfor %}
28- {% if version %}
29- {% if previous.version %}\
30- Full Changelog: [{{ previous.version }}...{{ version }}]({{ self::remote_url() }}/compare/{{ previous.version }}...{{ version }})\
31- {% endif %}\
32- {% else -%}\
33- {% raw %}\n {% endraw %}\
34- {% endif %}\
3529{% if github.contributors | filter(attribute="is_first_time", value=true) | length != 0 %}
3630### New Contributors
3731{% for contributor in github.contributors | filter(attribute="is_first_time", value=true) %}
38- * @{{ contributor.username }} made their first contribution in #{{ contributor.pr_number }}
32+ * @{{ contributor.username }} made their first contribution {% if contributor.pr_number %} in #{{ contributor.pr_number }} {%- endif % }
3933{%- endfor -%}
4034{%- endif %}
35+
36+ Full Changelog: [{{ previous.version }}...{{ version }}]({{ self::remote_url() }}/compare/{{ previous.version }}...{{ version }})
37+
4138{%- macro remote_url() -%}
4239 https://github.com/{{ remote.github.owner }}/{{ remote.github.repo }}
4340{%- endmacro -%}
@@ -60,8 +57,6 @@ split_commits = false
6057# regex for preprocessing the commit messages
6158commit_preprocessors = [
6259 # { pattern = '\((\w+\s)?#([0-9]+)\)', replace = "([#${2}](<REPO>/issues/${2}))"}, # replace issue numbers
63- # remove pr numbers from commits
64- { pattern = ' \((\w+\s)?#([0-9]+)\)' , replace = " " },
6560]
6661# regex for parsing and grouping commits
6762commit_parsers = [
0 commit comments