From 1a1196ff0815b9bb400d4c12e93389807393ee6f Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Sat, 28 Oct 2023 00:05:07 +0200 Subject: [PATCH] Fix --- ...{Add-GitHubUserSocials.ps1 => Add-GitHubUserSocial.ps1} | 5 +++-- ...e-GitHubUserSocials.ps1 => Remove-GitHubUserSocial.ps1} | 7 ++++--- 2 files changed, 7 insertions(+), 5 deletions(-) rename src/GitHub/public/Users/Social-Accounts/{Add-GitHubUserSocials.ps1 => Add-GitHubUserSocial.ps1} (83%) rename src/GitHub/public/Users/Social-Accounts/{Remove-GitHubUserSocials.ps1 => Remove-GitHubUserSocial.ps1} (84%) diff --git a/src/GitHub/public/Users/Social-Accounts/Add-GitHubUserSocials.ps1 b/src/GitHub/public/Users/Social-Accounts/Add-GitHubUserSocial.ps1 similarity index 83% rename from src/GitHub/public/Users/Social-Accounts/Add-GitHubUserSocials.ps1 rename to src/GitHub/public/Users/Social-Accounts/Add-GitHubUserSocial.ps1 index 89cfdcdd..202e1ebb 100644 --- a/src/GitHub/public/Users/Social-Accounts/Add-GitHubUserSocials.ps1 +++ b/src/GitHub/public/Users/Social-Accounts/Add-GitHubUserSocial.ps1 @@ -1,4 +1,4 @@ -filter Add-GitHubUserSocials { +filter Add-GitHubUserSocial { <# .SYNOPSIS Add social accounts for the authenticated user @@ -7,7 +7,7 @@ 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. @@ -15,6 +15,7 @@ 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. diff --git a/src/GitHub/public/Users/Social-Accounts/Remove-GitHubUserSocials.ps1 b/src/GitHub/public/Users/Social-Accounts/Remove-GitHubUserSocial.ps1 similarity index 84% rename from src/GitHub/public/Users/Social-Accounts/Remove-GitHubUserSocials.ps1 rename to src/GitHub/public/Users/Social-Accounts/Remove-GitHubUserSocial.ps1 index 4e1aabd0..3368f39e 100644 --- a/src/GitHub/public/Users/Social-Accounts/Remove-GitHubUserSocials.ps1 +++ b/src/GitHub/public/Users/Social-Accounts/Remove-GitHubUserSocial.ps1 @@ -1,4 +1,4 @@ -filter Remove-GitHubUserSocials { +filter Remove-GitHubUserSocial { <# .SYNOPSIS Delete social accounts for the authenticated user @@ -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. @@ -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 }