* Add test function and sync issue function.

This commit is contained in:
Guan Xiying
2021-06-23 17:29:04 +08:00
parent 12fde09988
commit 88ffd16820
4 changed files with 134 additions and 39 deletions
+16
View File
@@ -246,4 +246,20 @@ class gitlab extends control
$this->view->data = 'ougiugjvh';
$this->display();
}
public function test($id = 11)
{
$gitlabID = 11; $projectID = 36;
$task = $this->loadModel('task')->getByID($id);
$issue = $this->gitlab->taskToIssue($gitlabID, $projectID, $task);
$issue = $this->gitlab->apiCreateIssue($gitlabID, $projectID, $issue);
a($issue);
$this->gitlab->saveSyncedIssue('task', $task, $gitlabID, $issue);
exit;
}
}