diff --git a/.claude/commands/iterate.md b/.claude/commands/iterate.md index f8c2ccce..95875d6b 100644 --- a/.claude/commands/iterate.md +++ b/.claude/commands/iterate.md @@ -110,7 +110,7 @@ Run `git commit` with a message in the format: `learn(iterate): YYYY-MM-DD — < Then check for an existing open PR on branch `iterate/current`: ```bash -EXISTING=$(gh pr list --head iterate/current --state open --json number --jq '.[0].number // empty') +EXISTING=$(gh pr list --repo Aitous/TradingAgents --head iterate/current --state open --json number --jq '.[0].number // empty') ``` If one exists: push to that branch and update the PR description with your findings appended. @@ -119,6 +119,7 @@ If none exists: create branch `iterate/current`, push, open PR against `main`: git checkout -b iterate/current git push -u origin iterate/current gh pr create \ + --repo Aitous/TradingAgents \ --title "learn(iterate): automated improvements — $(date +%Y-%m-%d)" \ --body "$(cat docs/iterations/LEARNINGS.md)" \ --label "automated,iteration" \ diff --git a/.claude/commands/research-strategy.md b/.claude/commands/research-strategy.md index 5563f2f0..6219a358 100644 --- a/.claude/commands/research-strategy.md +++ b/.claude/commands/research-strategy.md @@ -160,13 +160,13 @@ Run `git commit` with a message in the format: Then check for an existing open PR on branch `research/current`: ```bash -EXISTING=$(gh pr list --head research/current --state open --json number --jq '.[0].number // empty') +EXISTING=$(gh pr list --repo Aitous/TradingAgents --head research/current --state open --json number --jq '.[0].number // empty') ``` If one exists: ```bash git push origin HEAD:research/current -gh pr edit "$EXISTING" \ +gh pr edit "$EXISTING" --repo Aitous/TradingAgents \ --body "$(cat docs/iterations/LEARNINGS.md | head -30)" ``` @@ -175,6 +175,7 @@ If none exists: git checkout -b research/current git push -u origin research/current gh pr create \ + --repo Aitous/TradingAgents \ --title "research: new strategy findings — $(date +%Y-%m-%d)" \ --body "$(cat docs/iterations/LEARNINGS.md | head -30)" \ --label "automated,research" \ diff --git a/.github/workflows/iterate.yml b/.github/workflows/iterate.yml index c795670d..dd7d9970 100644 --- a/.github/workflows/iterate.yml +++ b/.github/workflows/iterate.yml @@ -81,6 +81,7 @@ jobs: SEPARATOR="---" EXISTING_PR=$(gh pr list \ + --repo Aitous/TradingAgents \ --head "$BRANCH" \ --state open \ --json number \ @@ -96,7 +97,7 @@ jobs: echo "$SEPARATOR" echo "*Last updated: ${DATE} by automated iterate workflow*" } > /tmp/pr_body.md - gh pr edit "$EXISTING_PR" --body-file /tmp/pr_body.md + gh pr edit "$EXISTING_PR" --repo Aitous/TradingAgents --body-file /tmp/pr_body.md echo "Updated existing PR #${EXISTING_PR}" else git checkout -b "$BRANCH" 2>/dev/null || git checkout "$BRANCH" @@ -108,9 +109,10 @@ jobs: echo "*Opened: ${DATE} by automated iterate workflow*" echo "*Merge to apply learnings and reset the iteration cycle.*" } > /tmp/pr_body.md - gh label create "automated" --color "0075ca" --description "Automated workflow" 2>/dev/null || true - gh label create "iteration" --color "e4e669" --description "Iteration system" 2>/dev/null || true + gh label create "automated" --color "0075ca" --description "Automated workflow" --repo Aitous/TradingAgents 2>/dev/null || true + gh label create "iteration" --color "e4e669" --description "Iteration system" --repo Aitous/TradingAgents 2>/dev/null || true gh pr create \ + --repo Aitous/TradingAgents \ --title "learn(iterate): automated improvements — ${DATE}" \ --body-file /tmp/pr_body.md \ --label "automated,iteration" \ diff --git a/.github/workflows/research-strategy.yml b/.github/workflows/research-strategy.yml index 5bff9033..4826a175 100644 --- a/.github/workflows/research-strategy.yml +++ b/.github/workflows/research-strategy.yml @@ -89,6 +89,7 @@ jobs: SEPARATOR="---" EXISTING_PR=$(gh pr list \ + --repo Aitous/TradingAgents \ --head "$BRANCH" \ --state open \ --json number \ @@ -103,7 +104,7 @@ jobs: echo "$SEPARATOR" echo "*Last updated: ${DATE} by automated research-strategy workflow*" } > /tmp/pr_body.md - gh pr edit "$EXISTING_PR" --body-file /tmp/pr_body.md + gh pr edit "$EXISTING_PR" --repo Aitous/TradingAgents --body-file /tmp/pr_body.md echo "Updated existing PR #${EXISTING_PR}" else git checkout -b "$BRANCH" 2>/dev/null || git checkout "$BRANCH" @@ -115,9 +116,10 @@ jobs: echo "*Opened: ${DATE} by automated research-strategy workflow*" echo "*Merge to apply research findings and reset the research cycle.*" } > /tmp/pr_body.md - gh label create "automated" --color "0075ca" --description "Automated workflow" 2>/dev/null || true - gh label create "research" --color "d93f0b" --description "Research findings" 2>/dev/null || true + gh label create "automated" --color "0075ca" --description "Automated workflow" --repo Aitous/TradingAgents 2>/dev/null || true + gh label create "research" --color "d93f0b" --description "Research findings" --repo Aitous/TradingAgents 2>/dev/null || true gh pr create \ + --repo Aitous/TradingAgents \ --title "research: new strategy findings — ${DATE}" \ --body-file /tmp/pr_body.md \ --label "automated,research" \