public function getListByRepository($user, $repo, $milestone = null, $state = null, $assignee = null, $mentioned = null, $labels = null,
		$sort = null, $direction = null, Date $since = null, $page = 0, $limit = 0)
	{
		// Build the request path.
		$path = '/repos/' . $user . '/' . $repo . '/issues';

		$uri = new Uri($this->fetchUrl($path, $page, $limit));

		if ($milestone)
		{
			$uri->setVar('milestone', $milestone);
		}

		if ($state)
		{
			$uri->setVar('state', $state);
		}

		if ($assignee)
		{
			$uri->setVar('assignee', $assignee);
		}

		if ($mentioned)
		{
			$uri->setVar('mentioned', $mentioned);
		}

		if ($labels)
		{
			$uri->setVar('labels', $labels);
		}

		if ($sort)
		{
			$uri->setVar('sort', $sort);
		}

		if ($direction)
		{
			$uri->setVar('direction', $direction);
		}

		if ($since)
		{
			$uri->setVar('since', $since->toISO8601());
		}

		// Send the request.
		$response = $this->client->get((string) $uri);

		// Validate the response code.
		if ($response->code != 200)
		{
			// Decode the error response and throw an exception.
			$error = json_decode($response->body);
			throw new \DomainException($error->message, $response->code);
		}

		return json_decode($response->body);
	}
public function getListByRepository($user, $repo, $milestone = null, $state = null, $assignee = null, $mentioned = null, $labels = null,
		$sort = null, $direction = null, Date $since = null, $page = 0, $limit = 0)
	{
		// Build the request path.
		$path = '/repos/' . $user . '/' . $repo . '/issues';

		$uri = new Uri($this->fetchUrl($path, $page, $limit));

		if ($milestone)
		{
			$uri->setVar('milestone', $milestone);
		}

		if ($state)
		{
			$uri->setVar('state', $state);
		}

		if ($assignee)
		{
			$uri->setVar('assignee', $assignee);
		}

		if ($mentioned)
		{
			$uri->setVar('mentioned', $mentioned);
		}

		if ($labels)
		{
			$uri->setVar('labels', $labels);
		}

		if ($sort)
		{
			$uri->setVar('sort', $sort);
		}

		if ($direction)
		{
			$uri->setVar('direction', $direction);
		}

		if ($since)
		{
			$uri->setVar('since', $since->toISO8601());
		}

		// Send the request.
		$response = $this->client->get((string) $uri);

		// Validate the response code.
		if ($response->code != 200)
		{
			// Decode the error response and throw an exception.
			$error = json_decode($response->body);
			throw new \DomainException($error->message, $response->code);
		}

		return json_decode($response->body);
	}
public function getListByRepository ( $ user , $ repo , $ milestone = null , $ state = null , $ assignee = null , $ mentioned = null , $ labels = null , $ sort = null , $ direction = null , Date $ since = null , $ page = 0 , $ limit = 0 ) { // Build the request path. $ path = '/repos/' . $ user . '/' . $ repo . '/issues' ; $ uri = new Uri ( $ this -> fetchUrl ( $ path , $ page , $ limit ) ) ; if ( $ milestone ) { $ uri -> setVar ( 'milestone' , $ milestone ) ; } if ( $ state ) { $ uri -> setVar ( 'state' , $ state ) ; } if ( $ assignee ) { $ uri -> setVar ( 'assignee' , $ assignee ) ; } if ( $ mentioned ) { $ uri -> setVar ( 'mentioned' , $ mentioned ) ; } if ( $ labels ) { $ uri -> setVar ( 'labels' , $ labels ) ; } if ( $ sort ) { $ uri -> setVar ( 'sort' , $ sort ) ; } if ( $ direction ) { $ uri -> setVar ( 'direction' , $ direction ) ; } if ( $ since ) { $ uri -> setVar ( 'since' , $ since -> toISO8601 ( ) ) ; } // Send the request. $ response = $ this -> client -> get ( ( string ) $ uri ) ; // Validate the response code. if ( $ response -> code != 200 ) { // Decode the error response and throw an exception. $ error = json_decode ( $ response -> body ) ; throw new \ DomainException ( $ error -> message , $ response -> code ) ; } return json_decode ( $ response -> body ) ; }
Method to list issues.

@param   string   $user       The name of the owner of the GitHub repository.
@param   string   $repo       The name of the GitHub repository.
@param   string   $milestone  The milestone number, 'none', or *.
@param   string   $state      The optional state to filter requests by. [open, closed]
@param   string   $assignee   The assignee name, 'none', or *.
@param   string   $mentioned  The GitHub user name.
@param   string   $labels     The list of comma separated Label names. Example: bug,ui,@high.
@param   string   $sort       The sort order: created, updated, comments, default: created.
@param   string   $direction  The list direction: asc or desc, default: desc.
@param   Date     $since      The date/time since when issues should be returned.
@param   integer  $page       The page number from which to get items.
@param   integer  $limit      The number of items on a page.

@return  object

@since   1.0
@throws  \DomainException
Method to list issues .