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

Imprint