Added the webhooks.

This commit is contained in:
Loic d'Anterroches
2010-05-10 10:11:27 +02:00
parent 2f22d48dd0
commit 47acc73451
10 changed files with 340 additions and 35 deletions

View File

@@ -424,6 +424,17 @@ class IDF_Project extends Pluf_Model
$this, $user);
}
/**
* Get the post commit hook key.
*
* The goal is to get something predictable but from which one
* cannot reverse find the secret key.
*/
public function getPostCommitHookKey()
{
return md5($this->id.sha1(Pluf::f('secret_key')).$this->shortname);
}
/**
* Get the root name of the project scm
*