Skip to content

Commit

Permalink
Merge pull request #5 from dotCore-off/fix/branch-name
Browse files Browse the repository at this point in the history
fix: small issue with branch name
  • Loading branch information
dotCore-off authored Jul 20, 2023
2 parents 3d36568 + a88167a commit 79178fc
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 .= ":" . str_replace("refs/head/", "", $aPayload["ref"]) . "]";
$sRepository .= ":" . str_replace("refs/heads/", "", $aPayload["ref"]) . "]";
$sRepository .= " " . count($aCommits) . " new commit" . (count($aCommits) <= 1 ? "" : "s");
$sRepositoryUrl = $aPayload["repository"]["url"];
} else {
Expand Down

0 comments on commit 79178fc

Please sign in to comment.