File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
lib/Github/Api/Organization Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -44,11 +44,6 @@ public function check($organization, $username)
4444 return $ this ->get ('/orgs/ ' .rawurlencode ($ organization ).'/public_members/ ' .rawurlencode ($ username ));
4545 }
4646
47- public function addMember ($ organization , $ username )
48- {
49- return $ this ->put ('/orgs/ ' .rawurlencode ($ organization ).'/memberships/ ' .rawurlencode ($ username ));
50- }
51-
5247 public function publicize ($ organization , $ username )
5348 {
5449 return $ this ->put ('/orgs/ ' .rawurlencode ($ organization ).'/public_members/ ' .rawurlencode ($ username ));
@@ -67,6 +62,11 @@ public function add($organization, $username)
6762 return $ this ->put ('/orgs/ ' .rawurlencode ($ organization ).'/memberships/ ' .rawurlencode ($ username ));
6863 }
6964
65+ public function addMember ($ organization , $ username )
66+ {
67+ return $ this ->add ($ organization , $ username );
68+ }
69+
7070 public function remove ($ organization , $ username )
7171 {
7272 return $ this ->delete ('/orgs/ ' .rawurlencode ($ organization ).'/members/ ' .rawurlencode ($ username ));
You can’t perform that action at this time.
0 commit comments