fix: target Aitous/TradingAgents repo for all automated PRs

gh pr create/list/edit were defaulting to TauricResearch (upstream).
Added --repo Aitous/TradingAgents to all gh calls in iterate,
research-strategy workflows and slash commands.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Youssef Aitousarrah 2026-04-12 18:53:04 -07:00
parent 2d8b91b709
commit a9389043ac
4 changed files with 15 additions and 9 deletions

View File

@ -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" \

View File

@ -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" \

View File

@ -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" \

View File

@ -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" \