Skip to content

Commit 8421132

Browse files
authored
Fix typo in docs: 'tag-name-pattern' instead of 'tag-number-pattern'
1 parent cd8a308 commit 8421132

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/configuration.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ When `release-2.0.0` is merged into master, we want master to build `2.0.0`. If
350350
`release-2.0.0` is merged into develop we want it to build `2.1.0`, this option
351351
prevents incrementing after a versioned branch is merged
352352

353-
### tag-number-pattern
353+
### tag-name-pattern
354354
Pull requests require us to extract the pre-release number out of the branch
355355
name so `refs/pulls/534/merge` builds as `PullRequest.534`. This is a regex with
356356
a named capture group called `number`.
@@ -388,4 +388,4 @@ Indicates this branch config represents a release branch in GitFlow.
388388
When using Mainline mode, this indicates that this branch is a mainline. By default support/ and master are mainlines.
389389

390390
### pre-release-weight
391-
Provides a way to translate the `PreReleaseLabel` ([variables](/more-info/variables)) to a numeric value in order to avoid version collisions across different branches. For example, a release branch created after "1.2.3-alpha.55" results in "1.2.3-beta.1" and thus e.g. "1.2.3-alpha.4" and "1.2.3-beta.4" would have the same file version: "1.2.3.4". One of the ways to use this value is to set `assembly-file-versioning-format: {Major}.{Minor}.{Patch}.{WeightedPreReleaseNumber}`. If the `pre-release-weight` is set, it would be added to the `PreReleaseNumber` to get a final `AssemblySemFileVer`, otherwise a branch specific default for `pre-release-weight` will be used in the calculation. Related Issues [1145](https://github.com/GitTools/GitVersion/issues/1145), [1366](https://github.com/GitTools/GitVersion/issues/1366)
391+
Provides a way to translate the `PreReleaseLabel` ([variables](/more-info/variables)) to a numeric value in order to avoid version collisions across different branches. For example, a release branch created after "1.2.3-alpha.55" results in "1.2.3-beta.1" and thus e.g. "1.2.3-alpha.4" and "1.2.3-beta.4" would have the same file version: "1.2.3.4". One of the ways to use this value is to set `assembly-file-versioning-format: {Major}.{Minor}.{Patch}.{WeightedPreReleaseNumber}`. If the `pre-release-weight` is set, it would be added to the `PreReleaseNumber` to get a final `AssemblySemFileVer`, otherwise a branch specific default for `pre-release-weight` will be used in the calculation. Related Issues [1145](https://github.com/GitTools/GitVersion/issues/1145), [1366](https://github.com/GitTools/GitVersion/issues/1366)

0 commit comments

Comments
 (0)