Skip to content

Commit 0d60fba

Browse files
feat: integrate code review extension in pr review flow
1 parent 9dbec29 commit 0d60fba

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

.github/workflows/gemini-review.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ jobs:
5151
PULL_REQUEST_NUMBER: '${{ github.event.pull_request.number || github.event.issue.number }}'
5252
REPOSITORY: '${{ github.repository }}'
5353
ADDITIONAL_CONTEXT: '${{ inputs.additional_context }}'
54+
GEMINI_API_KEY: '${{ secrets.GEMINI_API_KEY }}'
5455
with:
5556
gcp_location: '${{ vars.GOOGLE_CLOUD_LOCATION }}'
5657
gcp_project_id: '${{ vars.GOOGLE_CLOUD_PROJECT }}'
@@ -106,4 +107,8 @@ jobs:
106107
]
107108
}
108109
}
109-
prompt: '/gemini-review'
110+
extensions: |
111+
[
112+
"https://github.com/gemini-cli-extensions/code-review"
113+
]
114+
prompt: '/code-review pr-review'

examples/workflows/pr-review/gemini-review.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ jobs:
5151
PULL_REQUEST_NUMBER: '${{ github.event.pull_request.number || github.event.issue.number }}'
5252
REPOSITORY: '${{ github.repository }}'
5353
ADDITIONAL_CONTEXT: '${{ inputs.additional_context }}'
54+
GEMINI_API_KEY: '${{ secrets.GEMINI_API_KEY }}'
5455
with:
5556
gcp_location: '${{ vars.GOOGLE_CLOUD_LOCATION }}'
5657
gcp_project_id: '${{ vars.GOOGLE_CLOUD_PROJECT }}'
@@ -106,4 +107,8 @@ jobs:
106107
]
107108
}
108109
}
109-
prompt: '/gemini-review'
110+
extensions: |
111+
[
112+
"https://github.com/gemini-cli-extensions/code-review"
113+
]
114+
prompt: '/code-review pr-review'

0 commit comments

Comments
 (0)