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: doc/nbgv-cli.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -167,7 +167,7 @@ In that case, the `NewBranch` property will be `null`.
167
167
168
168
### Customizing the `prepare-release` commit message
169
169
170
-
By default, the `prepare-release` command generates commit message with this format "Set version to {version}". So with this new option. You can add a prefix or suffix to the default commit message
170
+
By default, the `prepare-release` command generates a commit message with the format "Set version to {version}". So with this new option, You can add a prefix or suffix to the default commit message (which will replace just the version).
171
171
172
172
For example, running the following command on `master`
varnextVersion=newOption<string>("--nextVersion","The version to set for the current branch. If omitted, the next version is determined automatically by incrementing the current version.");
220
220
varversionIncrement=newOption<string>("--versionIncrement","Overrides the 'versionIncrement' setting set in version.json for determining the next version of the current branch.");
221
221
varformat=newOption<string>(new[]{"--format","-f"},$"The format to write information about the release. Allowed values are: {string.Join(", ",SupportedFormats)}. The default is {DefaultOutputFormat}.").FromAmong(SupportedFormats);
222
-
varcommitMessagePattern=newOption<string>("--commit-message-pattern","Custom pattern to add a prefix or suffix to the default commit message.");
222
+
varcommitMessagePattern=newOption<string>("--commit-message-pattern","Custom pattern to add a prefix or suffix to the default commit message. Must include '{0}' in the pattern to represent the version.");
223
223
vartagArgument=newArgument<string>("tag","The prerelease tag to apply on the release branch (if any). If not specified, any existing prerelease tag will be removed. The preceding hyphen may be omitted.")
0 commit comments