mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Added getRepositoryName method
This commit is contained in:
@@ -106,6 +106,7 @@ class BuildsV1 extends Worker
|
||||
|
||||
$github = new GitHub();
|
||||
$github->initialiseVariables($installationId, $privateKey, $githubAppId, $githubAppName);
|
||||
$repositoryName = $github->getRepositoryName($repositoryId);
|
||||
$branchName = $deployment->getAttribute('branch');
|
||||
$gitCloneCommand = $github->generateGitCloneCommand($repositoryId, $branchName);
|
||||
$stdout = '';
|
||||
@@ -148,8 +149,8 @@ class BuildsV1 extends Worker
|
||||
$commentId = $deployment->getAttribute('vcsCommentId');
|
||||
if ($commentId) {
|
||||
$comment = "| Build Status |\r\n | --------------- |\r\n | Processing |";
|
||||
$github->updateComment("functions-example", $commentId, $comment);
|
||||
// TODO: Update repo name
|
||||
|
||||
$github->updateComment($repositoryName, $commentId, $comment);
|
||||
$addComment = true;
|
||||
}
|
||||
} else {
|
||||
@@ -181,8 +182,7 @@ class BuildsV1 extends Worker
|
||||
$commentId = $deployment->getAttribute('vcsCommentId');
|
||||
if ($commentId) {
|
||||
$comment = "| Build Status |\r\n | --------------- |\r\n | Building |";
|
||||
$github->updateComment("functions-example", $commentId, $comment);
|
||||
// TODO: Update repo name
|
||||
$github->updateComment($repositoryName, $commentId, $comment);
|
||||
}
|
||||
}
|
||||
$build = $dbForProject->updateDocument('builds', $buildId, $build);
|
||||
@@ -270,8 +270,7 @@ class BuildsV1 extends Worker
|
||||
if ($commentId) {
|
||||
$status = $response["status"];
|
||||
$comment = "| Build Status |\r\n | --------------- |\r\n | $status |";
|
||||
$github->updateComment("functions-example", $commentId, $comment);
|
||||
// TODO: Update repo name
|
||||
$github->updateComment($repositoryName, $commentId, $comment);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Generated
+8
-8
@@ -3156,7 +3156,7 @@
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/utopia-php/vcs.git",
|
||||
"reference": "297a6dccd3adadd0e20a33ad824f5e47a3ac9600"
|
||||
"reference": "18a6aa235362e0cc08e47670452dea89bcbb3548"
|
||||
},
|
||||
"require": {
|
||||
"adhocore/jwt": "^1.1",
|
||||
@@ -3199,7 +3199,7 @@
|
||||
"utopia",
|
||||
"vcs"
|
||||
],
|
||||
"time": "2023-04-19T19:26:56+00:00"
|
||||
"time": "2023-04-23T19:34:53+00:00"
|
||||
},
|
||||
{
|
||||
"name": "utopia-php/websocket",
|
||||
@@ -4221,16 +4221,16 @@
|
||||
},
|
||||
{
|
||||
"name": "phpstan/phpdoc-parser",
|
||||
"version": "1.19.1",
|
||||
"version": "1.20.2",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/phpstan/phpdoc-parser.git",
|
||||
"reference": "f545fc30978190a056832aa7ed995e36a66267f3"
|
||||
"reference": "90490bd8fd8530a272043c4950c180b6d0cf5f81"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/phpstan/phpdoc-parser/zipball/f545fc30978190a056832aa7ed995e36a66267f3",
|
||||
"reference": "f545fc30978190a056832aa7ed995e36a66267f3",
|
||||
"url": "https://api.github.com/repos/phpstan/phpdoc-parser/zipball/90490bd8fd8530a272043c4950c180b6d0cf5f81",
|
||||
"reference": "90490bd8fd8530a272043c4950c180b6d0cf5f81",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -4260,9 +4260,9 @@
|
||||
"description": "PHPDoc parser with support for nullable, intersection and generic types",
|
||||
"support": {
|
||||
"issues": "https://github.com/phpstan/phpdoc-parser/issues",
|
||||
"source": "https://github.com/phpstan/phpdoc-parser/tree/1.19.1"
|
||||
"source": "https://github.com/phpstan/phpdoc-parser/tree/1.20.2"
|
||||
},
|
||||
"time": "2023-04-18T11:30:56+00:00"
|
||||
"time": "2023-04-22T12:59:35+00:00"
|
||||
},
|
||||
{
|
||||
"name": "phpunit/php-code-coverage",
|
||||
|
||||
Reference in New Issue
Block a user