Open Akeboshiwind opened 2 years ago
One edge case I've thought of is matching multiple paths. For my above use case, I would want to trigger a build for all unique matches.
Someone adding this feature would have to consider how to handle this.
I will add this to our backlog so we can investigate this issue further.
Describe Request:
Currently you can set constant as the value of a variable when a mapping is matched. It would be good if this could be extended to allow the inclusion of capture groups.
Examples:
This is super useful for mono-repos with lots of similarly built projects, say I have:
Here I have two folders, each contains a number of folders that are build similarly. Except that
project-type-a
projects are build differently toproject-type-b
projects.What I would like to do ideally is this:
When a file changes in
project-type-a/two
for example thenproject-type-a-changed
would be set totwo
. This is really useful compared to the alternative which would be to have lots of repeated sections ofproject-type-a/two/.* project-type-a-changed "two"
.This should be doable with the re.sub function although the syntax isn't great: