|
| 1 | +# git-cliff ~ configuration file |
| 2 | +# https://git-cliff.org/docs/configuration |
| 3 | + |
| 4 | +# Bitbucket integration for fetching commit metadata. |
1 | 5 | [remote.bitbucket]
|
2 | 6 | owner = "mcwarman-playground"
|
3 | 7 | repo = "git-cliff-readme-example"
|
4 | 8 |
|
5 | 9 | [changelog]
|
6 |
| -# template for the changelog body |
7 |
| -# https://keats.github.io/tera/docs/#introduction |
| 10 | +# A Tera template to be rendered for each release in the changelog. |
| 11 | +# See https://keats.github.io/tera/docs/#introduction |
8 | 12 | body = """
|
9 | 13 | {%- macro remote_url() -%}
|
10 | 14 | https://bitbucket.org/{{ remote.bitbucket.owner }}/{{ remote.bitbucket.repo }}
|
@@ -32,21 +36,26 @@ body = """
|
32 | 36 | {%- endfor -%}
|
33 | 37 | {% raw %}\n\n{% endraw -%}
|
34 | 38 | """
|
35 |
| -# remove the leading and trailing whitespace from the template |
| 39 | +# Remove leading and trailing whitespaces from the changelog's body. |
36 | 40 | trim = true
|
37 |
| -# changelog footer |
| 41 | +# A Tera template to be rendered as the changelog's footer. |
| 42 | +# See https://keats.github.io/tera/docs/#introduction |
38 | 43 | footer = """
|
39 | 44 | <!-- generated by -cliff -->
|
40 | 45 | """
|
41 | 46 |
|
42 | 47 | [git]
|
43 |
| -# parse the commits based on https://www.conventionalcommits.org |
| 48 | +# Parse commits according to the conventional commits specification. |
| 49 | +# See https://www.conventionalcommits.org |
44 | 50 | conventional_commits = false
|
45 |
| -# filter out the commits that are not conventional |
| 51 | +# Exclude commits that do not match the conventional commits specification. |
46 | 52 | filter_unconventional = true
|
47 |
| -# process each line of a commit as an individual commit |
| 53 | +# Split commits on newlines, treating each line as an individual commit. |
48 | 54 | split_commits = false
|
49 |
| -# regex for preprocessing the commit messages |
50 |
| -commit_preprocessors = [{ pattern = '\((\w+\s)?#([0-9]+)\)', replace = "" }] |
51 |
| -# protect breaking changes from being skipped due to matching a skipping commit_parser |
| 55 | +# An array of regex based parsers to modify commit messages prior to further processing. |
| 56 | +commit_preprocessors = [ |
| 57 | + # Remove issue numbers. |
| 58 | + { pattern = '\((\w+\s)?#([0-9]+)\)', replace = "" }, |
| 59 | +] |
| 60 | +# Prevent commits that are breaking from being excluded by commit parsers. |
52 | 61 | protect_breaking_commits = false
|
0 commit comments