# Get Pull Request ID when build is triggered by push

**URL:** <https://discuss.bitrise.io/t/get-pull-request-id-when-build-is-triggered-by-push/25720>\
**Category:** Question & Answer\
**Created:** [December 12, 2025, 5:54am UTC](https://discuss.bitrise.io/t/get-pull-request-id-when-build-is-triggered-by-push/25720 "2025-12-12T05:54:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mahjabin.alam](https://avatars.discourse-cdn.com/v4/letter/m/ee59a6/32.png) [@mahjabin.alam](https://discuss.bitrise.io/u/mahjabin.alam)\
**Post date:** [December 12, 2025, 5:54am UTC](https://discuss.bitrise.io/t/get-pull-request-id-when-build-is-triggered-by-push/25720/1 "2025-12-12T05:54:40Z")

</div>

I want to get the pull request ID when a workflow is triggered due to a push, not just Pull Request..

1. The available environment variable, BITRISE\_PULL\_REQUEST is empty.
2. I thought, I could try extract the ID after the “/pull-requests/“ part of the entire PR url, so I tried to access the BITRISEIO\_PULL\_REQUEST\_REPOSITORY\_URL, but it also came up empty.

Can anyone help me with some resource to get the pull request ID when build is triggered by “push“.
