From 34604c485f828c48830c84ad4001cfe039d369ef Mon Sep 17 00:00:00 2001 From: Aidan Oldershaw Date: Tue, 20 Jul 2021 16:55:07 -0400 Subject: [PATCH] explain named capture groups Signed-off-by: Aidan Oldershaw --- pipelines/multi-branch/tracker.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pipelines/multi-branch/tracker.yml b/pipelines/multi-branch/tracker.yml index 9a644af..73b2442 100644 --- a/pipelines/multi-branch/tracker.yml +++ b/pipelines/multi-branch/tracker.yml @@ -14,6 +14,11 @@ resources: type: git-branches source: uri: https://github.com/concourse/examples + # The "(?Ppattern)" syntax defines a named capture group. + # aoldershaw/git-branches-resource emits the value of each named capture + # group under the `groups` key. + # + # e.g. feature/some-feature ==> {"groups": {"feature": "some-feature"}} branch_regex: 'feature/(?P.*)' - name: examples