Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/github_helper.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--changelog/index.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/changelog/index.php b/changelog/index.php
index eb664ca..1e4db32 100644
--- a/changelog/index.php
+++ b/changelog/index.php
@@ -333,12 +333,18 @@ QUERY;
QUERY;
$progressBar->setMessage("Fetching PR titles for $repoName ...");
- $response = $client->api('graphql')->execute($query);
+ if (count($pullRequests) === 0) {
+ $progressBar->advance();
+ continue;
+ }
+
+ $response = $client->api('graphql')->execute($query);
if (!isset($response['data']['repository'])) {
$progressBar->advance();
continue;
}
+
foreach ($response['data']['repository'] as $pr) {
if ($this->shouldPRBeSkipped($pr['title'])) {
continue;