TRAVIS_COMMIT variable on the pull request is showing merge_commit rather than the original commit

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

1 Like

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.