public function getCommitMessage()
    {
        $rtn = parent::getCommitMessage($this->data['commit_message']);

        $project = $this->getProject();

        if (!is_null($project)) {
            $reference = $project->getReference();
            $commitLink = '<a target="_blank" href="https://github.com/' . $reference . '/issues/$1">#$1</a>';
            $rtn = preg_replace('/\#([0-9]+)/', $commitLink, $rtn);
            $rtn = preg_replace('/\@([a-zA-Z0-9_]+)/', '<a target="_blank" href="https://github.com/$1">@$1</a>', $rtn);
        }

        return $rtn;
    }
public function getCommitMessage()
    {
        $rtn = parent::getCommitMessage($this->data['commit_message']);

        $project = $this->getProject();

        if (!is_null($project)) {
            $reference = $project->getReference();
            $commitLink = '<a target="_blank" href="https://github.com/' . $reference . '/issues/$1">#$1</a>';
            $rtn = preg_replace('/\#([0-9]+)/', $commitLink, $rtn);
            $rtn = preg_replace('/\@([a-zA-Z0-9_]+)/', '<a target="_blank" href="https://github.com/$1">@$1</a>', $rtn);
        }

        return $rtn;
    }
public function getCommitMessage ( ) { $ rtn = parent :: getCommitMessage ( $ this -> data [ 'commit_message' ] ) ; $ project = $ this -> getProject ( ) ; if ( ! is_null ( $ project ) ) { $ reference = $ project -> getReference ( ) ; $ commitLink = '<a target="_blank" href="https://github.com/' . $ reference . '/issues/$1">#$1</a>' ; $ rtn = preg_replace ( '/\#([0-9]+)/' , $ commitLink , $ rtn ) ; $ rtn = preg_replace ( '/\@([a-zA-Z0-9_]+)/' , '<a target="_blank" href="https://github.com/$1">@$1</a>' , $ rtn ) ; } return $ rtn ; }
Get a parsed version of the commit message, with links to issues and commits.
@return string
Get a parsed version of the commit message with links to issues and commits .