Skip to content

Commit a1b68c1

Browse files
committed
Add PassThru to Rename-GitHubTeam
1 parent e426678 commit a1b68c1

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

GitHubTeams.ps1

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -714,6 +714,11 @@ filter Rename-GitHubTeam
714714
.PARAMETER NewTeamName
715715
The new name for the team.
716716
717+
.PARAMETER PassThru
718+
Returns the updated GitHub Team. By default, this cmdlet does not generate any output.
719+
You can use "Set-GitHubConfiguration -DefaultPassThru" to control the default behavior
720+
of this switch.
721+
717722
.PARAMETER AccessToken
718723
If provided, this will be used as the AccessToken for authentication with the
719724
REST Api. Otherwise, will attempt to use the configured value or will run unauthenticated.
@@ -774,6 +779,8 @@ filter Rename-GitHubTeam
774779
[ValidateNotNullOrEmpty()]
775780
[string] $NewTeamName,
776781

782+
[switch] $PassThru,
783+
777784
[string] $AccessToken
778785
)
779786

@@ -789,6 +796,7 @@ filter Rename-GitHubTeam
789796
OrganizationName = $OrganizationName
790797
TeamSlug = $TeamSlug
791798
TeamName = $NewTeamName
799+
PassThru = (Resolve-ParameterWithDefaultConfigurationValue -Name PassThru -ConfigValueName DefaultPassThru)
792800
AccessToken = $AccessToken
793801
}
794802

0 commit comments

Comments
 (0)