mirror of
https://github.com/vczh-libraries/Release.git
synced 2026-03-23 07:42:52 +08:00
13 lines
556 B
PowerShell
13 lines
556 B
PowerShell
# Prepare Copilot review files
|
|
|
|
$taskLogsDir = "$PSScriptRoot\..\TaskLogs"
|
|
|
|
# Delete all Copilot_Review_Finished_*.md files
|
|
Remove-Item -Path "$taskLogsDir\Copilot_Review_Finished_*.md" -Force -ErrorAction SilentlyContinue
|
|
|
|
# Rename all Copilot_Review_Writing_*.md files to Copilot_Review_Finished_*.md
|
|
Get-ChildItem -Path "$taskLogsDir\Copilot_Review_Writing_*.md" -ErrorAction SilentlyContinue | ForEach-Object {
|
|
$newName = $_.Name -replace '^Copilot_Review_Writing_', 'Copilot_Review_Finished_'
|
|
Rename-Item -Path $_.FullName -NewName $newName
|
|
}
|