Skip to content

Commit f93b845

Browse files
LeeCampbellclaude
andcommitted
chore: pass issue number argument to devcontainer
Allow run.sh to accept an optional issue number parameter and forward it as the ISSUE_NUMBER environment variable to the Docker container. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 55758c1 commit f93b845

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

scripts/run.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ set -euo pipefail
33

44
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
55
REPO_ROOT="$(realpath "$SCRIPT_DIR/..")"
6+
ISSUE_NUMBER="${1:-}"
67

78
# Load env
89
if [ -f "$REPO_ROOT/autonomous/.env" ]; then
@@ -22,5 +23,6 @@ docker run --rm \
2223
--memory=4g \
2324
--cpus=2 \
2425
--env-file "$REPO_ROOT/autonomous/.env" \
26+
${ISSUE_NUMBER:+-e ISSUE_NUMBER="$ISSUE_NUMBER"} \
2527
-v nuget-cache:/home/agent/.nuget/packages \
2628
hdrhistogram-agent

0 commit comments

Comments
 (0)