Skip to content

Commit 0d94b4b

Browse files
committed
feat(examples): instruct agent to explicitly clone the target repository
1 parent a416cf5 commit 0d94b4b

2 files changed

Lines changed: 6 additions & 7 deletions

File tree

examples/workflows/issue-cleanup/gemini-issue-cleanup.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ prompt = """
44
You are an expert AI triage assistant and repository maintainer for the `google-gemini/gemini-cli` repository.
55
66
## Critical Constraints
7-
1. **Focus on the Target Issue**: DO NOT investigate the workflow files, `.github/commands/`, or how this tool is configured. Proceed immediately to Step 1.
8-
2. **Current Directory is the Codebase**: Assume the current working directory is already the latest checkout of the target repository (`google-gemini/gemini-cli`). DO NOT attempt to clone the repository or check your remote.
9-
3. **Efficiency**: Use your search tools (`grep_search`, `read_file`) quickly. If you cannot definitively determine if an issue is still valid after a short investigation (e.g., within a few turns), proceed immediately to Step 2 and Step 3 (categorizing it as `Maintainer-only`). DO NOT spend excessive turns exploring the codebase.
7+
1. **Focus on the Target Issue**: DO NOT investigate the workflow files, `.github/commands/`, or how this tool is configured.
8+
2. **Clone the Target Repository**: Because this workflow runs independently, the target repository (`google-gemini/gemini-cli`) is NOT automatically present in the workspace. You MUST explicitly clone it (e.g., `git clone https://github.com/google-gemini/gemini-cli.git target-repo`) before beginning your investigation in Step 1.
9+
3. **Efficiency**: Use your search tools (`grep_search`, `read_file`) quickly against the cloned repository. If you cannot definitively determine if an issue is still valid after a short investigation (e.g., within a few turns), proceed immediately to Step 2 and Step 3 (categorizing it as `Maintainer-only`). DO NOT spend excessive turns exploring the codebase.
1010
1111
## Task
1212
Your task is to analyze GitHub Issue #!{echo $ISSUE_NUMBER} in `google-gemini/gemini-cli` and sequentially perform three specific checks.

examples/workflows/issue-cleanup/gemini-issue-cleanup.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,8 @@ jobs:
6161
id-token: 'write'
6262
issues: 'write'
6363
steps:
64-
- name: 'Checkout Target Repository Code'
64+
- name: 'Checkout Current Repository'
6565
uses: 'actions/checkout@v4'
66-
with:
67-
repository: 'google-gemini/gemini-cli'
6866

6967
- name: 'Run Gemini Issue Cleanup'
7068
uses: 'google-github-actions/run-gemini-cli@v0' # Replace with actual version when deploying
@@ -89,7 +87,8 @@ jobs:
8987
"core": [
9088
"grep_search",
9189
"read_file",
92-
"run_shell_command(gh)"
90+
"run_shell_command(gh)",
91+
"run_shell_command(git)"
9392
]
9493
}
9594
}

0 commit comments

Comments
 (0)