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:
commit
798dcc560d
3
.github/rm-invalid-lowest-lock-files.php
vendored
3
.github/rm-invalid-lowest-lock-files.php
vendored
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user