add getFileLinkTemplate for gogs

This commit is contained in:
root 2017-02-16 08:59:01 +00:00 committed by Dmitry Khomutov
parent 086eb82631
commit 9f8a5df810

View file

@ -26,4 +26,15 @@ class GogsBuild extends RemoteGitBuild
{
return $this->getProject()->getReference() . '/src/' . $this->getBranch();
}
/**
* Get link to specific file (and line) in a the repo's branch
*/
public function getFileLinkTemplate()
{
return sprintf(
'%s/src/%s/{FILE}#L{LINE}',
$this->getProject()->getReference(),
$this->getCommitId()
);
}
}