-
Notifications
You must be signed in to change notification settings - Fork 116
Open
Labels
area/qualityTracks quality issuesTracks quality issuesarea/workflowskind/bugSomething isn't workingSomething isn't workingpriority/p1Important and should be addressed in the near termImportant and should be addressed in the near term
Milestone
Description
TL;DR
Description
The google-github-actions/run-gemini-cli@v0
action is failing to fetch pull request data for the correct repository and PR number, instead trying fallback PRs (1–6) and returning 404 errors.
Reproduction Steps
- Use Gemini workflow on
pull_request
event, triggered for PR # inamber-ml/amber-ml
. - Workflow log shows:
Then Gemini tries PRs 1 through 6 and finally saysunable to proceed with the code review
.
Expected behavior
Gemini should fetch and review the exact PR it was triggered for—no arbitrary probing of PRs 1–6.
Observed behavior
Gemini disregards correct PULL_REQUEST_NUMBER
and REPOSITORY
, instead attempting PRs 1–6, all of which fail with 404.
Action YAML
jobs:
gemini-code-review:
runs-on: ...
env:
PULL_REQUEST_NUMBER: ${{ github.event.number }}
REPOSITORY: ${{ github.repository }}
steps:
- uses: google-github-actions/run-gemini-cli@v0
with:
gemini_cli_version: ${{ vars.GEMINI_CLI_VERSION }}
gemini_api_key: ${{ secrets.GEMINI_API }}
use_vertex_ai: false
use_gemini_code_assist: false
settings: |
{ ... }
prompt: |
Review this PR...
Log output
Warning: Unexpected input(s) 'google_api_key', 'gemini_debug'
Error executing tool get_pull_request: ... pulls/<actual-number>: 404 Not Found
... retries PRs 1–6 with the same error
Additional information
No response
x0x0b, michaelirey and tleonhardt
Metadata
Metadata
Assignees
Labels
area/qualityTracks quality issuesTracks quality issuesarea/workflowskind/bugSomething isn't workingSomething isn't workingpriority/p1Important and should be addressed in the near termImportant and should be addressed in the near term