Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for regex path based selection #269

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

zoonage
Copy link

@zoonage zoonage commented Sep 16, 2021

Use case: We were trying to configure a set of pipelines that are sometimes working in the top level of the code base and sometimes not. We are using set_pipeline and a template pipeline in Concourse to configure these.

Because neither "" (matches nothing) "*" (only matches top level directory changes) match we are unable to match the entire fs tree of the PR. This causes certain builds to not trigger. I've updated the documentation for paths to reflect that this isn't using glob syntax and is using path/filepath.Match syntax

This change adds support for identifying paths using regexes. This solves our use case by allowing us to use ^. for anything in the top level and path/to/subproject/^. for anything else.

@zoonage zoonage requested a review from a team as a code owner September 16, 2021 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant