1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
[]
# Versions come from git tags; release-plz tags and creates GitHub Releases but never runs
# cargo publish. publish-crates-io.yml publishes from the tag (tag-restricted `crates-io` environment).
= true
# Release only when the release PR is merged, not on every push that bumps a version.
= false
# Runs cargo-semver-checks on the library; API breaks force a breaking bump.
= true
= true
= true
# Versions are SemVer 2.0; pre-release versions (1.2.0-rc.1) become GitHub pre-releases.
= "auto"
# Release PR branches follow the branching model (release/*), not the default `release-plz-`.
= "release/"
# Imperative PR title (the default is "chore: release v..."); the changelog parser skips it via
# ^Release. {{ package }} and {{ version }} are set here: there is one crate.
= "Release{% if package and version %} {{ package }} v{{ version }}{% elif version %} v{{ version }}{% endif %}"
# Commits are imperative ("Add X", "Fix Y"), not Conventional Commits: map subject verbs to bumps.
# 0.x (Cargo's rule: 0.MINOR is the breaking position): additions and fixes are patch bumps,
# breaking changes are minor. No custom_major_increment_regex in 0.x: it would jump to 1.0.0.
= "\\A(Break|Change|Rename|Replace|Remove|Drop|Delete)\\b|(?m:^BREAKING CHANGE:)"
# From 1.0.0 on, replace the line above with these two:
# custom_minor_increment_regex = "\\A(Add|Introduce|Support|Allow|Implement|Expose)\\b"
# custom_major_increment_regex = "\\ABreak\\b|(?m:^BREAKING CHANGE:)"
# Tags stay "v{{ version }}" (release-plz's default for one public crate). The npm package uses
# separate wasm-v* tags and its own workflow, publish-npm.yml.
[]
= [
{ = "^(Merge|Release|Bump version)\\b", = true },
# Pull requests are merged with a merge commit titled "<PR title> (#N)"; the commits it merges
# are listed already, so skip it rather than list the change twice.
{ = "\\A[^\\n]*\\(#[0-9]+\\)[ \\t]*(\\n|\\z)", = true },
{ = "^Actions: ", = true },
{ = "^(Add|Introduce|Support|Allow|Implement|Expose)\\b", = "Added" },
{ = "^(Fix|Correct|Resolve|Prevent|Repair)\\b", = "Fixed" },
{ = "^Deprecate\\b", = "Deprecated" },
{ = "^(Remove|Drop|Delete)\\b", = "Removed" },
{ = "^(Secure|Harden)\\b", = "Security" },
{ = "^((Cargo|npm|Docker): )?Bump\\b", = "Dependencies" },
{ = "^.*", = "Changed" },
]