getCommitId() !== 'manual'){ return $this->getProject()->getReference() . '/commit/' . $this->getCommitId(); } return parent::getCommitLink(); } /** * Get link to branch from Gogs repository */ public function getBranchLink() { return $this->getProject()->getReference() . '/src/' . $this->getBranch(); } }