Description Usage Arguments Details Value Examples
This function updates a team's properties in GitHub. You can only update a team if you have the appropriate permissions.
1 | update_team(team, name, description, privacy, parent_team, org, ...)
|
team |
(integer or string) The Id or current name of the team. |
name |
(string, optional) The new name of the team. |
description |
(string, optional) The description of the team. |
privacy |
(string, optional) The level of privacy this team should have. Editing teams without specifying this parameter leaves privacy intact. The options are: For a non-nested team:
For a parent or child team:
|
parent_team |
(integer or string, optional) The ID or name of a team to set as the parent team. |
org |
(string, optional) The organization the team is associated with.
Not required if your are specifying |
... |
Parameters passed to |
For more details see the GitHub API documentation:
update_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 | ## Not run:
# Update a team
update_team(
team = "TestTeam",
description = "This is a test team",
privacy = "closed",
parent_team = "TestTeam3",
org = "HairyCoos"
)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.