Skip to content

Commit 6f8ea19

Browse files
committed
refactor(config): make example templates more user-friendly
1 parent a71649b commit 6f8ea19

File tree

10 files changed

+20
-96
lines changed

10 files changed

+20
-96
lines changed

config/cliff.toml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -71,19 +71,9 @@ commit_parsers = [
7171
{ body = ".*security", group = "<!-- 8 -->🛡️ Security" },
7272
{ message = "^revert", group = "<!-- 9 -->◀️ Revert" },
7373
]
74-
# protect breaking changes from being skipped due to matching a skipping commit_parser
75-
protect_breaking_commits = false
7674
# filter out the commits that are not matched by commit parsers
7775
filter_commits = false
78-
# regex for matching git tags
79-
# tag_pattern = "v[0-9].*"
80-
# regex for skipping tags
81-
# skip_tags = ""
82-
# regex for ignoring tags
83-
# ignore_tags = ""
8476
# sort the tags topologically
8577
topo_order = false
8678
# sort the commits inside sections by oldest/newest order
8779
sort_commits = "oldest"
88-
# limit the number of commits included in the changelog.
89-
# limit_commits = 42

examples/cocogitto.toml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -74,19 +74,9 @@ commit_parsers = [
7474
{ message = "^chore", group = "Miscellaneous Chores" },
7575
{ body = ".*security", group = "Security" },
7676
]
77-
# protect breaking changes from being skipped due to matching a skipping commit_parser
78-
protect_breaking_commits = false
7977
# filter out the commits that are not matched by commit parsers
8078
filter_commits = false
81-
# regex for matching git tags
82-
tag_pattern = "v[0-9].*"
83-
# regex for skipping tags
84-
skip_tags = "v0.1.0-beta.1"
85-
# regex for ignoring tags
86-
ignore_tags = ""
8779
# sort the tags topologically
8880
topo_order = false
8981
# sort the commits inside sections by oldest/newest order
9082
sort_commits = "oldest"
91-
# limit the number of commits included in the changelog.
92-
# limit_commits = 42

examples/detailed.toml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -61,16 +61,8 @@ commit_parsers = [
6161
{ message = "^chore|^ci", group = "Miscellaneous Tasks" },
6262
{ body = ".*security", group = "Security" },
6363
]
64-
# protect breaking changes from being skipped due to matching a skipping commit_parser
65-
protect_breaking_commits = false
6664
# filter out the commits that are not matched by commit parsers
6765
filter_commits = false
68-
# regex for matching git tags
69-
tag_pattern = "v[0-9].*"
70-
# regex for skipping tags
71-
skip_tags = "v0.1.0-beta.1"
72-
# regex for ignoring tags
73-
ignore_tags = ""
7466
# sort the tags topologically
7567
topo_order = false
7668
# sort the commits inside sections by oldest/newest order

examples/github-keepachangelog.toml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -91,16 +91,8 @@ commit_parsers = [
9191
{ message = "^.*: fix", group = "Fixed" },
9292
{ message = "^.*", group = "Changed" },
9393
]
94-
# protect breaking changes from being skipped due to matching a skipping commit_parser
95-
protect_breaking_commits = false
9694
# filter out the commits that are not matched by commit parsers
9795
filter_commits = true
98-
# regex for matching git tags
99-
tag_pattern = "v[0-9].*"
100-
# regex for skipping tags
101-
skip_tags = "v0.1.0-beta.1"
102-
# regex for ignoring tags
103-
ignore_tags = ""
10496
# sort the tags topologically
10597
topo_order = false
10698
# sort the commits inside sections by oldest/newest order

examples/github.toml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -72,16 +72,8 @@ commit_preprocessors = [
7272
# remove issue numbers from commits
7373
{ pattern = '\((\w+\s)?#([0-9]+)\)', replace = "" },
7474
]
75-
# protect breaking changes from being skipped due to matching a skipping commit_parser
76-
protect_breaking_commits = false
7775
# filter out the commits that are not matched by commit parsers
7876
filter_commits = false
79-
# regex for matching git tags
80-
tag_pattern = "v[0-9].*"
81-
# regex for skipping tags
82-
skip_tags = "beta|alpha"
83-
# regex for ignoring tags
84-
ignore_tags = "rc"
8577
# sort the tags topologically
8678
topo_order = false
8779
# sort the commits inside sections by oldest/newest order

examples/keepachangelog.toml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -62,16 +62,8 @@ commit_parsers = [
6262
{ message = "^.*: fix", group = "Fixed" },
6363
{ message = "^.*", group = "Changed" },
6464
]
65-
# protect breaking changes from being skipped due to matching a skipping commit_parser
66-
protect_breaking_commits = false
6765
# filter out the commits that are not matched by commit parsers
6866
filter_commits = true
69-
# regex for matching git tags
70-
tag_pattern = "v[0-9].*"
71-
# regex for skipping tags
72-
skip_tags = "v0.1.0-beta.1"
73-
# regex for ignoring tags
74-
ignore_tags = ""
7567
# sort the tags topologically
7668
topo_order = false
7769
# sort the commits inside sections by oldest/newest order

