git-subtree-dir: .vendor/myagent-kit git-subtree-split: 3e45f3fb102e71d5127366f2fc675eaadc3927da
20 lines
815 B
Bash
Executable File
20 lines
815 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
KIT_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"
|
|
PROJECT_ROOT="${1:-$(pwd)}"
|
|
|
|
mkdir -p "$PROJECT_ROOT/.github/prompts" \
|
|
"$PROJECT_ROOT/.github/instructions" \
|
|
"$PROJECT_ROOT/.github/ISSUE_TEMPLATE"
|
|
|
|
cp "$KIT_ROOT/base/.github/prompts/"*.prompt.md "$PROJECT_ROOT/.github/prompts/"
|
|
cp "$KIT_ROOT/base/.github/instructions/"*.instructions.md "$PROJECT_ROOT/.github/instructions/"
|
|
cp "$KIT_ROOT/base/.github/ISSUE_TEMPLATE/"*.md "$PROJECT_ROOT/.github/ISSUE_TEMPLATE/"
|
|
if [[ -f "$KIT_ROOT/base/.github/pull_request_template.md" ]]; then
|
|
cp "$KIT_ROOT/base/.github/pull_request_template.md" "$PROJECT_ROOT/.github/pull_request_template.md"
|
|
fi
|
|
|
|
echo "Installed myagent-kit assets into $PROJECT_ROOT/.github"
|