mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-02 14:36:17 +00:00
Fix auto-deployment branch (#506)
This commit is contained in:
@ -183,4 +183,9 @@ private function getAuthenticationHeaders(): array
|
||||
'Authorization' => 'Basic '.$basicAuth,
|
||||
];
|
||||
}
|
||||
|
||||
public function getWebhookBranch(array $payload): string
|
||||
{
|
||||
return data_get($payload, 'push.changes.0.new.name', 'default-branch');
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user