Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MariusStorhaug committed Oct 27, 2023
1 parent 19d09ad commit 1a1196f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
filter Add-GitHubUserSocials {
filter Add-GitHubUserSocial {
<#
.SYNOPSIS
Add social accounts for the authenticated user
Expand All @@ -7,14 +7,15 @@
Add one or more social accounts to the authenticated user's profile. This endpoint is accessible with the `user` scope.
.EXAMPLE
Add-GitHubUserSocials -AccountUrls 'https://twitter.com/MyTwitterAccount', 'https://www.linkedin.com/company/MyCompany'
Add-GitHubUserSocial -AccountUrls 'https://twitter.com/MyTwitterAccount', 'https://www.linkedin.com/company/MyCompany'
Adds the Twitter and LinkedIn accounts to the authenticated user's profile.
.NOTES
https://docs.github.com/rest/users/social-accounts#add-social-accounts-for-the-authenticated-user
#>
[OutputType([void])]
[Alias('Add-GitHubUserSocials')]
[CmdletBinding()]
param (
# Full URLs for the social media profiles to add.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
filter Remove-GitHubUserSocials {
filter Remove-GitHubUserSocial {
<#
.SYNOPSIS
Delete social accounts for the authenticated user
Expand All @@ -10,12 +10,13 @@
Parameter description
.EXAMPLE
Remove-GitHubUserSocials -AccountUrls 'https://twitter.com/MyTwitterAccount'
Remove-GitHubUserSocial -AccountUrls 'https://twitter.com/MyTwitterAccount'
.NOTES
https://docs.github.com/rest/users/social-accounts#delete-social-accounts-for-the-authenticated-user
#>
[OutputType([void])]
[Alias('Remove-GitHubUserSocials')]
[CmdletBinding(SupportsShouldProcess)]
param (
# Full URLs for the social media profiles to add.
Expand All @@ -32,7 +33,7 @@
Method = 'DELETE'
}

if ($PSCmdlet.ShouldProcess("Social accounts [$($AccountUrls -join ', ')]", "Delete")) {
if ($PSCmdlet.ShouldProcess("Social accounts [$($AccountUrls -join ', ')]", 'Delete')) {
$null = (Invoke-GitHubAPI @inputObject).Response
}

Expand Down

0 comments on commit 1a1196f

Please sign in to comment.