Skip to content

Commit

Permalink
Merge pull request #4 from dotCore-off/fix-branch
Browse files Browse the repository at this point in the history
fix: incorrect shown branch name
  • Loading branch information
dotCore-off authored May 22, 2023
2 parents 3cd9c06 + eeff5a7 commit 3d36568
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion relay.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ function verifyHeaders($received, $check, $name = "array") {
// Grab repository info
if (count($dc_hiddenreps) == 0 || !in_array($aPayload["repository"]["name"], $dc_hiddenreps)) {
$sRepository = "[" . $aPayload["repository"]["name"];
$sRepository .= ":" . $aPayload["repository"]["default_branch"] . "]";
$sRepository .= ":" . str_replace("refs/head/", "", $aPayload["ref"]) . "]";
$sRepository .= " " . count($aCommits) . " new commit" . (count($aCommits) <= 1 ? "" : "s");
$sRepositoryUrl = $aPayload["repository"]["url"];
} else {
Expand Down

0 comments on commit 3d36568

Please sign in to comment.