Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
detain committed Jan 11, 2024
1 parent 82d7d93 commit d2af822
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/github.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
$CommitMsg = '';
}
$CommitCount = count($Message['commits']);
$ChatMsg = "{$User} pushed ".($CommitCount == 1 ? 'a commit' : $CommitCount.' commits')." to https://github.com/{$RepositoryName} [*{$Branch}*]\n:notepad_spiral: {$CommitMsg}";
$ChatMsg = "{$Msg['alias']} pushed ".($CommitCount == 1 ? 'a commit' : $CommitCount.' commits')." to https://github.com/{$RepositoryName} [*{$Branch}*]\n:notepad_spiral: {$CommitMsg}";
$Msg['text'] = $ChatMsg;
//error_log($Msg['text']);
SendToRocketChat($rocketChatChannels['notifications'], $Msg);
Expand All @@ -85,7 +85,7 @@
case 'check_run':
break;
default:
$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']) : '').".";
$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']) : '').".";
$Msg['text'] = $ChatMsg;
//error_log($Msg['text']);
SendToRocketChat($rocketChatChannels['notifications'], $Msg);
Expand Down

0 comments on commit d2af822

Please sign in to comment.