Skip to content

Commit 721a658

Browse files
committed
updated github hook adding handling for gollum events
1 parent af32716 commit 721a658

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

web/github.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,13 @@
156156
$Msg['text'] = $ChatMsg;
157157
//SendToChat('notifications', $Msg, $useRC, $useTeams);
158158
break;
159+
case 'gollum':
160+
$ChatMsg = "ℹ️ {$Msg['alias']} triggered a **{$EventType}** event "
161+
. (isset($Message['data']['pages'][0]['action']) ? "({$Message['data']['pages'][0]['action']} [{$Message['data']['pages'][0]['title']}]({$Message['data']['pages'][0]['html_url']})) " : "")
162+
. "on [{$RepositoryName}](https://github.com/{$RepositoryName}).";
163+
$Msg['text'] = $ChatMsg;
164+
SendToChat('notifications', $Msg, $useRC, $useTeams);
165+
break;
159166

160167
default:
161168
$ChatMsg = "ℹ️ {$Msg['alias']} triggered a **{$EventType}** event "

0 commit comments

Comments
 (0)