Skip to content

Commit

Permalink
Add functionality for Organization:Issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Karin van den Berg committed Aug 6, 2015
1 parent 93684a1 commit 3bff763
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions lib/Github/Api/Organization.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,18 @@ public function teams()
{
return new Teams($this->client);
}

/**
* @link http://developer.github.com/v3/issues/#list-issues
*
* @param $organization
* @param array $params
* @param int $page
*
* @return array
*/
public function issues($organization, array $params = array(), $page = 1)
{
return $this->get('orgs/'.rawurlencode($organization).'/issues', array_merge(array('page' => $page), $params));
}
}

0 comments on commit 3bff763

Please sign in to comment.