dev/src/Split/GitHub.php
public function doesTagExist($target, $tagName)
    {
        $res = $this->client->get(sprintf(
            self::GITHUB_RELEASES_ENDPOINT,
            $this->cleanTarget($target), $tagName
        ), [
            'http_errors' => false,
            'auth' => [null, $this->token]
        ]);

        return ($res->getStatusCode() === 200);
    }
public function doesTagExist($target, $tagName)
    {
        $res = $this->client->get(sprintf(
            self::GITHUB_RELEASES_ENDPOINT,
            $this->cleanTarget($target), $tagName
        ), [
            'http_errors' => false,
            'auth' => [null, $this->token]
        ]);

        return ($res->getStatusCode() === 200);
    }
public function doesTagExist ( $ target , $ tagName ) { $ res = $ this -> client -> get ( sprintf ( self :: GITHUB_RELEASES_ENDPOINT , $ this -> cleanTarget ( $ target ) , $ tagName ) , [ 'http_errors' => false , 'auth' => [ null , $ this -> token ] ] ) ; return ( $ res -> getStatusCode ( ) === 200 ) ; }
Check if a given tag exists on a given GitHub repository.

@param string $target The GitHub organization and repository ID separated
by a forward slash, i.e. `organization/repository'.
@param string $tagName The tag to check.
@return bool
Check if a given tag exists on a given GitHub repository .