Added the type of scm in the queue payload.
This commit is contained in:
parent
430c9cb00e
commit
06022bf378
@ -295,12 +295,14 @@ class IDF_Commit extends Pluf_Model
|
|||||||
// plugins may want to do something with this information in
|
// plugins may want to do something with this information in
|
||||||
// an asynchronous way.
|
// an asynchronous way.
|
||||||
$project = $this->get_project();
|
$project = $this->get_project();
|
||||||
|
$scm = $project->getConf()->getVal('scm', 'git');
|
||||||
$url = str_replace(array('%p', '%r'),
|
$url = str_replace(array('%p', '%r'),
|
||||||
array($project->shortname, $this->scm_id),
|
array($project->shortname, $this->scm_id),
|
||||||
$conf->getVal('webhook_url', ''));
|
$conf->getVal('webhook_url', ''));
|
||||||
$payload = array('to_send' => array(
|
$payload = array('to_send' => array(
|
||||||
'project' => $project->shortname,
|
'project' => $project->shortname,
|
||||||
'rev' => $this->scm_id,
|
'rev' => $this->scm_id,
|
||||||
|
'scm' => $scm,
|
||||||
'summary' => $this->summary,
|
'summary' => $this->summary,
|
||||||
'fullmessage' => $this->fullmessage,
|
'fullmessage' => $this->fullmessage,
|
||||||
'author' => $this->origauthor,
|
'author' => $this->origauthor,
|
||||||
|
Loading…
Reference in New Issue
Block a user