dev/src/ReleaseBuilder/ReleaseBuilder.php
private function hasExpectedBase($org, $repo, $version)
    {
        $url = sprintf(
            self::GITHUB_RELEASES_ENDPOINT,
            $org,
            $repo,
            $version
        );

        try {
            $res = $this->http->get($url, [
                'auth' => [null, $this->token]
            ]);
            return true;
        } catch (RequestException $e) {
            return false;
        }
    }
private function hasExpectedBase($org, $repo, $version)
    {
        $url = sprintf(
            self::GITHUB_RELEASES_ENDPOINT,
            $org,
            $repo,
            $version
        );

        try {
            $res = $this->http->get($url, [
                'auth' => [null, $this->token]
            ]);
            return true;
        } catch (RequestException $e) {
            return false;
        }
    }
private function hasExpectedBase ( $ org , $ repo , $ version ) { $ url = sprintf ( self :: GITHUB_RELEASES_ENDPOINT , $ org , $ repo , $ version ) ; try { $ res = $ this -> http -> get ( $ url , [ 'auth' => [ null , $ this -> token ] ] ) ; return true ; } catch ( RequestException $ e ) { return false ; } }
Check that a Github Repository has the expected release.

Used to verify existence of the previous release to compare against.

@param string $org The github organization
@param string $repo The github repository name.
@param string $version The version to search for.
@return bool
Check that a Github Repository has the expected release .