Initial shared Copilot resources scaffold
This commit is contained in:
8
resources/scripts/report-hook-event.ps1
Normal file
8
resources/scripts/report-hook-event.ps1
Normal file
@@ -0,0 +1,8 @@
|
||||
$ErrorActionPreference = 'Stop'
|
||||
|
||||
$StateDir = if ($env:COPILOT_RESOURCES_STATE_DIR) { $env:COPILOT_RESOURCES_STATE_DIR } else { Join-Path $HOME '.copilot-resources-state' }
|
||||
New-Item -ItemType Directory -Path $StateDir -Force | Out-Null
|
||||
|
||||
$Payload = [Console]::In.ReadToEnd()
|
||||
$Payload | Add-Content -LiteralPath (Join-Path $StateDir 'hook-events.log')
|
||||
'{"continue": true}'
|
||||
Reference in New Issue
Block a user