dev/src/Split/GitHub.php
public function createRelease($target, $tagName, $display, $notes)
    {
        $requestBody = [
            'tag_name' => $tagName,
            'name' => $display,
            'body' => $notes
        ];

        $res = $this->client->post(sprintf(
            self::GITHUB_RELEASE_CREATE_ENDPOINT,
            $this->cleanTarget($target)
        ), [
            'http_errors' => false,
            'json' => $requestBody,
            'auth' => [null, $this->token]
        ]);

        return $this->doesTagExist($target, $tagName);
    }
public function createRelease($target, $tagName, $display, $notes)
    {
        $requestBody = [
            'tag_name' => $tagName,
            'name' => $display,
            'body' => $notes
        ];

        $res = $this->client->post(sprintf(
            self::GITHUB_RELEASE_CREATE_ENDPOINT,
            $this->cleanTarget($target)
        ), [
            'http_errors' => false,
            'json' => $requestBody,
            'auth' => [null, $this->token]
        ]);

        return $this->doesTagExist($target, $tagName);
    }
public function createRelease ( $ target , $ tagName , $ display , $ notes ) { $ requestBody = [ 'tag_name' => $ tagName , 'name' => $ display , 'body' => $ notes ] ; $ res = $ this -> client -> post ( sprintf ( self :: GITHUB_RELEASE_CREATE_ENDPOINT , $ this -> cleanTarget ( $ target ) ) , [ 'http_errors' => false , 'json' => $ requestBody , 'auth' => [ null , $ this -> token ] ] ) ; return $ this -> doesTagExist ( $ target , $ tagName ) ; }
Create a tag on the given GitHub repository and sends a request to verify.

@param string $target The GitHub organization and repository ID separated
by a forward slash, i.e. `organization/repository'.
@param string $tagName The name of the tag to create.
@param string $display The tag display name.
@param string $notes The tag release notes.
@return bool True if successful, false if failed.
Create a tag on the given GitHub repository and sends a request to verify .