Debian Codegraph @

cliff.toml

raw symbols SCIP
1 # git-cliff ~ default configuration file
2 # https://git-cliff.org/docs/configuration
3 #
4 # Lines starting with "#" are comments.
5 # Configuration options are organized into tables and keys.
6 # See documentation for more information on available options.
7
8 [changelog]
9 # template for the changelog header
10 header = """
11 # Changelog\n
12 All notable changes to this project will be documented in this file.\n
13 """
14 # template for the changelog body
15 # https://keats.github.io/tera/docs/#introduction
16 body = """
17 {% if version %}\
18 ## [{{ version | trim_start_matches(pat="v") }}] - {{ timestamp | date(format="%Y-%m-%d") }}
19 {% else %}\
20 ## [unreleased]
21 {% endif %}\
22 {% for group, commits in commits | group_by(attribute="group") %}
23 ### {{ group | striptags | trim | upper_first }}
24 {% for commit in commits %}
25 - {% if commit.scope %}*({{ commit.scope }})* {% endif %}\
26 {% if commit.breaking %}[**breaking**] {% endif %}\
27 {{ commit.message | upper_first }}\
28 {% endfor %}
29 {% endfor %}\n
30 """
31 # template for the changelog footer
32 footer = """
33 <!-- generated by git-cliff -->
34 """
35 # remove the leading and trailing s
36 trim = true
37 # postprocessors
38 postprocessors = [
39 # { pattern = '<REPO>', replace = "https://github.com/orhun/git-cliff" }, # replace repository URL
40 ]
41 # render body even when there are no releases to process
42 # render_always = true
43 # output file path
44 # output = "test.md"
45
46 [git]
47 # parse the commits based on https://www.conventionalcommits.org
48 conventional_commits = true
49 # filter out the commits that are not conventional
50 filter_unconventional = false
51 # process each line of a commit as an individual commit
52 split_commits = false
53 # regex for preprocessing the commit messages
54 commit_preprocessors = [
55 # Replace issue numbers
56 #{ pattern = '\((\w+\s)?#([0-9]+)\)', replace = "([#${2}](<REPO>/issues/${2}))"},
57 # Check spelling of the commit with https://github.com/crate-ci/typos
58 # If the spelling is incorrect, it will be automatically fixed.
59 #{ pattern = '.*', replace_command = 'typos --write-changes -' },
60 ]
61 # regex for parsing and grouping commits
62 commit_parsers = [
63 { message = "^feat", group = "<!-- 0 -->๐Ÿš€ Features" },
64 { message = "^fix", group = "<!-- 1 -->๐Ÿ› Bug Fixes" },
65 { message = "^doc", group = "<!-- 3 -->๐Ÿ“š Documentation" },
66 { message = "^perf", group = "<!-- 4 -->โšก Performance" },
67 { message = "^refactor", group = "<!-- 2 -->๐Ÿšœ Refactor" },
68 { message = "^style", group = "<!-- 5 -->๐ŸŽจ Styling" },
69 { message = "^test", group = "<!-- 6 -->๐Ÿงช Testing" },
70 { message = "^chore\\(release\\): prepare for", skip = true },
71 { message = "^chore\\(deps.*\\)", skip = true },
72 { message = "^chore\\(pr\\)", skip = true },
73 { message = "^chore\\(pull\\)", skip = true },
74 { message = "^chore|^ci", group = "<!-- 7 -->โš™๏ธ Miscellaneous Tasks" },
75 { body = ".*security", group = "<!-- 8 -->๐Ÿ›ก๏ธ Security" },
76 { message = "^revert", group = "<!-- 9 -->โ—€๏ธ Revert" },
77 { message = ".*", group = "<!-- 10 -->๐Ÿ’ผ Other" },
78 ]
79 # filter out the commits that are not matched by commit parsers
80 filter_commits = false
81 # sort the tags topologically
82 topo_order = false
83 # sort the commits inside sections by oldest/newest order
84 sort_commits = "oldest"