implement RemoteGitBuild::getFileLinkTemplate
required by PHPCI/View/Build/view.phtml
This commit is contained in:
parent
ad46926854
commit
a789f7cb26
1 changed files with 12 additions and 0 deletions
|
|
@ -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.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue