Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions src/functions/public/Teams/New-GitHubTeam.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,18 @@
`maintainers`. For more information, see
"[About teams](https://docs.github.com/github/setting-up-and-managing-organizations-and-teams/about-teams)".

.EXAMPLE
$params = @{
Organization = 'github'
Name = 'team-name'
Description = 'A new team'
Maintainers = 'octocat'
RepoNames = 'github/octocat'
Privacy = 'closed'
Permission = 'pull'
}
New-GitHubTeam @params

.NOTES
[Create a team](https://docs.github.com/rest/teams/teams#create-a-team)
#>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
If you are an organization owner, deleting a parent team will delete all of its child teams as well.

.EXAMPLE
An example
Remove-GitHubTeam -Organization 'github' -Name 'team-name'

.NOTES
[Delete a team](https://docs.github.com/en/rest/teams/teams?apiVersion=2022-11-28#delete-a-team)
Expand Down
12 changes: 11 additions & 1 deletion src/functions/public/Teams/Update-GitHubTeam.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,17 @@
To edit a team, the authenticated user must either be an organization owner or a team maintainer.

.EXAMPLE

$params = @{
Organization = 'github'
Name = 'team-name'
NewName = 'new-team-name'
Description = 'A new team'
Privacy = 'closed'
NotificationSetting = 'notifications_enabled'
Permission = 'pull'
ParentTeamID = 123456
}
Update-GitHubTeam @params

.NOTES
[Update a team](https://docs.github.com/en/rest/teams/teams?apiVersion=2022-11-28#update-a-team)
Expand Down