build: configure release-plz

This commit is contained in:
Chris Hennick 2024-04-22 19:03:45 -07:00
parent 327a86bd6c
commit 5f4dbc3100
No known key found for this signature in database
GPG key ID: DA47AABA4961C509
4 changed files with 29 additions and 12 deletions

View file

@ -6,8 +6,8 @@ updates:
interval: daily
open-pull-requests-limit: 10
commit-message:
prefix: "chore"
prefix-development: "test"
prefix: "chore(deps)"
prefix-development: "test(deps)"
include: "scope"
- package-ecosystem: "github-actions" # See documentation for possible values
directory: "/" # Location of package manifests

View file

@ -268,14 +268,6 @@ jobs:
release-plz:
name: Release-plz
needs:
- build_and_test
- clippy
- check_fmt_and_docs
- fuzz_read
- fuzz_read_with_no_features
- fuzz_write
- fuzz_write_with_no_features
runs-on: ubuntu-latest
steps:
- name: Checkout repository

View file

@ -65,7 +65,7 @@ commit_parsers = [
{ message = "^test", skip = true },
{ message = "^build", skip = true },
{ message = "^ci", skip = true },
{ message = "^chore\\(release\\): prepare for", skip = true },
{ message = "^chore\\(release\\)", skip = true },
{ message = "^chore\\(deps.*\\)", skip = true },
{ message = "^chore\\(pr\\)", skip = true },
{ message = "^chore\\(pull\\)", skip = true },
@ -74,7 +74,7 @@ commit_parsers = [
{ message = "^revert", group = "<!-- 9 -->◀️ Revert" },
]
# protect breaking changes from being skipped due to matching a skipping commit_parser
protect_breaking_commits = false
protect_breaking_commits = true
# filter out the commits that are not matched by commit parsers
filter_commits = false
# regex for matching git tags

25
release-plz.toml Normal file
View file

@ -0,0 +1,25 @@
[workspace]
dependencies_update = true # update dependencies with `cargo update`
pr_labels = ["release"] # add the `release` label to the release Pull Request
release_commits = "^(feat|fix|perf|refactor):" # prepare release only if at least one commit matches a regex
git_release_type = "auto"
[changelog]
protect_breaking_commits = true
commit_parsers = [
{ message = "^feat", group = "<!-- 0 -->🚀 Features" },
{ message = "^fix", group = "<!-- 1 -->🐛 Bug Fixes" },
{ message = "^perf", group = "<!-- 4 -->⚡ Performance" },
{ message = "^refactor", group = "<!-- 2 -->🚜 Refactor" },
{ message = "^style", skip = true },
{ message = "^test", skip = true },
{ message = "^build", skip = true },
{ message = "^ci", skip = true },
{ message = "^chore\\(release\\)", skip = true },
{ message = "^chore\\(deps.*\\)", skip = true },
{ message = "^chore\\(pr\\)", skip = true },
{ message = "^chore\\(pull\\)", skip = true },
{ message = "^chore", group = "<!-- 7 -->⚙️ Miscellaneous Tasks" },
{ body = ".*security", group = "<!-- 8 -->🛡️ Security" },
{ message = "^revert", group = "<!-- 9 -->◀️ Revert" },
]