|
@@ -108,6 +108,9 @@ class Updater
|
|
$cfg = $repository->getRepoConfig();
|
|
$cfg = $repository->getRepoConfig();
|
|
if (isset($cfg['url']) && preg_match('{\bgithub\.com\b}i', $cfg['url'])) {
|
|
if (isset($cfg['url']) && preg_match('{\bgithub\.com\b}i', $cfg['url'])) {
|
|
foreach ($package->getMaintainers() as $maintainer) {
|
|
foreach ($package->getMaintainers() as $maintainer) {
|
|
|
|
+ if ($maintainer->getId() === 1) {
|
|
|
|
+ continue;
|
|
|
|
+ }
|
|
if (!($newGithubToken = $maintainer->getGithubToken())) {
|
|
if (!($newGithubToken = $maintainer->getGithubToken())) {
|
|
continue;
|
|
continue;
|
|
}
|
|
}
|
|
@@ -283,6 +286,8 @@ class Updater
|
|
|| ($flags & self::UPDATE_EQUAL_REFS)
|
|
|| ($flags & self::UPDATE_EQUAL_REFS)
|
|
// or if the package must be marked abandoned from composer.json
|
|
// or if the package must be marked abandoned from composer.json
|
|
|| ($data->isAbandoned() && !$package->isAbandoned())
|
|
|| ($data->isAbandoned() && !$package->isAbandoned())
|
|
|
|
+ // or if the funding info got updated in composer.json
|
|
|
|
+ || ($data->getFunding() && !$version->getFunding())
|
|
) {
|
|
) {
|
|
$version = $versionRepo->findOneById($existingVersion['id']);
|
|
$version = $versionRepo->findOneById($existingVersion['id']);
|
|
} elseif ($existingVersion['needs_author_migration']) {
|
|
} elseif ($existingVersion['needs_author_migration']) {
|