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

Support blob/regex pattern for branch names #398

Open
markdboyd opened this issue Mar 17, 2023 · 1 comment
Open

Support blob/regex pattern for branch names #398

markdboyd opened this issue Mar 17, 2023 · 1 comment

Comments

@markdboyd
Copy link

Is your feature request related to a problem? Please describe.

I would like to use the Github merge queue feature to manage Dependabot PRs, among other things. But in order to have Concourse CI jobs triggered by the merge queue builds, I need to be able to match against PRs by a blob/regex pattern: gh-readonly-queue/{base_branch}/.

From what I can tell from the documentation and perusing the check script code, the branch option currently only supports a static branch name.

Describe the solution you'd like

I'd like to add a name option for check, branch_pattern, to support dynamically matching against branch names by a blob pattern

Then it could be used like so when declaring a resource in a pipeline:

- name: merge-queue-builds
  type: git
  source:
    uri: https://github.com/concourse/git-resource
    branch_pattern: gh-readonly-queue/main/*

And then CI jobs in the pipeline could be triggered by this resource.

Describe alternatives you've considered

No response

Additional context

No response

@markdboyd
Copy link
Author

I have a naive PR started: #399. I was having difficulty getting the tests to run well locally though

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant