Skip to content

Commit 5174ee6

Browse files
committed
Fix gemini-cli trigger issue
1 parent 9d5cbba commit 5174ee6

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

.github/workflows/gemini-review.yml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -136,14 +136,12 @@ jobs:
136136
"--rm",
137137
"-e",
138138
"GITHUB_PERSONAL_ACCESS_TOKEN",
139-
"ghcr.io/github/github-mcp-server"
139+
"ghcr.io/github/github-mcp-server:v0.18.0"
140140
],
141141
"includeTools": [
142142
"add_comment_to_pending_review",
143143
"create_pending_pull_request_review",
144-
"get_pull_request_diff",
145-
"get_pull_request_files",
146-
"get_pull_request",
144+
"pull_request_read",
147145
"submit_pending_pull_request_review"
148146
],
149147
"env": {
@@ -193,12 +191,12 @@ jobs:
193191
194192
## Input Data
195193
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.
194+
- **GitHub Repository**: ${{ env.REPOSITORY }}
195+
- **Pull Request Number**: ${{ env.PULL_REQUEST_NUMBER }}
196+
- **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.
202200
203201
-----
204202
@@ -212,7 +210,7 @@ jobs:
212210
213211
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.
214212
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**.
216214
217215
218216
### Step 2: Formulate Review Comments

0 commit comments

Comments
 (0)