|
| 1 | +[bump] |
| 2 | +# We set this to false, because we currently use a 0.X.X version. Features will thus only bump the |
| 3 | +# patch-level version. |
| 4 | +features_always_bump_minor = false |
| 5 | + |
| 6 | +# We set this to false, because we currently use a 0.X.X version. Breaking changes will thus only |
| 7 | +# bump the minor version. |
| 8 | +breaking_always_bump_major = false |
| 9 | + |
| 10 | +initial_tag = "cert-tools-0.1.1" |
| 11 | + |
| 12 | +[git] |
| 13 | +# All commits should be parsed as conventional commits. |
| 14 | +conventional_commits = true |
| 15 | + |
| 16 | +# All unconventional commits are filtered out and ignored. |
| 17 | +filter_unconventional = true |
| 18 | + |
| 19 | +# Commits listed in the changelog are sorted from newest to oldest. |
| 20 | +sort_commits = "newest" |
| 21 | + |
| 22 | +# Filter and ignore all commits NOT matched by the commit parsers below. |
| 23 | +filter_commits = true |
| 24 | + |
| 25 | +commit_parsers = [ |
| 26 | + { message = "^chore\\(cert-tools\\): Release", skip = true }, |
| 27 | + { message = "^feat\\(cert-tools\\)", group = "<!-- 0 --> Features" }, |
| 28 | + { message = "^fix\\(cert-tools\\)", group = "<!-- 1 --> Bug Fixes" }, |
| 29 | + { message = "^docs?\\(cert-tools\\)", group = "<!-- 2 --> Documentation" }, |
| 30 | + { message = "^(perf|refactor|test)\\(cert-tools\\)", group = "<!-- 3 --> Improvements" }, |
| 31 | + { message = "^chore\\(cert-tools\\): Improve", group = "<!-- 3 --> Improvements" }, |
| 32 | + { message = "^chore\\(cert-tools\\)", group = "<!-- 4 --> Miscellaneous" }, |
| 33 | +] |
| 34 | + |
| 35 | +commit_preprocessors = [ |
| 36 | + # Replace issue numbers with link templates to be updated in `changelog.postprocessors`. |
| 37 | + { pattern = '\((\w+\s)?#([0-9]+)\)', replace = "([#${2}](<REPO>/pull/${2}))" }, |
| 38 | +] |
| 39 | + |
| 40 | +# Only consider the 'cert-tools-' Git tags when generating the changelog |
| 41 | +tag_pattern = "cert-tools-[0-9]*.[0-9]*.[0-9]*" |
| 42 | + |
| 43 | +# Ignore the first release tag |
| 44 | +skip_tags = "cert-tools-0.1.0" |
| 45 | + |
| 46 | +[changelog] |
| 47 | +trim = true |
| 48 | + |
| 49 | +postprocessors = [ |
| 50 | + # Replace the placeholder `<REPO>` with a URL. |
| 51 | + { pattern = '<REPO>', replace = "https://github.com/stackabletech/secret-operator" }, |
| 52 | +] |
| 53 | + |
| 54 | +header = """<!-- GENERATED BY GIT-CLIFF, DO NOT EDIT MANUALLY --> |
| 55 | +
|
| 56 | +# Changelog |
| 57 | +
|
| 58 | +All notable changes to this project will be documented in this file. |
| 59 | +""" |
| 60 | + |
| 61 | +body = """ |
| 62 | +
|
| 63 | +{% if version %}\ |
| 64 | + {% if previous.version %}\ |
| 65 | + ## [{{ version | trim_start_matches(pat="cert-tools-") }}] - {{ timestamp | date(format="%Y-%m-%d") }} |
| 66 | +
|
| 67 | + [See complete diff](<REPO>/compare/{{ previous.version }}..{{ version }}) |
| 68 | + {% else %}\ |
| 69 | + ## [{{ version | trim_start_matches(pat="cert-tools-") }}] - {{ timestamp | date(format="%Y-%m-%d") }} |
| 70 | + {% endif %}\ |
| 71 | +{% else %}\ |
| 72 | + ## [Unreleased] |
| 73 | +{% endif %}\ |
| 74 | +
|
| 75 | +{% for group, commits in commits | group_by(attribute="group") %} |
| 76 | + ### {{ group | striptags | trim | upper_first }} |
| 77 | + {% for commit in commits %} |
| 78 | + - {% if commit.breaking %}**BREAKING:** {% endif %}\ |
| 79 | + {{ commit.message | upper_first }}.\ |
| 80 | + {%- endfor %} |
| 81 | +{% endfor -%} |
| 82 | +
|
| 83 | +
|
| 84 | +""" |
| 85 | + |
| 86 | +footer = """ |
| 87 | +
|
| 88 | +<!-- GENERATED BY GIT-CLIFF, DO NOT EDIT MANUALLY --> |
| 89 | +""" |
0 commit comments