Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
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
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
```

.EXAMPLE
Get-GitHubUserCard -Username 'octocat' -SubjectType 'repository' -SubjectID 1300192

.NOTES
[Get contextual information for a user](https://docs.github.com/rest/users/users#get-contextual-information-for-a-user)
#>
#SkipTest:FunctionTest:Will add a test for this function in a future PR
[OutputType([pscustomobject])]
[CmdletBinding()]
param(
Expand Down
1 change: 1 addition & 0 deletions src/functions/public/Auth/Connect-GitHubApp.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
.NOTES
[Authenticating to the REST API](https://docs.github.com/rest/overview/other-authentication-methods#authenticating-for-saml-sso)
#>
#SkipTest:FunctionTest:Will add a test for this function in a future PR
[OutputType([void])]
[Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSAvoidUsingWriteHost', '', Justification = 'Is the CLI part of the module.')]
[Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSAvoidUsingConvertToSecureStringWithPlainText', '',
Expand Down
5 changes: 2 additions & 3 deletions src/functions/public/Users/Get-GitHubUser.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,13 @@
.NOTES
[Get the authenticated user](https://docs.github.com/rest/users/users)
#>
#SkipTest:FunctionTest:Will add a test for this function in a future PR
[OutputType([pscustomobject])]
[Diagnostics.CodeAnalysis.SuppressMessageAttribute(
'PSReviewUnusedParameter',
'All',
Justification = 'Parameter is used in dynamic parameter validation.'
)]
[CmdletBinding(DefaultParameterSetName = '__DefaultSet')]
[CmdletBinding(DefaultParameterSetName = '__AllParameterSets')]
param(
# The handle for the GitHub user account.
[Parameter(
Expand Down Expand Up @@ -75,7 +74,7 @@
process {
try {
switch ($PSCmdlet.ParameterSetName) {
'__DefaultSet' {
'__AllParameterSets' {
$user = Get-GitHubMyUser -Context $Context
$social_accounts = Get-GitHubMyUserSocials -Context $Context
$user | Add-Member -MemberType NoteProperty -Name 'social_accounts' -Value $social_accounts -Force
Expand Down
2 changes: 1 addition & 1 deletion src/functions/public/Users/Set-GitHubUser.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
.NOTES
[Update the authenticated user](https://docs.github.com/rest/users/users#update-the-authenticated-user)
#>
#SkipTest:FunctionTest:Will add a test for this function in a future PR
[OutputType([void])]
[Alias('Update-GitHubUser')]
[CmdletBinding(SupportsShouldProcess)]
Expand Down Expand Up @@ -88,6 +87,7 @@
hireable = $Hireable
bio = $Bio
}
$body | Remove-HashtableEntry -NullOrEmptyValues

$inputObject = @{
Context = $Context
Expand Down
Loading