From 78a89f3e5b13a546d1202250703ded15939a88a8 Mon Sep 17 00:00:00 2001 From: Alex <69764315+Serial-ATA@users.noreply.github.com> Date: Wed, 30 Oct 2024 00:40:31 -0400 Subject: [PATCH] feat(ci): add some commit parsers to release-plz (#418) --- release-plz.toml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/release-plz.toml b/release-plz.toml index 3f3862da..660ab629 100644 --- a/release-plz.toml +++ b/release-plz.toml @@ -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 }, +] \ No newline at end of file