An optional JMESPath filter can be configured when adding tracked folders.
1. Contains (include)
[?contains(name, 'git')]
Lists repositories with names containing ‘git’
[?contains(name, 'git') | contains(name, 'Slap') | contains(name, 'est')]
Lists all the repositories that contain the specified names. |
2. Contains (exclude)
[?(!contains(name, 'firstword'))]
[?(!contains(name, 'firstword')) | (!contains(name, 'secondword'))]
1 – Lists repositories with names that either do not contain the word 'firstword'
.
2 – Lists repositories with names that either do not contain the words ‘firstword’
OR ‘secondword’
.
3. Starts with (exclude)
The example below ONLY works for tracked folder integration; where it supports the ‘fullPath
’ field:
[?!starts_with(fullPath, '/home/user/local/store/private-repos')]
Excludes repositories from the sub-folder.