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
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -167,9 +167,10 @@ 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 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).
170
+
By default, the `prepare-release` command generates a commit message with the format "Set version to {version}".
171
+
A switch allows you to customize the commit message, using `{0}` as a placeholder for the version.
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. Must include '{0}' in the pattern to represent the version.");
222
+
varunformattedCommitMessage=newOption<string>("--commit-message-pattern","A custom message to use for the commit that changes the version number. May include {0} for the version number. If not specified, the default is \"Set version to '{0}'\".");
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