A Team allows scoping of API requests to a particular Github Organization Team.
Create a Team.
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
teamId | string | <optional> | the id for the team | |
auth | Requestable.auth | <optional> | information required to authenticate to Github | |
apiBase | string | <optional> | https://api.github.com | the base Github API URL |
Add a member to the Team
| Name | Type | Attributes | Description | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
username | string | can be one of: | |||||||||||
options | object | Parameters for adding a team member Properties
| |||||||||||
cb | Requestable.callback | <optional> | will receive the membership status of added user |
Delete Team
| Name | Type | Attributes | Description |
|---|---|---|---|
cb | Requestable.callback | <optional> | will receive the list of repositories |
Edit Team information
| Name | Type | Attributes | Description | |||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options | object | Parameters for team edit Properties
| ||||||||||||||||||||||||||
cb | Requestable.callback | <optional> | will receive the updated team |
Get Team membership status for a user
| Name | Type | Attributes | Description |
|---|---|---|---|
username | string | can be one of: | |
cb | Requestable.callback | <optional> | will receive the membership status of a user |
Get Team information
| Name | Type | Attributes | Description |
|---|---|---|---|
cb | Requestable.callback | <optional> | will receive the team |
Get repo management status for team
| Name | Type | Attributes | Description |
|---|---|---|---|
owner | string | Organization name | |
repo | string | Repo name | |
cb | Requestable.callback | <optional> | will receive the membership status of added user |
List the users who are members of the Team
| Name | Type | Attributes | Description | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options | object | Parameters for listing team users Properties
| |||||||||||
cb | Requestable.callback | <optional> | will receive the list of users |
List the Team's repositories
| Name | Type | Attributes | Description |
|---|---|---|---|
cb | Requestable.callback | <optional> | will receive the list of repositories |
Add or Update repo management status for team
| Name | Type | Attributes | Description | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
owner | string | Organization name | |||||||||
repo | string | Repo name | |||||||||
options | object | Parameters for adding or updating repo management for the team Properties
| |||||||||
cb | Requestable.callback | <optional> | will receive the membership status of added user |
Remove repo management status for team
| Name | Type | Attributes | Description |
|---|---|---|---|
owner | string | Organization name | |
repo | string | Repo name | |
cb | Requestable.callback | <optional> | will receive the membership status of added user |