Skip to content

Commit

Permalink
remove unnecessary changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Telomelonia committed Oct 17, 2024
1 parent bc89c54 commit 600c177
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 58 deletions.
42 changes: 13 additions & 29 deletions cliff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ body = """
- {% if commit.scope %}*({{ commit.scope }})* {% endif %}\
{% if commit.breaking %}[**breaking**] {% endif %}\
{{ commit.message | upper_first }} ([{{ commit.id | truncate(length = 7, end = "") }}](<REPO>/commit/{{ commit.id }}))\
{% if commit.github.username %} by [@{{ commit.github.username }}]((https://github.com/{{ commit.github.username }})){% endif %}
{% if commit.github.username %} by [@{{ commit.github.username }}]((https://github.com/{{ commit.github.username }})){%- endif %}
{% endfor %}
{% endfor %}\n
"""
Expand All @@ -41,11 +41,10 @@ trim = true
postprocessors = [
{ pattern = '<REPO>', replace = "https://github.com/apify/crawlee-python" }, # replace repository URL
]

[bump]
# With 0.x.y version, breaking commits should only increase the minor version and feature commits should only increase the patch version
breaking_always_bump_major = false
features_always_bump_minor = false
# render body even when there are no releases to process
# render_always = true
# output file path
# output = "test.md"

[git]
# parse the commits based on https://www.conventionalcommits.org
Expand All @@ -56,47 +55,32 @@ filter_unconventional = true
split_commits = false
# regex for preprocessing the commit messages
commit_preprocessors = [
# Replace PR and issue numbers in commit messages
{ pattern = '.*', replace_command = 'python scripts/preprocess_commit_message.py'},
# Replace issue numbers
#{ pattern = '\((\w+\s)?#([0-9]+)\)', replace = "([#${2}](<REPO>/issues/${2}))"},
# Check spelling of the commit with https://github.com/crate-ci/typos
# If the spelling is incorrect, it will be automatically fixed.
#{ pattern = '.*', replace_command = 'typos --write-changes -' },
]
# regex for parsing and grouping commits
commit_parsers = [
{ message = "^feat", group = "<!-- 0 -->🚀 Features" },
{ message = "^fix|^bug", group = "<!-- 1 -->🐛 Bug Fixes" },
# { message = "^doc", group = "<!-- 3 -->📚 Documentation" },
{ message = "^doc", skip = true },
{ message = "^fix", group = "<!-- 1 -->🐛 Bug Fixes" },
{ message = "^doc", group = "<!-- 3 -->📚 Documentation" },
{ message = "^perf", group = "<!-- 4 -->⚡ Performance" },
# { message = "^refactor", group = "<!-- 2 -->🚜 Refactor" },
{ message = "^refactor", skip = true },
# { message = "^style", group = "<!-- 5 -->🎨 Styling" },
{ message = "^style", skip = true },
# { message = "^test", group = "<!-- 6 -->🧪 Testing" },
{ message = "^test", skip = true },
{ message = "^refactor", group = "<!-- 2 -->🚜 Refactor" },
{ message = "^style", group = "<!-- 5 -->🎨 Styling" },
{ message = "^test", group = "<!-- 6 -->🧪 Testing" },
{ message = "^chore\\(release\\): prepare for", skip = true },
{ message = "^chore\\(deps.*\\)", skip = true },
{ message = "^chore\\(pr\\)", skip = true },
{ message = "^chore\\(pull\\)", skip = true },
# { message = "^chore|^ci", group = "<!-- 7 -->⚙️ Miscellaneous Tasks" },
{ message = "^chore|^ci", skip = true },
{ message = "^chore|^ci", group = "<!-- 7 -->⚙️ Miscellaneous Tasks" },
{ 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 = true
# filter out the commits that are not matched by commit parsers
filter_commits = false
# regex for matching git tags
tag_pattern = "v[0-9]+\\."
# 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

[remote.github]
owner = "apify"
repo = "crawlee-python"
42 changes: 13 additions & 29 deletions cliff_release.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ body = """
- {% if commit.scope %}*({{ commit.scope }})* {% endif %}\
{% if commit.breaking %}[**breaking**] {% endif %}\
{{ commit.message | upper_first }} ([{{ commit.id | truncate(length = 7, end = "") }}](<REPO>/commit/{{ commit.id }}))\
{% if commit.github.username %} by @{{ commit.github.username }}{% endif %}
{% if commit.github.username %} by @{{ commit.github.username }}{%- endif %}
{% endfor %}
{% endfor %}\n
"""
Expand All @@ -41,11 +41,10 @@ trim = true
postprocessors = [
{ pattern = '<REPO>', replace = "https://github.com/apify/crawlee-python" }, # replace repository URL
]

[bump]
# With 0.x.y version, breaking commits should only increase the minor version and feature commits should only increase the patch version
breaking_always_bump_major = false
features_always_bump_minor = false
# render body even when there are no releases to process
# render_always = true
# output file path
# output = "test.md"

[git]
# parse the commits based on https://www.conventionalcommits.org
Expand All @@ -56,47 +55,32 @@ filter_unconventional = true
split_commits = false
# regex for preprocessing the commit messages
commit_preprocessors = [
# Replace PR and issue numbers in commit messages
{ pattern = '.*', replace_command = 'python scripts/preprocess_commit_message.py'},
# Replace issue numbers
#{ pattern = '\((\w+\s)?#([0-9]+)\)', replace = "([#${2}](<REPO>/issues/${2}))"},
# Check spelling of the commit with https://github.com/crate-ci/typos
# If the spelling is incorrect, it will be automatically fixed.
#{ pattern = '.*', replace_command = 'typos --write-changes -' },
]
# regex for parsing and grouping commits
commit_parsers = [
{ message = "^feat", group = "<!-- 0 -->🚀 Features" },
{ message = "^fix|^bug", group = "<!-- 1 -->🐛 Bug Fixes" },
# { message = "^doc", group = "<!-- 3 -->📚 Documentation" },
{ message = "^doc", skip = true },
{ message = "^fix", group = "<!-- 1 -->🐛 Bug Fixes" },
{ message = "^doc", group = "<!-- 3 -->📚 Documentation" },
{ message = "^perf", group = "<!-- 4 -->⚡ Performance" },
# { message = "^refactor", group = "<!-- 2 -->🚜 Refactor" },
{ message = "^refactor", skip = true },
# { message = "^style", group = "<!-- 5 -->🎨 Styling" },
{ message = "^style", skip = true },
# { message = "^test", group = "<!-- 6 -->🧪 Testing" },
{ message = "^test", skip = true },
{ message = "^refactor", group = "<!-- 2 -->🚜 Refactor" },
{ message = "^style", group = "<!-- 5 -->🎨 Styling" },
{ message = "^test", group = "<!-- 6 -->🧪 Testing" },
{ message = "^chore\\(release\\): prepare for", skip = true },
{ message = "^chore\\(deps.*\\)", skip = true },
{ message = "^chore\\(pr\\)", skip = true },
{ message = "^chore\\(pull\\)", skip = true },
# { message = "^chore|^ci", group = "<!-- 7 -->⚙️ Miscellaneous Tasks" },
{ message = "^chore|^ci", skip = true },
{ message = "^chore|^ci", group = "<!-- 7 -->⚙️ Miscellaneous Tasks" },
{ 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 = true
# filter out the commits that are not matched by commit parsers
filter_commits = false
# regex for matching git tags
tag_pattern = "v[0-9]+\\."
# 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

[remote.github]
owner = "apify"
repo = "crawlee-python"
Binary file removed release_notes.md
Binary file not shown.

0 comments on commit 600c177

Please sign in to comment.