Skip to content

Commit 5e964a3

Browse files
authored
fix: change message for push event v2
Signed-off-by: Tan Nguyen <35853002+tanhongit@users.noreply.github.com>
1 parent 5a35830 commit 5e964a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

resources/events/push/default.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
$noun = ($count > 1) ? "commits" : "commit";
88

99
$ref = explode('/', $payload->ref);
10-
$branch = end($ref);
10+
$branch = implode('/', array_slice($ref, 2));
1111

1212
$message = "⚙️ <b>{$count}</b> new {$noun} to <b>{$payload->repository->full_name}:<code>{$branch}</code></b>\n\n";
1313

0 commit comments

Comments
 (0)