Description Usage Arguments Details Value Examples
This function creates a new team in the specified organization in GitHub. It can also be used to specify the maintainers, the repositories to add the team to and a parent team.
1 2 3 4 5 6 7 8 9 10 | create_team(
name,
org,
description,
maintainers,
repo_names,
privacy,
parent_team,
...
)
|
name |
(string) The name of the team. |
org |
(string) The login of the organization. |
description |
(string, optional) The description of the team. |
maintainers |
(character, optional) The logins of organization members to add as maintainers of the team. If you do not specify any maintainers, then you will automatically become a team maintainer when you create a new team. |
repo_names |
(character, optional) The full name (e.g. "organization-name/repository-name") of repositories to add the team to. |
privacy |
(string, optional) The level of privacy this team should have. The options are: For a non-nested team:
Default: For a parent or child team:
Default for child team: |
parent_team |
(integer or string, optional) The ID or name of a team to set as the parent team. |
... |
Parameters passed to |
For more details see the GitHub API documentation:
create_team()
returns a list of the team's properties.
Team Properties:
id: The ID of the team.
name: The name of the team.
organization: The organization the team is associated with.
slug: The team slug name.
description: The description of the team.
privacy: The privacy setting of the team - either "closed" or "secret".
permission: The default repository permissions of the team.
parent: The parent team.
members_count: The number of members.
repos_count: The number of repositories the team has access to.
created_at: When it was created.
updated_at: When it was last updated.
html_url: The URL of the team page in GitHub
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | ## Not run:
# Create a team in an organization
create_team("TestTeam", "HairyCoos")
# Create a team and specify maintainers
create_team(
name = "TestTeam2",
org = "HairyCoos",
maintainers = c("ChadGoymer", "chris-walker1")
)
# Create a team and set the privacy
create_team("TestTeam3", "HairyCoos", privacy = "closed")
# Create a team and specify a parent team
create_team("TestTeam4", "HairyCoos", parent_team = "TestTeam3")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.