implement RemoteGitBuild::getFileLinkTemplate

required by PHPCI/View/Build/view.phtml
This commit is contained in:
Joseph Pugh 2014-04-28 14:26:37 -05:00
commit a789f7cb26

View file

@ -38,6 +38,18 @@ class GitlabBuild extends RemoteGitBuild
return 'http://' . $domain . '/' . $this->getProject()->getReference() . '/tree/' . $this->getBranch();
}
/**
* Get link to specific file (and line) in a the repo's branch
*/
public function getFileLinkTemplate()
{
return sprintf('http://%s/%s/blob/%s/{FILE}#L{LINE}',
$this->getProject()->getAccessInformation("domain"),
$this->getProject()->getReference(),
$this->getBranch()
);
}
/**
* Get the URL to be used to clone this remote repository.
*/