public function edit($user, $repo, $releaseId, $tagName,
		$targetCommitish = null, $name = null, $body = null, $draft = null, $preRelease = null)
	{
		// Build the request path.
		$path = '/repos/' . $user . '/' . $repo . '/releases/' . (int) $releaseId;

		// Create the data object.
		$data = new \stdClass;
		$data->tag_name = $tagName;

		// Check if input values are set and add them to the data object.
		if (isset($targetCommitish))
		{
			$data->target_commitish = $targetCommitish;
		}

		if (isset($name))
		{
			$data->name = $name;
		}

		if (isset($body))
		{
			$data->body = $body;
		}

		if (isset($draft))
		{
			$data->draft = $draft;
		}

		if (isset($preRelease))
		{
			$data->prerelease = $preRelease;
		}

		// Encode the request data.
		$data = json_encode($data);

		// Send the request.
		return $this->processResponse($this->client->patch($this->fetchUrl($path), $data));
	}
public function edit($user, $repo, $releaseId, $tagName,
		$targetCommitish = null, $name = null, $body = null, $draft = null, $preRelease = null)
	{
		// Build the request path.
		$path = '/repos/' . $user . '/' . $repo . '/releases/' . (int) $releaseId;

		// Create the data object.
		$data = new \stdClass;
		$data->tag_name = $tagName;

		// Check if input values are set and add them to the data object.
		if (isset($targetCommitish))
		{
			$data->target_commitish = $targetCommitish;
		}

		if (isset($name))
		{
			$data->name = $name;
		}

		if (isset($body))
		{
			$data->body = $body;
		}

		if (isset($draft))
		{
			$data->draft = $draft;
		}

		if (isset($preRelease))
		{
			$data->prerelease = $preRelease;
		}

		// Encode the request data.
		$data = json_encode($data);

		// Send the request.
		return $this->processResponse($this->client->patch($this->fetchUrl($path), $data));
	}
public function edit ( $ user , $ repo , $ releaseId , $ tagName , $ targetCommitish = null , $ name = null , $ body = null , $ draft = null , $ preRelease = null ) { // Build the request path. $ path = '/repos/' . $ user . '/' . $ repo . '/releases/' . ( int ) $ releaseId ; // Create the data object. $ data = new \ stdClass ; $ data -> tag_name = $ tagName ; // Check if input values are set and add them to the data object. if ( isset ( $ targetCommitish ) ) { $ data -> target_commitish = $ targetCommitish ; } if ( isset ( $ name ) ) { $ data -> name = $ name ; } if ( isset ( $ body ) ) { $ data -> body = $ body ; } if ( isset ( $ draft ) ) { $ data -> draft = $ draft ; } if ( isset ( $ preRelease ) ) { $ data -> prerelease = $ preRelease ; } // Encode the request data. $ data = json_encode ( $ data ) ; // Send the request. return $ this -> processResponse ( $ this -> client -> patch ( $ this -> fetchUrl ( $ path ) , $ data ) ) ; }
Method to update a release.

@param   string   $user             The name of the owner of the GitHub repository.
@param   string   $repo             The name of the GitHub repository.
@param   integer  $releaseId        The release id.
@param   string   $tagName          The name of the tag.
@param   string   $targetCommitish  The commitish value that determines where the Git tag is created from.
@param   string   $name             The branch (or git ref) you want your changes pulled into. This
should be an existing branch on the current repository. You cannot
submit a pull request to one repo that requests a merge to a base
of another repo.
@param   boolean  $body             The body text for the new pull request.
@param   boolean  $draft            The branch (or git ref) where your changes are implemented.
@param   string   $preRelease       The branch (or git ref) where your changes are implemented.

@return  object

@link    http://developer.github.com/v3/repos/releases/#edit-a-release
@since   __DEPLOY_VERSION__
@throws  \DomainException
Method to update a release .