jenkins-bot has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/374130 )

Change subject: Skip read-only Gerrit repositories
......................................................................


Skip read-only Gerrit repositories

These repositories aren't being maintained nor updated, so we shouldn't
be advertising them to users.

Change-Id: Icf5bc5c1460e6c8b556d2004fc5122b05bc337db
---
M includes/providers/GerritExtDistProvider.php
1 file changed, 4 insertions(+), 0 deletions(-)

Approvals:
  Chad: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/includes/providers/GerritExtDistProvider.php 
b/includes/providers/GerritExtDistProvider.php
index b2fdb31..0437ad3 100644
--- a/includes/providers/GerritExtDistProvider.php
+++ b/includes/providers/GerritExtDistProvider.php
@@ -77,6 +77,10 @@
                        $this->substituteUrlVariables( $this->repoListUrl )
                );
                foreach ( $out as $name => $info ) {
+                       // Skip read-only repositories
+                       if ( isset( $info['state'] ) && $info['state'] === 
'READ_ONLY' ) {
+                               continue;
+                       }
                        $parts = explode( '/', $name );
                        if ( count( $parts ) === 3 ) {
                                $repos[] = array_pop( $parts );

-- 
To view, visit https://gerrit.wikimedia.org/r/374130
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Icf5bc5c1460e6c8b556d2004fc5122b05bc337db
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ExtensionDistributor
Gerrit-Branch: master
Gerrit-Owner: Legoktm <[email protected]>
Gerrit-Reviewer: Chad <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to