minor #28788 invalidate stale commits for PRs too (xabbuh)

This PR was merged into the 2.8 branch.

Discussion
----------

invalidate stale commits for PRs too

| Q             | A
| ------------- | ---
| Branch?       | 2.8
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets |
| License       | MIT
| Doc PR        |

Commits
-------

aee63f5e4b invalidate stale commits for PRs too
This commit is contained in:
Fabien Potencier 2018-10-10 02:30:07 -07:00
commit 798dcc560d
1 changed files with 1 additions and 2 deletions

View File

@ -104,8 +104,7 @@ foreach ($composerJsons as list($dir, $lockedPackages)) {
}
}
if (!$referencedCommits || (isset($_SERVER['TRAVIS_PULL_REQUEST']) && 'false' !== $_SERVER['TRAVIS_PULL_REQUEST'])) {
// cached commits cannot be stale for PRs
if (!$referencedCommits) {
return;
}