mirror of
https://github.com/github/spec-kit.git
synced 2026-08-15 14:02:04 +02:00
23 lines
971 B
Bash
23 lines
971 B
Bash
#!/usr/bin/env bash
|
|||
|
|
# update-context.sh — Copilot integration: create/update .github/copilot-instructions.md
|
||
|
|
#
|
||
|
|
# This is the copilot-specific implementation that produces the GitHub
|
||
|
|
# Copilot instructions file. The shared dispatcher reads
|
||
|
|
# .specify/integration.json and calls this script.
|
||
|
|
#
|
||
|
|
# NOTE: This script is not yet active. It will be activated in Stage 7
|
||
|
|
# when the shared update-agent-context.sh replaces its case statement
|
||
|
|
# with integration.json-based dispatch. The shared script must also be
|
||
|
|
# refactored to support SPECKIT_SOURCE_ONLY (guard the main logic)
|
||
|
|
# before sourcing will work.
|
||
|
|
#
|
||
|
|
# Until then, this delegates to the shared script as a subprocess.
|
||
|
|
|
||
|
|
set -euo pipefail
|
||
|
|
|
||
|
|
REPO_ROOT="${REPO_ROOT:-$(git rev-parse --show-toplevel 2>/dev/null || pwd)}"
|
||
|
|
|
||
|
|
# Invoke shared update-agent-context script as a separate process.
|
||
|
|
# Sourcing is unsafe until that script guards its main logic.
|
||
|
|
exec "$REPO_ROOT/.specify/scripts/bash/update-agent-context.sh" copilot
|