Truncate commit hash to 16 chars

This commit is contained in:
Khushboo Verma
2025-05-28 14:10:12 +05:30
parent 707ef16f79
commit 814abddf93
+1 -1
View File
@@ -330,7 +330,7 @@ $createGitDeployments = function (GitHub $github, string $providerInstallationId
// VCS commit preview
if (!empty($providerCommitHash)) {
$domain = "commit-{$providerCommitHash}.{$sitesDomain}";
$domain = "commit-" . substr($providerCommitHash, 0, 16) . ".{$sitesDomain}";
$ruleId = md5($domain);
try {
Authorization::skip(