-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcliff-artifacthub.toml
More file actions
43 lines (41 loc) · 1.82 KB
/
Copy pathcliff-artifacthub.toml
File metadata and controls
43 lines (41 loc) · 1.82 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# SPDX-FileCopyrightText: The git-cliff-config Authors
# SPDX-License-Identifier: 0BSD
#
# Renders the same per-chart commit range as cliff.toml, but formatted as an
# Artifact Hub `artifacthub.io/changes` annotation value — a YAML list of
# {kind, description}. The helm-charts release workflow injects the output into
# the chart's Chart.yaml before `helm package`, so Artifact Hub shows a Changelog
# tab. The [git] section MIRRORS cliff.toml — both live in this repo so they
# stay in sync.
[changelog]
header = ""
# Map cliff's conventional-commit groups onto Artifact Hub's change kinds
# (added | changed | fixed | …). json_encode quotes/escapes each description so
# a colon or quote in a commit subject can't break the emitted YAML.
body = """{% for commit in commits %}- kind: {% if commit.group == "Added" %}added{% elif commit.group == "Fixed" %}fixed{% else %}changed{% endif %}
description: {{ commit.message | split(pat="\n") | first | trim | json_encode }}
{% endfor %}"""
# trim=false so the two-space indent on `description` survives (it makes each
# pair a single YAML list item); git-cliff's trim would otherwise strip it.
trim = false
footer = ""
[git]
conventional_commits = true
filter_unconventional = false
split_commits = false
commit_parsers = [
{ message = "^feat", group = "Added" },
{ message = "^fix", group = "Fixed" },
{ message = "^doc", group = "Documentation" },
{ message = "^perf", group = "Performance" },
{ message = "^refactor", group = "Changed" },
{ message = "^chore\\(deps\\)", group = "Dependencies" },
{ message = "^chore", group = "Changed" },
{ message = "^revert", group = "Reverted" },
{ message = ".*", group = "Changed" },
]
protect_breaking_commits = true
filter_commits = false
tag_pattern = "^[0-9]+\\.[0-9]+\\.[0-9]+$"
topo_order = false
sort_commits = "newest"