Skip to content

Commit

Permalink
Enhance verbosity in Set-GitHubContext by formatting context output f…
Browse files Browse the repository at this point in the history
…or improved debugging
  • Loading branch information
MariusStorhaug committed Dec 8, 2024
1 parent c33f075 commit ffbee28
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/functions/public/Auth/Context/Set-GitHubContext.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ function Set-GitHubContext {
}
}
Write-Verbose "Found [$($context['Type'])] with login: [$($context['Name'])]"
$Context | Format-List | Out-String -Stream | ForEach-Object { Write-Verbose $_ }

if ($PSCmdlet.ShouldProcess('Context', 'Set')) {
Set-Context -ID "$($script:GitHub.Config.ID)/$($context['Name'])" -Context $context
Expand Down

0 comments on commit ffbee28

Please sign in to comment.