Big update.

This commit is contained in:
Dan Cryer 2013-05-10 12:28:43 +01:00
commit 3647ac1cd8
26 changed files with 2924 additions and 8707 deletions

View file

@ -16,5 +16,21 @@ use PHPCI\Model\Base\BuildBase;
*/
class Build extends BuildBase
{
// This class has been left blank so that you can modify it - changes in this file will not be overwritten.
public function getCommitLink()
{
switch($this->getProject()->getType())
{
case 'github':
return 'https://github.com/' . $this->getProject()->getReference() . '/commit/' . $this->getCommitId();
}
}
public function getBranchLink()
{
switch($this->getProject()->getType())
{
case 'github':
return 'https://github.com/' . $this->getProject()->getReference() . '/tree/' . $this->getBranch();
}
}
}