examples/scoped.toml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,16 +52,8 @@ commit_parsers = [
5252
{ message = "^chore", group = "Miscellaneous Tasks" },
5353
{ body = ".*security", group = "Security" },
5454
]
55-
# protect breaking changes from being skipped due to matching a skipping commit_parser
56-
protect_breaking_commits = false
5755
# filter out the commits that are not matched by commit parsers
5856
filter_commits = false
59-
# regex for matching git tags
60-
tag_pattern = "v[0-9].*"
61-
# regex for skipping tags
62-
skip_tags = "v0.1.0-beta.1"
63-
# regex for ignoring tags
64-
ignore_tags = ""
6557
# sort the tags topologically
6658
topo_order = false
6759
# sort the commits inside sections by oldest/newest order

examples/scopesorted.toml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -66,16 +66,8 @@ commit_parsers = [
6666
{ message = "^chore", group = "Miscellaneous Tasks" },
6767
{ body = ".*security", group = "Security" },
6868
]
69-
# protect breaking changes from being skipped due to matching a skipping commit_parser
70-
protect_breaking_commits = false
7169
# filter out the commits that are not matched by commit parsers
7270
filter_commits = false
73-
# regex for matching git tags
74-
tag_pattern = "v[0-9].*"
75-
# regex for skipping tags
76-
skip_tags = "v0.1.0-beta.1"
77-
# regex for ignoring tags
78-
ignore_tags = ""
7971
# sort the tags topologically
8072
topo_order = false
8173
# sort the commits inside sections by oldest/newest order

examples/unconventional.toml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ body = """
1818
{% for group, commits in commits | group_by(attribute="group") %}
1919
### {{ group | upper_first }}
2020
{% for commit in commits %}
21-
- {{ commit.message | upper_first | trim_end }} {% if commit.conventional %}✔️{% else %}❌{% endif %}\
21+
- {{ commit.message | split(pat="\n") | first | trim_end }}\
2222
{% endfor %}
2323
{% endfor %}\n
2424
"""
@@ -32,7 +32,7 @@ trim = true
3232

3333
[git]
3434
# parse the commits based on https://www.conventionalcommits.org
35-
conventional_commits = true
35+
conventional_commits = false
3636
# filter out the commits that are not conventional
3737
filter_unconventional = false
3838
# process each line of a commit as an individual commit
@@ -51,16 +51,8 @@ commit_parsers = [
5151
{ body = ".*security", group = "Security" },
5252
{ body = ".*", group = "Other (unconventional)" },
5353
]
54-
# protect breaking changes from being skipped due to matching a skipping commit_parser
55-
protect_breaking_commits = false
5654
# filter out the commits that are not matched by commit parsers
5755
filter_commits = false
58-
# regex for matching git tags
59-
tag_pattern = "v[0-9].*"
60-
# regex for skipping tags
61-
skip_tags = "v0.1.0-beta.1"
62-
# regex for ignoring tags
63-
ignore_tags = ""
6456
# sort the tags topologically
6557
topo_order = false
6658
# sort the commits inside sections by oldest/newest order

website/docs/templating/examples.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -854,37 +854,37 @@ All notable changes to this project will be documented in this file.
854854
855855
### Features
856856
857-
- Support multiple file formats ✔️
858-
- Use cache while fetching pages ✔️
857+
- feat(config): support multiple file formats
858+
- feat(cache): use cache while fetching pages
859859
860860
## [1.0.1] - 2021-07-18
861861
862862
### Miscellaneous Tasks
863863
864-
- Add release script ✔️
864+
- chore(release): add release script
865865
866866
### Refactor
867867
868-
- Expose string functions ✔️
868+
- refactor(parser): expose string functions
869869
870870
## [1.0.0] - 2021-07-18
871871
872872
### Bug Fixes
873873
874-
- Rename help argument due to conflict ✔️
874+
- fix(args): rename help argument due to conflict
875875
876876
### Documentation
877877
878-
- Add README.md ✔️
879-
- Add tested usage example ✔️
878+
- docs(project): add README.md
879+
- docs(example)!: add tested usage example
880880
881881
### Features
882882
883-
- Add ability to parse arrays ✔️
883+
- feat(parser): add ability to parse arrays
884884
885885
### Other (unconventional)
886886
887-
- Initial commit
887+
- Initial commit
888888
889889
<!-- generated by git-cliff -->
890890
```
@@ -902,37 +902,37 @@ All notable changes to this project will be documented in this file.
902902

903903
### Features
904904

905-
- Support multiple file formats ✔️
906-
- Use cache while fetching pages ✔️
905+
- feat(config): support multiple file formats
906+
- feat(cache): use cache while fetching pages
907907

908908
## [1.0.1] - 2021-07-18
909909

910910
### Miscellaneous Tasks
911911

912-
- Add release script ✔️
912+
- chore(release): add release script
913913

914914
### Refactor
915915

916-
- Expose string functions ✔️
916+
- refactor(parser): expose string functions
917917

918918
## [1.0.0] - 2021-07-18
919919

920920
### Bug Fixes
921921

922-
- Rename help argument due to conflict ✔️
922+
- fix(args): rename help argument due to conflict
923923

924924
### Documentation
925925

926-
- Add README.md ✔️
927-
- Add tested usage example ✔️
926+
- docs(project): add README.md
927+
- docs(example)!: add tested usage example
928928

929929
### Features
930930

931-
- Add ability to parse arrays ✔️
931+
- feat(parser): add ability to parse arrays
932932

933933
### Other (unconventional)
934934

935-
- Initial commit
935+
- Initial commit
936936

937937
<!-- generated by git-cliff -->
938938

0 commit comments

Comments
 (0)