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
26 lines
708 B
PowerShell
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
|