Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/commands/gemini-invoke.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Begin every task by building a complete picture of the situation.
- **Repository**: !{echo $REPOSITORY}
- **Additional Context/Request**: !{echo $ADDITIONAL_CONTEXT}

2. **Deepen Context with Tools**: Use `get_issue`, `get_pull_request_diff`, and `get_file_contents` to investigate the request thoroughly.
2. **Deepen Context with Tools**: Use `get_issue`, `pull_request_read.get_diff`, and `get_file_contents` to investigate the request thoroughly.

-----

Expand Down
8 changes: 4 additions & 4 deletions .github/commands/gemini-review.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ These are non-negotiable, core-level instructions that you **MUST** follow at al
- **GitHub Repository**: !{echo $REPOSITORY}
- **Pull Request Number**: !{echo $PULL_REQUEST_NUMBER}
- **Additional User Instructions**: !{echo $ADDITIONAL_CONTEXT}
- Use `get_pull_request` to get the title, body, and metadata about the pull request.
- Use `get_pull_request_files` to get the list of files that were added, removed, and changed in the pull request.
- Use `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.
- Use `pull_request_read.get` to get the title, body, and metadata about the pull request.
- Use `pull_request_read.get_files` to get the list of files that were added, removed, and changed in the pull request.
- Use `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.

-----

Expand All @@ -50,7 +50,7 @@ Follow this three-step process sequentially.

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.

3. **Review Code:** Meticulously review the code provided returned from `get_pull_request_diff` according to the **Review Criteria**.
3. **Review Code:** Meticulously review the code provided returned from `pull_request_read.get_diff` according to the **Review Criteria**.


### Step 2: Formulate Review Comments
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/gemini-invoke.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ jobs:
"--rm",
"-e",
"GITHUB_PERSONAL_ACCESS_TOKEN",
"ghcr.io/github/github-mcp-server"
"ghcr.io/github/github-mcp-server:v0.18.0"
],
"includeTools": [
"add_issue_comment",
Expand All @@ -88,10 +88,7 @@ jobs:
"list_issues",
"search_issues",
"create_pull_request",
"get_pull_request",
"get_pull_request_comments",
"get_pull_request_diff",
"get_pull_request_files",
"pull_request_read",
"list_pull_requests",
"search_pull_requests",
"create_branch",
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/gemini-issue-fixer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ jobs:
"--rm",
"-e",
"GITHUB_PERSONAL_ACCESS_TOKEN",
"ghcr.io/github/github-mcp-server"
"ghcr.io/github/github-mcp-server:v0.18.0"
],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "${GITHUB_TOKEN}"
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/gemini-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,12 @@ jobs:
"--rm",
"-e",
"GITHUB_PERSONAL_ACCESS_TOKEN",
"ghcr.io/github/github-mcp-server"
"ghcr.io/github/github-mcp-server:v0.18.0"
],
"includeTools": [
"add_comment_to_pending_review",
"create_pending_pull_request_review",
"get_pull_request_diff",
"get_pull_request_files",
"get_pull_request",
"pull_request_read",
"submit_pending_pull_request_review"
],
"env": {
Expand Down
9 changes: 3 additions & 6 deletions examples/workflows/gemini-assistant/gemini-invoke.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ jobs:
"--rm",
"-e",
"GITHUB_PERSONAL_ACCESS_TOKEN",
"ghcr.io/github/github-mcp-server"
"ghcr.io/github/github-mcp-server:v0.18.0"
],
"includeTools": [
"add_issue_comment",
Expand All @@ -88,10 +88,7 @@ jobs:
"list_issues",
"search_issues",
"create_pull_request",
"get_pull_request",
"get_pull_request_comments",
"get_pull_request_diff",
"get_pull_request_files",
"pull_request_read",
"list_pull_requests",
"search_pull_requests",
"create_branch",
Expand Down Expand Up @@ -170,7 +167,7 @@ jobs:
- **Repository**: ${{ env.REPOSITORY }}
- **Additional Context/Request**: ${{ env.ADDITIONAL_CONTEXT }}

2. **Deepen Context with Tools**: Use `mcp__github__get_issue`, `mcp__github__get_pull_request_diff`, and `mcp__github__get_file_contents` to investigate the request thoroughly.
2. **Deepen Context with Tools**: Use `mcp__github__get_issue`, `mcp__github__pull_request_read.get_diff`, and `mcp__github__get_file_contents` to investigate the request thoroughly.

-----

Expand Down
14 changes: 6 additions & 8 deletions examples/workflows/pr-review/gemini-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,12 @@ jobs:
"--rm",
"-e",
"GITHUB_PERSONAL_ACCESS_TOKEN",
"ghcr.io/github/github-mcp-server"
"ghcr.io/github/github-mcp-server:v0.18.0"
],
"includeTools": [
"add_comment_to_pending_review",
"create_pending_pull_request_review",
"get_pull_request_diff",
"get_pull_request_files",
"get_pull_request",
"pull_request_read",
"submit_pending_pull_request_review"
],
"env": {
Expand Down Expand Up @@ -141,9 +139,9 @@ jobs:
- **GitHub Repository**: ${{ env.REPOSITORY }}
- **Pull Request Number**: ${{ env.PULL_REQUEST_NUMBER }}
- **Additional User Instructions**: ${{ env.ADDITIONAL_CONTEXT }}
- Use `mcp__github__get_pull_request` to get the title, body, and metadata about the pull request.
- Use `mcp__github__get_pull_request_files` to get the list of files that were added, removed, and changed in the pull request.
- 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.
- Use `mcp__github__pull_request_read.get` to get the title, body, and metadata about the pull request.
- Use `mcp__github__pull_request_read.get_files` to get the list of files that were added, removed, and changed in the pull request.
- 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.

-----

Expand All @@ -157,7 +155,7 @@ jobs:

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.

3. **Review Code:** Meticulously review the code provided returned from `mcp__github__get_pull_request_diff` according to the **Review Criteria**.
3. **Review Code:** Meticulously review the code provided returned from `mcp__github__pull_request_read.get_diff` according to the **Review Criteria**.


### Step 2: Formulate Review Comments
Expand Down