travis-ci/travis-build — pull request #268 by Joshua-Anderson (2014-07-17 18:14:02+00:00)
Title: Deployment: Use build data rather than environmental variable to check whether build is a pull request

This is slightly more secure as it prevents pull requester for simply setting `$TRAVIS_PULL_REQUEST=false` and shortens the build script for pull requests by several lines.