From 4ae69b2e3c07873a1a7f59ecbddacee09b7aecc5 Mon Sep 17 00:00:00 2001 From: Vladimir Vitkov Date: Fri, 12 Aug 2022 11:21:42 +0300 Subject: [PATCH] add team add event --- tools/rocketchat/webhooks/incomming/gihub.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tools/rocketchat/webhooks/incomming/gihub.js b/tools/rocketchat/webhooks/incomming/gihub.js index 503b0d4..b8bc97b 100644 --- a/tools/rocketchat/webhooks/incomming/gihub.js +++ b/tools/rocketchat/webhooks/incomming/gihub.js @@ -159,6 +159,17 @@ const githubEvents = { attachments: [attachment] } }; + }, + + team_add(request) { + const team = request.content.team.name; + const permission = request.content.team.permission; + + return { + content: { + text: 'Team ' + team + ' with permissions ' + permission + ' added!' + } + }; } };