You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/cli.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -51,6 +51,7 @@ Extra options:
51
51
|`--versioning-strategy`|[`VersioningStrategyType`](/docs/customizing.md#versioning-strategies)| Override method of determining SemVer version bumps based on commits. Defaults to `default`|
52
52
|`--bump-minor-pre-major`|`boolean`| Configuration option for the versioning strategy. If set, will bump the minor version for breaking changes for versions < 1.0.0 |
53
53
|`--bump-patch-for-minor-pre-major`|`boolean`| Configuration option for the versioning strategy. If set, will bump the patch version for features for versions < 1.0.0 |
54
+
|`--prerelease-type`|`string`| Configuration option for the prerelese versioning strategy. If prerelease strategy used and type set, will set the prerelese part of the version to the provided value in case prerelease part is not present. |
54
55
|`--draft`|`boolean`| If set, create releases as drafts |
55
56
|`--prerelease`|`boolean`| If set, create releases that are pre-major or pre-release version marked as pre-release on Github|
56
57
|`--draft-pull-request`|`boolean`| If set, create pull requests as drafts |
@@ -101,6 +102,7 @@ need to specify your release options:
101
102
|`--versioning-strategy`| VersioningStrategy | Override method of determining SemVer version bumps based on commits. Defaults to `default`|
102
103
|`--bump-minor-pre-major`| boolean | Configuration option for the versioning strategy. If set, will bump the minor version for breaking changes for versions < 1.0.0 |
103
104
|`--bump-patch-for-minor-pre-major`| boolean | Configuration option for the versioning strategy. If set, will bump the patch version for features for versions < 1.0.0 |
105
+
|`--prerelease-type`|`string`| Configuration option for the prerelese versioning strategy. If prerelease strategy used and type set, will set the prerelese part of the version to the provided value in case prerelease part is not present. |
104
106
|`--draft-pull-request`| boolean | If set, create pull requests as drafts |
105
107
|`--label`| string | Comma-separated list of labels to apply to the release pull requests. Defaults to `autorelease: pending`|`autorelease: tagged`|
106
108
|`--changelog-path`|`string`| Override the path to the managed CHANGELOG. Defaults to `CHANGELOG.md`|
Copy file name to clipboardExpand all lines: docs/customizing.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -45,6 +45,8 @@ version given a list of parsed commits.
45
45
|`always-bump-major`| Always bump major version |
46
46
|`service-pack`| Designed for Java backport fixes. Uses Maven's specification for service pack versions (e.g. 1.2.3-sp.1) |
47
47
48
+
|`prerelease`| Bumping prerelease number (eg. 1.2.0-beta01 to 1.2.0-beta02) or if prerelease type is set, using that in the prerelease part (eg. 1.2.1 to 1.3.0-beta) |
49
+
48
50
### Adding additional versioning strategy types
49
51
50
52
To add a new versioning strategy, create a new class that implements the
Copy file name to clipboardExpand all lines: schemas/config.json
+9-1Lines changed: 9 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,10 @@
20
20
"description": "Feature changes only bump semver patch if version < 1.0.0",
21
21
"type": "boolean"
22
22
},
23
+
"prerelease-type": {
24
+
"description": "Configuration option for the prerelese versioning strategy. If prerelease strategy used and type set, will set the prerelese part of the version to the provided value in case prerelease part is not present.",
25
+
"type": "string"
26
+
},
23
27
"versioning": {
24
28
"description": "Versioning strategy. Defaults to `default`",
0 commit comments