Call the configured download webhook when new downloads are created

or existing downloads are updated.

This feature is sponsored by Scilab.
This commit is contained in:
Thomas Keller
2011-09-26 00:51:33 +02:00
parent b29acd71cb
commit 7ff298af79
4 changed files with 53 additions and 10 deletions

View File

@@ -299,6 +299,7 @@ class IDF_Commit extends Pluf_Model
'project_id' => $project->id,
'authkey' => $project->getWebHookKey(),
'url' => $url,
'method' => 'POST',
);
$item = new IDF_Queue();
$item->type = 'new_commit';