# CI\_PULL\_REUQEST and other PR environment variables are missing

**URL:** <https://discuss.circleci.com/t/ci-pull-reuqest-and-other-pr-environment-variables-are-missing/38535>\
**Category:** Build Environment\
**Tags:** envars\
**Created:** [December 16, 2020, 8:46pm UTC](https://discuss.circleci.com/t/ci-pull-reuqest-and-other-pr-environment-variables-are-missing/38535 "2020-12-16T20:46:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![drogerschariot](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/drogerschariot/32/25358_2.png) [@drogerschariot](https://discuss.circleci.com/u/drogerschariot)\
**Post date:** [December 16, 2020, 8:46pm UTC](https://discuss.circleci.com/t/ci-pull-reuqest-and-other-pr-environment-variables-are-missing/38535/1 "2020-12-16T20:46:40Z")

</div>

After merging PRs from github, the build that runs doesn’t contain any of the PR environment variables like `CIRCLE_PR_NUMBER`, `CIRCLE_PR_REPONAME`, and `CIRCLE_PR_USERNAME`.

---

<div class="post-metadata">

**Author:** ![thekatertot](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/thekatertot/32/25169_2.png) [@thekatertot](https://discuss.circleci.com/u/thekatertot)\
**Post date:** [January 8, 2021, 9:07pm UTC](https://discuss.circleci.com/t/ci-pull-reuqest-and-other-pr-environment-variables-are-missing/38535/2 "2021-01-08T21:07:54Z")

</div>

Hi @drogerschariot!

We’ve seen this issue before, but not for a while. I’m going to link you to an older solution, and I’d love to know if this is the same issue or you’re seeing something else.

> [@CI\_PULL\_REQUEST no longer when building a PR](https://discuss.circleci.com/t/ci-pull-request-no-longer-when-building-a-pr/4191/10):
>
> Thanks for the updates everyone. To summarise: the env vars relating to PRs are only populated when the build is part of a PR (if the build is part of a PR and CI\_PULL\_REQUEST is missing, please contact support from within the application) there was an issue last week relating to PR webhooks from GitHub which we have now fixed our suggested workaround to achieve ‘[Running Specific Tests Only On A Pull Request](https://discuss.circleci.com/t/running-specific-tests-only-on-a-pull-request/500/2)’ has a couple of drawbacks as described by @rcedwards [here](https://discuss.circleci.com/t/feature-request-option-to-disable-builds-on-commit-pushes/682/15) the script [above](https://discuss.circleci.com/t/ci-pull-request-no-longer-when-building-a-pr/4191/9) from @van…
