Skip to content

Commit 1fd0bd3

Browse files
committed
Add in ability to restrict Member list by role.
1 parent b1ba871 commit 1fd0bd3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/Github/Api/Organization/Members.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*/
1111
class Members extends AbstractApi
1212
{
13-
public function all($organization, $type = null, $filter = 'all')
13+
public function all($organization, $type = null, $filter = 'all', $role = null)
1414
{
1515
$parameters = array();
1616
$path = 'orgs/'.rawurlencode($organization).'/';
@@ -19,6 +19,9 @@ public function all($organization, $type = null, $filter = 'all')
1919
if (null !== $filter) {
2020
$parameters['filter'] = $filter;
2121
}
22+
if (null !== $role) {
23+
$parameters['role'] = $role;
24+
}
2225
} else {
2326
$path .= 'public_members';
2427
}

0 commit comments

Comments
 (0)