GitHub Pull Request filtering based on target branch

Note: This is a duplicate of https://github.com/buildkite/feedback/issues/482.

Right now, you offer the ability to filter the triggering of builds based on the source branch of a pull request.

Functionality that I would love is to have the ability to filter based on target branch as well.

Here is my use case.

I’m using Buildkite as a replacement for Travis. I have two long-lived release branches in a single repo: master and legacy . Pull Requests are actively being opened against both branches, but they have entirely different pipeline requirements and are developed by separate teams.

I want to create two pipelines, one for each release branch. I want to be able to send post commit statuses from the correct pipeline to the appropriate PR.

What I would love is if I had the ability to natively filter when a Pull Request event triggered a build not only on the source branch (/features/*) but the target branch (master or legacy).

Thanks!

Just wanted to let everyone know we’ve got a solution for this behind a feature flag.

If someone stumbles across this and wants access, send us an email hello@buildkite.com and we’ll flip it on for you :)

For future readers, this is now enabled for everyone. Please check

Thanks :-)