public function create($user, $repo, $pullId, $body, $commitId, $filePath, $position)
	{
		// Build the request path.
		$path = '/repos/' . $user . '/' . $repo . '/pulls/' . (int) $pullId . '/comments';

		// Build the request data.
		$data = json_encode(
			array(
				'body' => $body,
				'commit_id' => $commitId,
				'path' => $filePath,
				'position' => $position
			)
		);

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

		// Build the request data.
		$data = json_encode(
			array(
				'body' => $body,
				'commit_id' => $commitId,
				'path' => $filePath,
				'position' => $position
			)
		);

		// Send the request.
		return $this->processResponse(
			$this->client->post($this->fetchUrl($path), $data),
			201
		);
	}
public function create ( $ user , $ repo , $ pullId , $ body , $ commitId , $ filePath , $ position ) { // Build the request path. $ path = '/repos/' . $ user . '/' . $ repo . '/pulls/' . ( int ) $ pullId . '/comments' ; // Build the request data. $ data = json_encode ( array ( 'body' => $ body , 'commit_id' => $ commitId , 'path' => $ filePath , 'position' => $ position ) ) ; // Send the request. return $ this -> processResponse ( $ this -> client -> post ( $ this -> fetchUrl ( $ path ) , $ data ) , 201 ) ; }
Method to create a comment on a pull request.

@param   string   $user      The name of the owner of the GitHub repository.
@param   string   $repo      The name of the GitHub repository.
@param   integer  $pullId    The pull request number.
@param   string   $body      The comment body text.
@param   string   $commitId  The SHA1 hash of the commit to comment on.
@param   string   $filePath  The Relative path of the file to comment on.
@param   string   $position  The line index in the diff to comment on.

@since   1.0

@return  object
Method to create a comment on a pull request .