Skip to content

Commit da23ee1

Browse files
🪲 [Fix] Connect-GitHubAccount Write-Warning with foregroundColor (#91)
## Description - Fixed an issue where `Connect-GitHubAccount` would run Write-Warning with a `ForegroundColor` parameter. Change to `Write-Host`. ## Type of change <!-- Use the check-boxes [x] on the options that are relevant. --> - [ ] 📖 [Docs] - [x] 🪲 [Fix] - [ ] 🩹 [Patch] - [ ] ⚠️ [Security fix] - [ ] 🚀 [Feature] - [ ] 🌟 [Breaking change] ## Checklist <!-- Use the check-boxes [x] on the options that are relevant. --> - [x] I have performed a self-review of my own code - [x] I have commented my code, particularly in hard-to-understand areas
1 parent e06ab4f commit da23ee1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/GitHub/public/Auth/Connect-GitHubAccount.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,8 @@
183183
$accessTokenValue = Read-Host -Prompt 'Enter your personal access token' -AsSecureString
184184
$accessTokenType = (ConvertFrom-SecureString $accessTokenValue -AsPlainText) -replace '_.*$', '_*'
185185
if ($accessTokenType -notmatch '^ghp_|^github_pat_') {
186-
Write-Warning '' -ForegroundColor Yellow -NoNewline
187-
Write-Warning "Unexpected access token format: $accessTokenType"
186+
Write-Host '' -ForegroundColor Yellow -NoNewline
187+
Write-Host "Unexpected access token format: $accessTokenType"
188188
}
189189
$settings = @{
190190
AccessToken = $accessTokenValue

0 commit comments

Comments
 (0)