Skip to content

Commit

Permalink
refactor(config): make example templates more user-friendly
Browse files Browse the repository at this point in the history
  • Loading branch information
orhun committed Aug 21, 2024
1 parent a71649b commit 6f8ea19
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 96 deletions.
10 changes: 0 additions & 10 deletions config/cliff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -71,19 +71,9 @@ commit_parsers = [
{ body = ".*security", group = "<!-- 8 -->🛡️ Security" },
{ message = "^revert", group = "<!-- 9 -->◀️ Revert" },
]
# protect breaking changes from being skipped due to matching a skipping commit_parser
protect_breaking_commits = false
# filter out the commits that are not matched by commit parsers
filter_commits = false
# regex for matching git tags
# tag_pattern = "v[0-9].*"
# regex for skipping tags
# skip_tags = ""
# regex for ignoring tags
# ignore_tags = ""
# sort the tags topologically
topo_order = false
# sort the commits inside sections by oldest/newest order
sort_commits = "oldest"
# limit the number of commits included in the changelog.
# limit_commits = 42
10 changes: 0 additions & 10 deletions examples/cocogitto.toml
Original file line number Diff line number Diff line change
Expand Up @@ -74,19 +74,9 @@ commit_parsers = [
{ message = "^chore", group = "Miscellaneous Chores" },
{ body = ".*security", group = "Security" },
]
# protect breaking changes from being skipped due to matching a skipping commit_parser
protect_breaking_commits = false
# filter out the commits that are not matched by commit parsers
filter_commits = false
# regex for matching git tags
tag_pattern = "v[0-9].*"
# regex for skipping tags
skip_tags = "v0.1.0-beta.1"
# regex for ignoring tags
ignore_tags = ""
# sort the tags topologically
topo_order = false
# sort the commits inside sections by oldest/newest order
sort_commits = "oldest"
# limit the number of commits included in the changelog.
# limit_commits = 42
8 changes: 0 additions & 8 deletions examples/detailed.toml
Original file line number Diff line number Diff line change
Expand Up @@ -61,16 +61,8 @@ commit_parsers = [
{ message = "^chore|^ci", group = "Miscellaneous Tasks" },
{ body = ".*security", group = "Security" },
]
# protect breaking changes from being skipped due to matching a skipping commit_parser
protect_breaking_commits = false
# filter out the commits that are not matched by commit parsers
filter_commits = false
# regex for matching git tags
tag_pattern = "v[0-9].*"
# regex for skipping tags
skip_tags = "v0.1.0-beta.1"
# regex for ignoring tags
ignore_tags = ""
# sort the tags topologically
topo_order = false
# sort the commits inside sections by oldest/newest order
Expand Down
8 changes: 0 additions & 8 deletions examples/github-keepachangelog.toml
Original file line number Diff line number Diff line change
Expand Up @@ -91,16 +91,8 @@ commit_parsers = [
{ message = "^.*: fix", group = "Fixed" },
{ message = "^.*", group = "Changed" },
]
# protect breaking changes from being skipped due to matching a skipping commit_parser
protect_breaking_commits = false
# filter out the commits that are not matched by commit parsers
filter_commits = true
# regex for matching git tags
tag_pattern = "v[0-9].*"
# regex for skipping tags
skip_tags = "v0.1.0-beta.1"
# regex for ignoring tags
ignore_tags = ""
# sort the tags topologically
topo_order = false
# sort the commits inside sections by oldest/newest order
Expand Down
8 changes: 0 additions & 8 deletions examples/github.toml
Original file line number Diff line number Diff line change
Expand Up @@ -72,16 +72,8 @@ commit_preprocessors = [
# remove issue numbers from commits
{ pattern = '\((\w+\s)?#([0-9]+)\)', replace = "" },
]
# protect breaking changes from being skipped due to matching a skipping commit_parser
protect_breaking_commits = false
# filter out the commits that are not matched by commit parsers
filter_commits = false
# regex for matching git tags
tag_pattern = "v[0-9].*"
# regex for skipping tags
skip_tags = "beta|alpha"
# regex for ignoring tags
ignore_tags = "rc"
# sort the tags topologically
topo_order = false
# sort the commits inside sections by oldest/newest order
Expand Down
8 changes: 0 additions & 8 deletions examples/keepachangelog.toml
Original file line number Diff line number Diff line change
Expand Up @@ -62,16 +62,8 @@ commit_parsers = [
{ message = "^.*: fix", group = "Fixed" },
{ message = "^.*", group = "Changed" },
]
# protect breaking changes from being skipped due to matching a skipping commit_parser
protect_breaking_commits = false
# filter out the commits that are not matched by commit parsers
filter_commits = true
# regex for matching git tags
tag_pattern = "v[0-9].*"
# regex for skipping tags
skip_tags = "v0.1.0-beta.1"
# regex for ignoring tags
ignore_tags = ""
# sort the tags topologically
topo_order = false
# sort the commits inside sections by oldest/newest order
Expand Down
8 changes: 0 additions & 8 deletions examples/scoped.toml
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,8 @@ commit_parsers = [
{ message = "^chore", group = "Miscellaneous Tasks" },
{ body = ".*security", group = "Security" },
]
# protect breaking changes from being skipped due to matching a skipping commit_parser
protect_breaking_commits = false
# filter out the commits that are not matched by commit parsers
filter_commits = false
# regex for matching git tags
tag_pattern = "v[0-9].*"
# regex for skipping tags
skip_tags = "v0.1.0-beta.1"
# regex for ignoring tags
ignore_tags = ""
# sort the tags topologically
topo_order = false
# sort the commits inside sections by oldest/newest order
Expand Down
8 changes: 0 additions & 8 deletions examples/scopesorted.toml
Original file line number Diff line number Diff line change
Expand Up @@ -66,16 +66,8 @@ commit_parsers = [
{ message = "^chore", group = "Miscellaneous Tasks" },
{ body = ".*security", group = "Security" },
]
# protect breaking changes from being skipped due to matching a skipping commit_parser
protect_breaking_commits = false
# filter out the commits that are not matched by commit parsers
filter_commits = false
# regex for matching git tags
tag_pattern = "v[0-9].*"
# regex for skipping tags
skip_tags = "v0.1.0-beta.1"
# regex for ignoring tags
ignore_tags = ""
# sort the tags topologically
topo_order = false
# sort the commits inside sections by oldest/newest order
Expand Down
12 changes: 2 additions & 10 deletions examples/unconventional.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ body = """
{% for group, commits in commits | group_by(attribute="group") %}
### {{ group | upper_first }}
{% for commit in commits %}
- {{ commit.message | upper_first | trim_end }} {% if commit.conventional %}✔️{% else %}❌{% endif %}\
- {{ commit.message | split(pat="\n") | first | trim_end }}\
{% endfor %}
{% endfor %}\n
"""
Expand All @@ -32,7 +32,7 @@ trim = true

