Skip to content

Commit 568307b

Browse files
committed
minor update to github webhooks
1 parent c246580 commit 568307b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

web/github.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,12 @@
6262

6363
$useRC = true;
6464
$useTeams = true;
65-
switch ($EventType) {
66-
case 'issues':
6765
if ($RepositoryName == 'interserver/mailbaby-api-samples') {
6866
$useTeams = false;
6967
break;
7068
}
69+
switch ($EventType) {
70+
case 'issues':
7171
$Issue = $Message['issue'];
7272
$IssueUrl = $Issue['html_url'];
7373
$IssueTitle = $Issue['title'];
@@ -200,7 +200,7 @@ function WildMatch(string $string, string $expression) : bool
200200
return preg_match('/^' . $expression . '$/', $string) === 1;
201201
}
202202

203-
function SendToChat(string $Where, array $Payload, $useRC = true, $useTeams = true) : bool
203+
function SendToChat(string $Where, array $Payload, bool $useRC = true, bool $useTeams = true) : bool
204204
{
205205
error_log("Sending Payload ".json_encode($Payload)." to {$Where}");
206206
global $chatChannels;

0 commit comments

Comments
 (0)