# TRAVIS\_COMMIT variable on the pull request is showing merge\_commit rather than the original commit

**URL:** <https://travis-ci.community/t/travis-commit-variable-on-the-pull-request-is-showing-merge-commit-rather-than-the-original-commit/9780>\
**Category:** Travis CI Discussions & Feedback\
**Tags:** build-env, travis-build, bug\
**Created:** [September 1, 2020, 2:39am UTC](https://travis-ci.community/t/travis-commit-variable-on-the-pull-request-is-showing-merge-commit-rather-than-the-original-commit/9780 "2020-09-01T02:39:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bheemreddy181](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/bheemreddy181/32/2582_2.png) [@bheemreddy181](https://travis-ci.community/u/bheemreddy181)\
**Post date:** [September 1, 2020, 2:39am UTC](https://travis-ci.community/t/travis-commit-variable-on-the-pull-request-is-showing-merge-commit-rather-than-the-original-commit/9780/1 "2020-09-01T02:39:55Z")

</div>

TRAVIS\_COMMIT environment variable is now showing merge\_commit rather than the actual commit on the PR which is causing issue with coverage uploads and also posting status checks on commits

Looks like a related issue [TRAVIS\_COMMIT is not the commit initially checked out](https://travis-ci.community/t/travis-commit-is-not-the-commit-initially-checked-out/3775/8)

---

<div class="post-metadata">

**Author:** ![native-api](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/native-api/32/430_2.png) [@native-api](https://travis-ci.community/u/native-api)\
**Post date:** [December 13, 2020, 7:26pm UTC](https://travis-ci.community/t/travis-commit-variable-on-the-pull-request-is-showing-merge-commit-rather-than-the-original-commit/9780/2 "2020-12-13T19:26:58Z")

</div>

That’s by design since PR builds test the merge preview commit. The head of the PR branch is available as [`TRAVIS_PULL_REQUEST_SHA`](https://docs.travis-ci.com/user/environment-variables/#default-environment-variables).
