public function create($user, $repo, $issueId, $body)
	{
		// Build the request path.
		$path = '/repos/' . $user . '/' . $repo . '/issues/' . (int) $issueId . '/comments';

		// Build the request data.
		$data = json_encode(
			array(
				'body' => $body,
			)
		);

		// Send the request.
		return $this->processResponse(
			$this->client->post($this->fetchUrl($path), $data),
			201
		);
	}
public function create($user, $repo, $issueId, $body)
	{
		// Build the request path.
		$path = '/repos/' . $user . '/' . $repo . '/issues/' . (int) $issueId . '/comments';

		// Build the request data.
		$data = json_encode(
			array(
				'body' => $body,
			)
		);

		// Send the request.
		return $this->processResponse(
			$this->client->post($this->fetchUrl($path), $data),
			201
		);
	}
public function create ( $ user , $ repo , $ issueId , $ body ) { // Build the request path. $ path = '/repos/' . $ user . '/' . $ repo . '/issues/' . ( int ) $ issueId . '/comments' ; // Build the request data. $ data = json_encode ( array ( 'body' => $ body , ) ) ; // Send the request. return $ this -> processResponse ( $ this -> client -> post ( $ this -> fetchUrl ( $ path ) , $ data ) , 201 ) ; }
Method to create a comment on an issue.

@param   string   $user     The name of the owner of the GitHub repository.
@param   string   $repo     The name of the GitHub repository.
@param   integer  $issueId  The issue number.
@param   string   $body     The comment body text.

@throws \DomainException
@since  1.0

@return  object
Method to create a comment on an issue .