Skip to content

Commit 6a52b49

Browse files
committed
fix: Nudge agent to only create issues in relevant repos
1 parent 7a46cdd commit 6a52b49

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/agent-automation.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ jobs:
7575
settings: |
7676
{
7777
"env": {
78+
"TARGET_REPO_OWNER": "${{ matrix.owner }}",
79+
"TARGET_REPO_NAME": "${{ matrix.repo }}",
7880
"TRACE_TO_BRAINTRUST": "true",
7981
"BRAINTRUST_CC_PROJECT": "${{ vars.BRAINTRUST_CC_PROJECT }}",
8082
"BRAINTRUST_API_KEY": "${{ secrets.BRAINTRUST_API_KEY }}"
@@ -101,6 +103,9 @@ jobs:
101103
3. Compare current upstream capabilities to current Braintrust instrumentation in this repo.
102104
4. Always check the latest Braintrust docs at https://www.braintrust.dev/docs before deciding how to describe a gap.
103105
5. Search existing GitHub issues for duplicates before creating anything.
106+
- Only search in `TARGET_REPO_OWNER/TARGET_REPO_NAME`.
107+
- For every GitHub MCP tool call (`mcp__github__search_issues`, `mcp__github__list_issues`, `mcp__github__get_issue`, `mcp__github__get_issue_comments`, `mcp__github__create_issue`), explicitly pass owner=`TARGET_REPO_OWNER` and repo=`TARGET_REPO_NAME`. `TARGET_REPO_OWNER` and `TARGET_REPO_NAME` are environment variables.
108+
- Never query or create issues in the repository running this workflow.
104109
6. Only act on high-confidence, concrete gaps tied to missing APIs, unsupported call patterns, or missing instrumentation detail.
105110
106111
# Examples

0 commit comments

Comments
 (0)