Skip to content

Commit 8080a1c

Browse files
committed
Add in ability to get a user's membership status within an organization.
1 parent 1fd0bd3 commit 8080a1c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/Github/Api/Organization/Members.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ public function show($organization, $username)
3434
return $this->get('orgs/'.rawurlencode($organization).'/members/'.rawurlencode($username));
3535
}
3636

37+
public function member($organization, $username)
38+
{
39+
return $this->get('orgs/'.rawurlencode($organization).'/memberships/'.rawurlencode($username));
40+
}
41+
3742
public function check($organization, $username)
3843
{
3944
return $this->get('orgs/'.rawurlencode($organization).'/public_members/'.rawurlencode($username));

0 commit comments

Comments
 (0)