Skip to content

Commit

Permalink
feat(ci): add some commit parsers to release-plz (#418)
Browse files Browse the repository at this point in the history
  • Loading branch information
Serial-ATA authored Oct 30, 2024
1 parent 881e643 commit 78a89f3
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions release-plz.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,27 @@
allow_dirty = true # allow updating repositories with uncommitted changes
publish_allow_dirty = true # add `--allow-dirty` to `cargo publish`
publish_timeout = "10m" # set a timeout for `cargo publish`

commit_preprocessors = [
# Allow shortened crate names
{ pattern = '^(\w+!?)\(sdk\):', replace = "$1(gadget-sdk):" },
{ pattern = '^(\w+!?)\(cli\):', replace = "$1(cargo-tangle):" },
]

commit_parsers = [
{ message = "^feat", group = "added" },
{ message = "^changed", group = "changed" },
{ message = "^deprecated", group = "deprecated" },
{ message = "^fix", group = "fixed" },
{ message = "^security", group = "security" },
{ message = "^.*", group = "other" },
# Ignore CI commits
{ message = "^\\w+!?\\(ci\\)", skip = true },
# Ignore Clippy commits
{ message = "^chore\\(clippy\\)", skip = true },
{ message = "^chore(?:\\(([^)]+)\\))?: clippy", skip = true },
# Ignore any formatting commits
{ message = "^chore(?:\\(([^)]+)\\))?: fmt", skip = true },
# Ignore dependency commits
{ message = "^chore\\(deps.*\\)", skip = true },
]

0 comments on commit 78a89f3

Please sign in to comment.