Skip to content

Commit d2af822

Browse files
committed
fix
1 parent 82d7d93 commit d2af822

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

web/github.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
$CommitMsg = '';
7777
}
7878
$CommitCount = count($Message['commits']);
79-
$ChatMsg = "{$User} pushed ".($CommitCount == 1 ? 'a commit' : $CommitCount.' commits')." to https://github.com/{$RepositoryName} [*{$Branch}*]\n:notepad_spiral: {$CommitMsg}";
79+
$ChatMsg = "{$Msg['alias']} pushed ".($CommitCount == 1 ? 'a commit' : $CommitCount.' commits')." to https://github.com/{$RepositoryName} [*{$Branch}*]\n:notepad_spiral: {$CommitMsg}";
8080
$Msg['text'] = $ChatMsg;
8181
//error_log($Msg['text']);
8282
SendToRocketChat($rocketChatChannels['notifications'], $Msg);
@@ -85,7 +85,7 @@
8585
case 'check_run':
8686
break;
8787
default:
88-
$ChatMsg = "{$User} triggered a {$EventType} event ".(isset($Message['action']) ? $Message['action'].' action ' : '')." notification on https://github.com/{$RepositoryName} ".(isset($Message['ref']) ? str_replace('refs/heads/', '', $Message['ref']) : '').".";
88+
$ChatMsg = "{$Msg['alias']} triggered a {$EventType} event ".(isset($Message['action']) ? $Message['action'].' action ' : '')." notification on https://github.com/{$RepositoryName} ".(isset($Message['ref']) ? str_replace('refs/heads/', '', $Message['ref']) : '').".";
8989
$Msg['text'] = $ChatMsg;
9090
//error_log($Msg['text']);
9191
SendToRocketChat($rocketChatChannels['notifications'], $Msg);

0 commit comments

Comments
 (0)