* Adjust create branch logic.

This commit is contained in:
caoyanyi
2024-01-03 19:25:04 +08:00
parent 357eedc262
commit 1cfa5305f1
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -219,7 +219,7 @@ class repo extends control
*/
public function createBranch(int $taskID, int $executionID, int $repoID = 0)
{
$repoList = $this->repo->getList($executionID);
$repoList = $this->repo->getList($executionID, implode(',', $this->config->repo->gitServiceTypeList));
if(!$repoList) return $this->send(array('result' => 'fail', 'message' => $this->lang->repo->error->noFound));
if(!$repoID) $repoID = $this->post->repoID;
+1
View File
@@ -24,6 +24,7 @@ formPanel
set::required(true),
picker
(
set::required(true),
set::name('repoID'),
set::items($repoPairs),
set::value($repoID),