+ Create webhook when create map for product and gitlab project.

This commit is contained in:
dingguodong
2021-06-18 09:58:45 +08:00
parent 94f7cde43c
commit 444566afb5
3 changed files with 20 additions and 0 deletions
+15
View File
@@ -226,6 +226,21 @@ class gitlabModel extends model
return $gitlab_url;
}
/**
* Create webhook for zentao.
*
* @param int $gitlabID
* @param int $projectID
* @access public
* @return void
*/
public function createWebhook($gitlabID, $projectID)
{
// TODO(dingguodong) add more robust code here.
$response = $this->apiCreateHook($gitlabID, $projectID, $this->config->gitlab->zentaoApiWebhookUrl, $this->config->gitlab->zentaoApiWebhookToken);
return $response;
}
/**
* Get hooks.
*