src/Providers/None.php
public function getPullRequest()
    {
        if (!$this->isGitRepo()) {
            return '';
        }

        $head = shell_exec('test -f .git/FETCH_HEAD && cat .git/FETCH_HEAD');
        $commit = preg_quote($this->getCommit(), '/');
        preg_match("/^$commit\\s+'refs\\/pull\\/(.+)\\/head'/m", $head, $match);

        return isset($match[1]) ? $match[1] : '';
    }
public function getPullRequest()
    {
        if (!$this->isGitRepo()) {
            return '';
        }

        $head = shell_exec('test -f .git/FETCH_HEAD && cat .git/FETCH_HEAD');
        $commit = preg_quote($this->getCommit(), '/');
        preg_match("/^$commit\\s+'refs\\/pull\\/(.+)\\/head'/m", $head, $match);

        return isset($match[1]) ? $match[1] : '';
    }
{@inheritdoc}