Constructor
new Organization(organization, authopt, apiBaseopt)
Create a new Organization
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
organization |
string | the name of the organization |
||
auth |
Requestable.auth |
<optional> |
information required to authenticate to Github |
|
apiBase |
string |
<optional> |
https://api.github.com | the base Github API URL |
- Source:
Methods
createRepo(options, cbopt) → {Promise}
Create a repository in an organization
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
options |
Object | the repository definition |
|
cb |
Requestable.callback |
<optional> |
will receive the created repository |
Returns:
- the promise for the http request
- Type
- Promise
getRepos(cbopt) → {Promise}
List the repositories in an organization
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
cb |
Requestable.callback |
<optional> |
will receive the list of repositories |
- Source:
- See:
Returns:
- the promise for the http request
- Type
- Promise
isMember(username, cbopt) → {Promise}
Query if the user is a member or not
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
username |
string | the user in question |
|
cb |
Requestable.callback |
<optional> |
will receive true if the user is a member |
- Source:
Returns:
- the promise for the http request
- Type
- Promise
listMembers(options, cbopt) → {Promise}
List the users who are members of the company
Parameters:
Name | Type | Attributes | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object | filtering options Properties
|
||||||||||||||||
cb |
Requestable.callback |
<optional> |
will receive the list of users |
Returns:
- the promise for the http request
- Type
- Promise