-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathralph.sh
More file actions
35 lines (32 loc) · 808 Bytes
/
ralph.sh
File metadata and controls
35 lines (32 loc) · 808 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/bash
set -e
echo "Ralph Wiggum Loop - Continuous Build"
echo "====================================="
echo "Starting GitHub Copilot build loop..."
echo "Press Ctrl+C to stop"
# read issue number from --issue argument
issueNumber=""
while [[ "$1" == --* ]]; do
case "$1" in
--issue)
shift
issueNumber="$1"
;;
*)
echo "Unknown option: $1"
exit 1
;;
esac
shift
done
while :; do
echo ""
echo "=== New Loop Iteration ==="
date
prompt=$(cat PROMPT_BUILD.md)
# replace $issueNumber with the actual issue number in the prompt
prompt=${prompt//\$issueNumber/$issueNumber}
copilot --yolo -p "$prompt" --autopilot
echo "Loop iteration complete. Sleeping 5s..."
sleep 5
done