Files
microsoft--powertoys/tools/clear-copilot-context.ps1
wehub-resource-sync 79031da543
Spell checking / Check Spelling (push) Has been cancelled
Spell checking / Update PR (push) Has been cancelled
Publish Dev Docs Website / build (push) Failing after 1s
Publish Dev Docs Website / deploy (push) Has been skipped
Spell checking / Report (Push) (push) Has been cancelled
Spell checking / Report (PR) (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 12:16:02 +08:00

26 lines
708 B
PowerShell

# Clear Copilot context files
# This script removes AGENTS.md and related copilot instruction files
$repoRoot = Split-Path -Parent $PSScriptRoot
if (-not $repoRoot) {
$repoRoot = (Get-Location).Path
}
$filesToRemove = @(
"AGENTS.md",
".github\instructions\runner-settings-ui.instructions.md",
".github\instructions\common-libraries.instructions.md"
)
foreach ($file in $filesToRemove) {
$filePath = Join-Path $repoRoot $file
if (Test-Path $filePath) {
Remove-Item $filePath -Force
Write-Host "Removed: $filePath" -ForegroundColor Green
} else {
Write-Host "Not found: $filePath" -ForegroundColor Yellow
}
}
Write-Host "Done." -ForegroundColor Cyan