How to get the pull request number on main branch merges?

Hello

I am trying to find out the GitHub pull request number on the main branch merge builds. I tried using BUILDKITE_MESSAGE but it’s not reliable. Any suggestions on better alternatives are much appreciated.

Thanks

Hey Shrav,

Can you use BUILDKITE_PULL_REQUEST?

If you’re still having trouble, send us through a message with you pipeline/build details to support@buildkite.com and we can help you out there.