Skip to content

Commit e065a68

Browse files
Merge pull request #151 from nextcloud/fix/dont-iterate-appstore
fix: do not iterate over appstore repo
2 parents 1f0010a + 400c943 commit e065a68

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

changelog/index.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,10 +157,12 @@ protected function getReposToIterate($head = 'master')
157157
$parameters = array(self::ORG_NAME);
158158
$repos = $paginator->fetchAll($organizationApi, 'repositories', $parameters);
159159

160-
// Filter out archived and disabled repos
160+
// Filter out archived and disabled repos, and appstore (name clash)
161161
$results = array_filter($repos, function ($repo): bool {
162162
return $repo['archived'] === false
163-
&& $repo['disabled'] === false;
163+
&& $repo['disabled'] === false
164+
&& $repo['name'] !== 'appstore'
165+
;
164166
});
165167

166168
// Return repos names
@@ -619,7 +621,7 @@ function ($a, $b) {
619621

620622
if ($repoName === self::REPO_SERVER) {
621623
$output->writeln(" * #$number$status");
622-
} else {
624+
} else {
623625
$output->writeln(" * $orgName/$repoName#$number$status");
624626
}
625627
}

0 commit comments

Comments
 (0)