* Modify repo page data.

This commit is contained in:
caoyanyi
2022-07-12 15:37:16 +08:00
parent ed24e40025
commit 75bf140f6d
6 changed files with 102 additions and 100 deletions
+1 -1
View File
@@ -2032,7 +2032,7 @@ class repoModel extends model
$repo->gitService = $service ? $service->id : 0;
$repo->project = $service ? $repo->path : ''; // The projectID in gitlab.
$repo->path = $service ? sprintf($this->config->repo->gitlab->apiPath, $service->url, $repo->path) : '';
$repo->path = $service ? sprintf($this->config->repo->{$service->type}->apiPath, $service->url, $repo->path) : '';
$repo->client = $service ? $service->url : '';
$repo->password = $service ? $service->token : '';
return $repo;