mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
fix: format, lints
This commit is contained in:
@@ -324,8 +324,8 @@ class Builds extends Action
|
||||
|
||||
// Clone template repo
|
||||
$tmpTemplateDirectory = '/tmp/builds/' . $deploymentId . '-template';
|
||||
|
||||
if(empty($templateVersion)) {
|
||||
|
||||
if (empty($templateVersion)) {
|
||||
$gitCloneCommandForTemplate = $github->generateCloneCommand($templateOwnerName, $templateRepositoryName, $templateBranch, GitHub::CLONE_TYPE_BRANCH, $tmpTemplateDirectory, $templateRootDirectory);
|
||||
} else {
|
||||
// True template
|
||||
|
||||
@@ -106,7 +106,7 @@ class Create extends Base
|
||||
'rootDirectory' => $rootDirectory,
|
||||
'branch' => $branch
|
||||
]);
|
||||
|
||||
|
||||
|
||||
if (!empty($site->getAttribute('providerRepositoryId'))) {
|
||||
$installation = $dbForPlatform->getDocument('installations', $site->getAttribute('installationId'));
|
||||
@@ -137,11 +137,11 @@ class Create extends Base
|
||||
|
||||
$branchUrl = "https://github.com/$owner/$repository/tree/$branch";
|
||||
$repositoryUrl = "https://github.com/$owner/$repository";
|
||||
|
||||
|
||||
try {
|
||||
$commitDetails = $github->getLatestCommit($owner, $repository, $branch);
|
||||
$commitDetails = $github->getLatestCommit($owner, $repository, $branch);
|
||||
} catch (\Throwable $error) {
|
||||
// Ignore; deployment can continue
|
||||
// Ignore; deployment can continue
|
||||
}
|
||||
|
||||
$commands = [];
|
||||
|
||||
@@ -4,9 +4,9 @@ namespace Appwrite\Platform\Modules\Sites\Services;
|
||||
|
||||
use Appwrite\Platform\Modules\Sites\Http\Deployments\Create as CreateDeployment;
|
||||
use Appwrite\Platform\Modules\Sites\Http\Deployments\Delete as DeleteDeployment;
|
||||
use Appwrite\Platform\Modules\Sites\Http\Deployments\Direct\Create as CreateDirectDeployment;
|
||||
use Appwrite\Platform\Modules\Sites\Http\Deployments\Download\Get as DownloadDeployment;
|
||||
use Appwrite\Platform\Modules\Sites\Http\Deployments\Duplicate\Create as CreateDuplicateDeployment;
|
||||
use Appwrite\Platform\Modules\Sites\Http\Deployments\Direct\Create as CreateDirectDeployment;
|
||||
use Appwrite\Platform\Modules\Sites\Http\Deployments\Get as GetDeployment;
|
||||
use Appwrite\Platform\Modules\Sites\Http\Deployments\Status\Update as UpdateDeploymentStatus;
|
||||
use Appwrite\Platform\Modules\Sites\Http\Deployments\Template\Create as CreateTemplateDeployment;
|
||||
|
||||
Reference in New Issue
Block a user