+ Create webhook when create map for product and gitlab project.
This commit is contained in:
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user