Skip to content

Commit f7b281b

Browse files
committed
chore(clean): Clean up mess from double merge master into prs
Signed-off-by: dark0dave <[email protected]>
1 parent 3464786 commit f7b281b

File tree

2 files changed

+12
-17
lines changed

2 files changed

+12
-17
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
default_install_hook_types: [pre-commit, commit-msg]
22
repos:
33
- repo: https://github.com/pre-commit/pre-commit-hooks
4-
rev: v4.5.0
4+
rev: v5.0.0
55
hooks:
66
- id: check-json
77
stages: [pre-commit]
@@ -21,17 +21,17 @@ repos:
2121
- id: git-dirty
2222
stages: [pre-commit]
2323
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
24-
rev: v2.11.0
24+
rev: v2.14.0
2525
hooks:
2626
- id: pretty-format-golang
2727
stages: [pre-commit]
2828
- repo: https://github.com/codespell-project/codespell
29-
rev: v2.2.6
29+
rev: v2.3.0
3030
hooks:
3131
- id: codespell
3232
stages: [pre-commit]
3333
- repo: https://github.com/commitizen-tools/commitizen
34-
rev: v3.13.0
34+
rev: v3.30.0
3535
hooks:
3636
- id: commitizen
3737
stages: [commit-msg]

cliff.toml

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
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]
45
owner = "doitintl"
56
repo = "kube-no-trouble"
@@ -9,7 +10,7 @@ header = ""
910
# template for the changelog body
1011
# https://tera.netlify.app/docs
1112
body = """
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
6158
commit_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
6762
commit_parsers = [

0 commit comments

Comments
 (0)