Skip to content

Commit 806455c

Browse files
committed
Add method to add Member to an organization
1 parent 8080a1c commit 806455c

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
@@ -44,6 +44,11 @@ public function check($organization, $username)
4444
return $this->get('orgs/'.rawurlencode($organization).'/public_members/'.rawurlencode($username));
4545
}
4646

47+
public function addMember($team, $username)
48+
{
49+
return $this->put('orgs/'.rawurlencode($team).'/memberships/'.rawurlencode($username));
50+
}
51+
4752
public function publicize($organization, $username)
4853
{
4954
return $this->put('orgs/'.rawurlencode($organization).'/public_members/'.rawurlencode($username));

0 commit comments

Comments
 (0)