Initial shared Copilot resources scaffold
This commit is contained in:
10
resources/scripts/report-hook-event.sh
Normal file
10
resources/scripts/report-hook-event.sh
Normal file
@@ -0,0 +1,10 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
state_dir="${COPILOT_RESOURCES_STATE_DIR:-$HOME/.copilot-resources-state}"
|
||||
mkdir -p -- "$state_dir"
|
||||
|
||||
event_payload="$(cat)"
|
||||
printf '%s\n' "$event_payload" >> "$state_dir/hook-events.log"
|
||||
printf '{"continue": true}\n'
|
||||
Reference in New Issue
Block a user