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
@@ -836,9 +837,9 @@ The pre-release label to use for this branch. Use the value `{BranchName}` as a
836
837
insert the value of the named group `BranchName` from the [regular expression](#regex).
837
838
838
839
For example: branch `feature/foo` would become a pre-release label
839
-
of `alpha.foo` with `label: 'alpha.{BranchName}'` and `regex: '^features?[\/-](?<BranchName>.+)'`.
840
+
of `alpha.foo` with `label: 'alpha.{BranchName}'` and `regex: '^features?[/-](?<BranchName>.+)'`.
840
841
841
-
Another example: branch `features/sc-12345/some-description` would become a pre-release label of `sc-12345` with `label: '{StoryNo}'` and `regex: '^features?[\/-](?<StoryNo>sc-\d+)[-/].+'`.
842
+
Another example: branch `features/sc-12345/some-description` would become a pre-release label of `sc-12345` with `label: '{StoryNo}'` and `regex: '^features?[/-](?<StoryNo>sc-\d+)[-/].+'`.
842
843
843
844
**Note:** To clear a default use an empty string: `label: ''`
844
845
@@ -867,6 +868,30 @@ The increment of the merged branch will be ignored when this branch related prop
867
868
868
869
This branch related property controls the behvior whether to use the tagged (value set to true) or the incremented (value set to false) semantic version. Defaults to true.
869
870
871
+
### label-number-pattern
872
+
873
+
Pull requests require us to extract the pre-release number out of the branch
874
+
name so `refs/pulls/534/merge` builds as `PullRequest.534`. This is a regex with
875
+
a named capture group called `number`.
876
+
877
+
If the branch `mode` is set to `ContinuousDeployment`, then the extracted
878
+
`number`is appended to the name of the pre-release label and the number portion
879
+
is the number of commits since the last label. This enables consecutive commits to
880
+
the pull request branch to generate unique full semantic version numbers when
881
+
the branch is configured to use ContinuousDeployment mode.
882
+
883
+
**Example usage:**
884
+
885
+
```yaml
886
+
branches:
887
+
pull-request:
888
+
mode: ContinuousDeployment
889
+
label: PullRequest
890
+
increment: Inherit
891
+
track-merge-target: true
892
+
label-number-pattern: '[/-](?<number>\d+)[-/]'
893
+
```
894
+
870
895
### track-merge-target
871
896
872
897
Strategy which will look for tagged merge commits directly off the current
0 commit comments