public function add($owner, $repo, $number, array $labels)
	{
		// Build the request path.
		$path = '/repos/' . $owner . '/' . $repo . '/issues/' . $number . '/labels';

		// Send the request.
		return $this->processResponse(
			$this->client->post($this->fetchUrl($path), json_encode($labels))
		);
	}
public function add($owner, $repo, $number, array $labels)
	{
		// Build the request path.
		$path = '/repos/' . $owner . '/' . $repo . '/issues/' . $number . '/labels';

		// Send the request.
		return $this->processResponse(
			$this->client->post($this->fetchUrl($path), json_encode($labels))
		);
	}
public function add ( $ owner , $ repo , $ number , array $ labels ) { // Build the request path. $ path = '/repos/' . $ owner . '/' . $ repo . '/issues/' . $ number . '/labels' ; // Send the request. return $ this -> processResponse ( $ this -> client -> post ( $ this -> fetchUrl ( $ path ) , json_encode ( $ labels ) ) ) ; }
Add labels to an issue.

@param   string  $owner   The name of the owner of the GitHub repository.
@param   string  $repo    The name of the GitHub repository.
@param   string  $number  The issue number.
@param   array   $labels  An array of labels to add.

@return  object

@since   1.0
Add labels to an issue .