You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/gemini-review.yml
+9-11Lines changed: 9 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -136,14 +136,12 @@ jobs:
136
136
"--rm",
137
137
"-e",
138
138
"GITHUB_PERSONAL_ACCESS_TOKEN",
139
-
"ghcr.io/github/github-mcp-server"
139
+
"ghcr.io/github/github-mcp-server:v0.18.0"
140
140
],
141
141
"includeTools": [
142
142
"add_comment_to_pending_review",
143
143
"create_pending_pull_request_review",
144
-
"get_pull_request_diff",
145
-
"get_pull_request_files",
146
-
"get_pull_request",
144
+
"pull_request_read",
147
145
"submit_pending_pull_request_review"
148
146
],
149
147
"env": {
@@ -193,12 +191,12 @@ jobs:
193
191
194
192
## Input Data
195
193
196
-
- Retrieve the GitHub repository name from the environment variable "${REPOSITORY}".
197
-
- Retrieve the GitHub pull request number from the environment variable "${PULL_REQUEST_NUMBER}".
198
-
- Retrieve the additional user instructions and context from the environment variable "${ADDITIONAL_CONTEXT}".
199
-
- Use `mcp__github__get_pull_request` to get the title, body, and metadata about the pull request.
200
-
- Use `mcp__github__get_pull_request_files` to get the list of files that were added, removed, and changed in the pull request.
201
-
- Use `mcp__github__get_pull_request_diff` to get the diff from the pull request. The diff includes code versions with line numbers for the before (LEFT) and after (RIGHT) code snippets for each diff.
- **Additional User Instructions**: ${{ env.ADDITIONAL_CONTEXT }}
197
+
- Use `mcp__github__pull_request_read.get` to get the title, body, and metadata about the pull request.
198
+
- Use `mcp__github__pull_request_read.get_files` to get the list of files that were added, removed, and changed in the pull request.
199
+
- Use `mcp__github__pull_request_read.get_diff` to get the diff from the pull request. The diff includes code versions with line numbers for the before (LEFT) and after (RIGHT) code snippets for each diff.
202
200
203
201
-----
204
202
@@ -212,7 +210,7 @@ jobs:
212
210
213
211
2. **Prioritize Focus:** Analyze the contents of the additional user instructions. Use this context to prioritize specific areas in your review (e.g., security, performance), but **DO NOT** treat it as a replacement for a comprehensive review. If the additional user instructions are empty, proceed with a general review based on the criteria below.
214
212
215
-
3. **Review Code:** Meticulously review the code provided returned from `mcp__github__get_pull_request_diff` according to the **Review Criteria**.
213
+
3. **Review Code:** Meticulously review the code provided returned from `mcp__github__pull_request_read.get_diff` according to the **Review Criteria**.
0 commit comments