public function getRepositoryList($owner, $repo, $sort = 'created', $direction = 'asc', Date $since = null)
	{
		// Build the request path.
		$path = '/repos/' . $owner . '/' . $repo . '/issues/comments';

		if (false == in_array($sort, array('created', 'updated')))
		{
			throw new \UnexpectedValueException(
				sprintf(
					'%1$s - sort field must be "created" or "updated"', __METHOD__
				)
			);
		}

		if (false == in_array($direction, array('asc', 'desc')))
		{
			throw new \UnexpectedValueException(
				sprintf(
					'%1$s - direction field must be "asc" or "desc"', __METHOD__
				)
			);
		}

		$path .= '?sort=' . $sort;
		$path .= '&direction=' . $direction;

		if ($since)
		{
			$path .= '&since=' . $since->toISO8601();
		}

		// Send the request.
		return $this->processResponse($this->client->get($this->fetchUrl($path)));
	}
public function getRepositoryList($owner, $repo, $sort = 'created', $direction = 'asc', Date $since = null)
	{
		// Build the request path.
		$path = '/repos/' . $owner . '/' . $repo . '/issues/comments';

		if (false == in_array($sort, array('created', 'updated')))
		{
			throw new \UnexpectedValueException(
				sprintf(
					'%1$s - sort field must be "created" or "updated"', __METHOD__
				)
			);
		}

		if (false == in_array($direction, array('asc', 'desc')))
		{
			throw new \UnexpectedValueException(
				sprintf(
					'%1$s - direction field must be "asc" or "desc"', __METHOD__
				)
			);
		}

		$path .= '?sort=' . $sort;
		$path .= '&direction=' . $direction;

		if ($since)
		{
			$path .= '&since=' . $since->toISO8601();
		}

		// Send the request.
		return $this->processResponse($this->client->get($this->fetchUrl($path)));
	}
public function getRepositoryList ( $ owner , $ repo , $ sort = 'created' , $ direction = 'asc' , Date $ since = null ) { // Build the request path. $ path = '/repos/' . $ owner . '/' . $ repo . '/issues/comments' ; if ( false == in_array ( $ sort , array ( 'created' , 'updated' ) ) ) { throw new \ UnexpectedValueException ( sprintf ( '%1$s - sort field must be "created" or "updated"' , __METHOD__ ) ) ; } if ( false == in_array ( $ direction , array ( 'asc' , 'desc' ) ) ) { throw new \ UnexpectedValueException ( sprintf ( '%1$s - direction field must be "asc" or "desc"' , __METHOD__ ) ) ; } $ path .= '?sort=' . $ sort ; $ path .= '&direction=' . $ direction ; if ( $ since ) { $ path .= '&since=' . $ since -> toISO8601 ( ) ; } // Send the request. return $ this -> processResponse ( $ this -> client -> get ( $ this -> fetchUrl ( $ path ) ) ) ; }
Method to get the list of comments in a repository.

@param   string  $owner      The name of the owner of the GitHub repository.
@param   string  $repo       The name of the GitHub repository.
@param   string  $sort       The sort field - created or updated.
@param   string  $direction  The sort order- asc or desc. Ignored without sort parameter.
@param   Date    $since      A timestamp in ISO 8601 format.

@throws \UnexpectedValueException
@throws \DomainException
@since  1.0

@return  array
Method to get the list of comments in a repository .