mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-02 06:26:16 +00:00
Fix auto-deployment branch (#506)
This commit is contained in:
@ -70,4 +70,9 @@ protected function handleResponseErrors(Response $res, string $repo): void
|
||||
throw new RepositoryPermissionDenied($repo);
|
||||
}
|
||||
}
|
||||
|
||||
public function getWebhookBranch(array $payload): string
|
||||
{
|
||||
return str($payload['ref'] ?? '')->after('refs/heads/')->toString();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user