Skip to content

Commit 6053be9

Browse files
committed
added create organization
1 parent 33b4b6a commit 6053be9

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

lib/Github/Api/Organization.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,20 @@ public function createRepo($organization, array $params)
5252
{
5353
return $this->post('/orgs/'.rawurlencode($organization).'/repos', $params);
5454
}
55+
/**
56+
* create organization
57+
*
58+
* @param string $login organization name
59+
* @param string $admin GitHub username
60+
* @param string $profile_name Optional
61+
*
62+
* @return array the repositories
63+
*/
64+
public function createOrganization( array $params)
65+
{
66+
67+
return $this->post('/admin/organizations', $params);
68+
}
5569
/**
5670
* List all repositories across all the organizations that you can access.
5771
*

0 commit comments

Comments
 (0)