Yuvipanda has submitted this change and it was merged.

Change subject: Add support for a Firehose Channel that gets *all* changes
......................................................................


Add support for a Firehose Channel that gets *all* changes

Bug: 52529

Change-Id: Ia7ef98f2146781c073ba09d9bef53cd4147e5903
---
M config.yaml
M src/relay.js
2 files changed, 8 insertions(+), 0 deletions(-)

Approvals:
  Yuvipanda: Verified; Looks good to me, approved



diff --git a/config.yaml b/config.yaml
index 70a4415..2a2423f 100644
--- a/config.yaml
+++ b/config.yaml
@@ -3,6 +3,7 @@
 userName: lolrrit
 realName: GRRRit the Terrible
 default-channel: "#wikimedia-dev"
+firehose-channel: "#mediawiki-feed"
 blacklist:
     L10n-bot
 channels:
diff --git a/src/relay.js b/src/relay.js
index b0288e9..97b6c3e 100644
--- a/src/relay.js
+++ b/src/relay.js
@@ -37,6 +37,10 @@
     allChannels.push(config['default-channel']);
 }
 
+if(typeof config['firehose-channel'] !== "undefined" && 
allChannels.indexOf(config['firehose-channel']) === -1) {
+    allChannels.push(config['firehose-channel']);
+}
+
 logging.info("joining channels", allChannels);
 
 function channelsForRepo(repo) {
@@ -51,6 +55,9 @@
     if(!channels.length) {
         channels = [config['default-channel']];
     }
+    if(typeof config['firehose-channel'] !== "undefined") {
+        channels.push(config['firehose-channel']);
+    }
     return channels;
 }
 

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Ia7ef98f2146781c073ba09d9bef53cd4147e5903
Gerrit-PatchSet: 5
Gerrit-Project: labs/tools/grrrit
Gerrit-Branch: master
Gerrit-Owner: Yuvipanda <[email protected]>
Gerrit-Reviewer: Yuvipanda <[email protected]>
Gerrit-Reviewer: jenkins-bot

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

Reply via email to