* Add bindproduct.

This commit is contained in:
dingguodong
2021-06-17 14:51:39 +08:00
parent 9c3c8022c9
commit 012f334c2e
4 changed files with 72 additions and 4 deletions
+3 -4
View File
@@ -402,18 +402,17 @@ class gitlabModel extends model
$apiPath = "/projects/{$projectID}/issues/";
$url = sprintf($apiRoot, $apiPath);
$response = commonModel::http($url, $issue);
$labels = json_decode($response);
return $labels;
return $response;
}
public function pushTask($task, $gitlabID,$projectID)
{
$task->label = $this->config->gitlab->taskLabel->name;
}
public function pushBug($bug, $gitlabID,$projectID)
{
$bug->label = $this->config->gitlab->bugLabel->name;
}
}