From 65bf07f0fe6ec48dc8425c3d42813c18ded31d92 Mon Sep 17 00:00:00 2001 From: Pedro Alvarez Piedehierro Date: Mon, 22 May 2017 00:55:16 +0100 Subject: baserock_bots: configure Gitlab bot for Baserock too --- baserock_bots/config.js | 52 +++++++++++++++++++++++++++++++++++++------- baserock_bots/gitlab-bot.yml | 2 +- 2 files changed, 45 insertions(+), 9 deletions(-) diff --git a/baserock_bots/config.js b/baserock_bots/config.js index 5c8ea793..15173a1a 100644 --- a/baserock_bots/config.js +++ b/baserock_bots/config.js @@ -1,17 +1,53 @@ module.exports = { // IRC server to connect to. - server: 'irc.gimp.org', + servers: { + gimp: 'irc.gimp.org', + freenode: 'irc.freenode.net' + }, // List of channels / people to report to. - reports: { - '#buildstream': ['push', 'merge_request', 'issue'] - // 'somebody': ['push', 'merge_request', 'issue', 'build'] - }, + triggers: [ + { + project: 'baserock/definitions', + network: 'freenode', + reports: { + '#baserock': ['push', 'merge_request', 'issue'] + } + }, + { + project: 'baserock/infrastructure', + network: 'freenode', + reports: { + '#baserock': ['push', 'merge_request', 'issue'] + } + }, + { + project: 'baserock/lorries', + network: 'freenode', + reports: { + '#baserock': ['push', 'merge_request', 'issue'] + } + }, + { + project: 'baserock/ybd', + network: 'freenode', + reports: { + '#baserock': ['push', 'merge_request', 'issue'] + } + }, + { + project: 'BuildStream/buildstream', + network: 'gimp', + reports: { + '#buildstream': ['push', 'merge_request', 'issue'] + } + }, + ], // IRC nick/names for the bot - nick: 'gitlab-bst', - userName: 'gitlab-bst', - realName: 'Gitlab Bot for BuildStream', + nick: 'gitlab-br-bot', + userName: 'gitlab-br-bot', + realName: 'Gitlab Bot provided by Baserock', // Secret as entered in the Gitlab Webhook instance. secret: '{{ gitlab_buildstream_secret }}', diff --git a/baserock_bots/gitlab-bot.yml b/baserock_bots/gitlab-bot.yml index f47cacd9..4e3549df 100644 --- a/baserock_bots/gitlab-bot.yml +++ b/baserock_bots/gitlab-bot.yml @@ -4,7 +4,7 @@ vars_files: - gitlab_buildstream_secret.yml vars: - - gitlab_to_irc_url: https://framagit.org/bnjbvr/gitlab-to-irc + - gitlab_to_irc_url: https://gitlab.com/palvarez89/gitlab-to-irc - gitlab_to_irc_branch: master - gitlab_to_irc_install_location: /home/ubuntu/gitlab-to-irc tasks: -- cgit v1.2.1