We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4176d3e commit 675b6c1Copy full SHA for 675b6c1
lib/Github/Api/Organization/Members.php
@@ -46,6 +46,14 @@ public function conceal($organization, $username)
46
return $this->delete('orgs/'.rawurlencode($organization).'/public_members/'.rawurlencode($username));
47
}
48
49
+ /*
50
+ * Add user to organization
51
+ */
52
+ public function add($organization, $username)
53
+ {
54
+ return $this->put('orgs/'.rawurlencode($organization).'/memberships/'.rawurlencode($username));
55
+ }
56
+
57
public function remove($organization, $username)
58
{
59
return $this->delete('orgs/'.rawurlencode($organization).'/members/'.rawurlencode($username));
0 commit comments