buildkite / feedback

Got feedback? Please let us know!
https://buildkite.com
25 stars 24 forks source link

Get the Base Branch of a PR #277

Closed cycomachead closed 6 years ago

cycomachead commented 7 years ago

Most of the time, we merge PRs into master, but it would be nice for a couple tools if we could get an environment variable that has the branch name of what a PR will be merged into.

Is there any way to do this today? I read the docs on environment variables and didn't see anything.

Thanks!

toolmantim commented 7 years ago

Hey, thanks for submitting this. We're working on this now, and it's not far away. I'll keep you posted when it's live.

cycomachead commented 7 years ago

Thanks! That's great to hear.

mfeckie commented 6 years ago

How's this going folks? Very keen to use this as target merge branch targetting is what we use to determine where we want a successful build to be deployed

toolmantim commented 6 years ago

Hey, it actually just went live this morning 🎉 You can find BUILDKITE_PULL_REQUEST_BASE_BRANCH in the list of environment variables and in any pull request job’s "Environment" tab.

cycomachead commented 6 years ago

Awesome, thanks so much!

mfeckie commented 6 years ago

❤️ 💟 💛 💜 💚 ❤️ 💙