Skip to content

Commit 0ad6813

Browse files
authored
fix(ci): correct github_pr_number fallback and action versions in gemini-review workflow (#120)
1 parent 135054f commit 0ad6813

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

.github/workflows/gemini-review.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
permission-pull-requests: 'write'
4040

4141
- name: 'Checkout repository'
42-
uses: 'actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8' # ratchet:actions/checkout@v6
42+
uses: 'actions/checkout@v4' # ratchet:exclude
4343

4444
- name: 'Run Gemini pull request review'
4545
uses: 'google-github-actions/run-gemini-cli@v0' # ratchet:exclude
@@ -67,7 +67,7 @@ jobs:
6767
upload_artifacts: '${{ vars.UPLOAD_ARTIFACTS }}'
6868
workflow_name: 'gemini-review'
6969
# Explicitly set the PR number to handle `issue_comment` triggers (which GitHub treats as issues, not PRs)
70-
github_pr_number: '${{ github.event.pull_request.number }}'
70+
github_pr_number: '${{ github.event.pull_request.number || github.event.issue.number }}'
7171
settings: |-
7272
{
7373
"model": {
@@ -109,8 +109,4 @@ jobs:
109109
]
110110
}
111111
}
112-
extensions: |
113-
[
114-
"https://github.com/gemini-cli-extensions/code-review"
115-
]
116-
prompt: '/pr-code-review'
112+
prompt: 'Please use the pull_request_read tool to read this PR. Analyze the code for bugs, security issues, and best practices. Then, use the add_comment_to_pending_review and pull_request_review_write tools to post your review directly.'

0 commit comments

Comments
 (0)