Browse Source

explain named capture groups

Signed-off-by: Aidan Oldershaw <aoldershaw@pivotal.io>
pull/4/head
Aidan Oldershaw 4 years ago
parent
commit
34604c485f
  1. 5
      pipelines/multi-branch/tracker.yml

5
pipelines/multi-branch/tracker.yml

@ -14,6 +14,11 @@ resources:
type: git-branches
source:
uri: https://github.com/concourse/examples
# The "(?P<name>pattern)" 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<feature>.*)'
- name: examples

Loading…
Cancel
Save