[git]
# parse the commits based on https://www.conventionalcommits.org
conventional_commits = true
conventional_commits = false
# filter out the commits that are not conventional
filter_unconventional = false
# process each line of a commit as an individual commit
Expand All @@ -51,16 +51,8 @@ commit_parsers = [
{ body = ".*security", group = "Security" },
{ body = ".*", group = "Other (unconventional)" },
]
# protect breaking changes from being skipped due to matching a skipping commit_parser
protect_breaking_commits = false
# filter out the commits that are not matched by commit parsers
filter_commits = false
# regex for matching git tags
tag_pattern = "v[0-9].*"
# regex for skipping tags
skip_tags = "v0.1.0-beta.1"
# regex for ignoring tags
ignore_tags = ""
# sort the tags topologically
topo_order = false
# sort the commits inside sections by oldest/newest order
Expand Down
36 changes: 18 additions & 18 deletions website/docs/templating/examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -854,37 +854,37 @@ All notable changes to this project will be documented in this file.
### Features
- Support multiple file formats ✔️
- Use cache while fetching pages ✔️
- feat(config): support multiple file formats
- feat(cache): use cache while fetching pages
## [1.0.1] - 2021-07-18
### Miscellaneous Tasks
- Add release script ✔️
- chore(release): add release script
### Refactor
- Expose string functions ✔️
- refactor(parser): expose string functions
## [1.0.0] - 2021-07-18
### Bug Fixes
- Rename help argument due to conflict ✔️
- fix(args): rename help argument due to conflict
### Documentation
- Add README.md ✔️
- Add tested usage example ✔️
- docs(project): add README.md
- docs(example)!: add tested usage example
### Features
- Add ability to parse arrays ✔️
- feat(parser): add ability to parse arrays
### Other (unconventional)
- Initial commit
- Initial commit
<!-- generated by git-cliff -->
```
Expand All @@ -902,37 +902,37 @@ All notable changes to this project will be documented in this file.

### Features

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

## [1.0.1] - 2021-07-18

### Miscellaneous Tasks

- Add release script ✔️
- chore(release): add release script

### Refactor

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

## [1.0.0] - 2021-07-18

### Bug Fixes

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

### Documentation

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

### Features

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

### Other (unconventional)

- Initial commit
- Initial commit

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

Expand Down

0 comments on commit 6f8ea19

Please sign in to comment.