Skip to content

Commit 385822d

Browse files
authored
fix: pr-review workflow tool inclusion list for mcp server (#70)
<!-- Thank you for proposing a pull request! Please note that SOME TESTS WILL LIKELY FAIL due to how GitHub exposes secrets in Pull Requests from forks. Someone from the team will review your Pull Request and respond. Please describe your change and any implementation details below. --> fix: pr-review workflow tool inclusion list for mcp server
1 parent 5c19471 commit 385822d

2 files changed

Lines changed: 10 additions & 6 deletions

File tree

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,15 +174,17 @@ jobs:
174174
"GITHUB_PERSONAL_ACCESS_TOKEN",
175175
"ghcr.io/github/github-mcp-server"
176176
],
177+
"includeTools": [
178+
"create_pending_pull_request_review",
179+
"add_comment_to_pending_review",
180+
"submit_pending_pull_request_review"
181+
],
177182
"env": {
178183
"GITHUB_PERSONAL_ACCESS_TOKEN": "${GITHUB_TOKEN}"
179184
}
180185
}
181186
},
182187
"coreTools": [
183-
"mcp__github__create_pending_pull_request_review",
184-
"mcp__github__add_comment_to_pending_review",
185-
"mcp__github__submit_pending_pull_request_review",
186188
"run_shell_command(echo)",
187189
"run_shell_command(gh pr view)",
188190
"run_shell_command(gh pr diff)",

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,15 +174,17 @@ jobs:
174174
"GITHUB_PERSONAL_ACCESS_TOKEN",
175175
"ghcr.io/github/github-mcp-server"
176176
],
177+
"includeTools": [
178+
"create_pending_pull_request_review",
179+
"add_comment_to_pending_review",
180+
"submit_pending_pull_request_review"
181+
],
177182
"env": {
178183
"GITHUB_PERSONAL_ACCESS_TOKEN": "${GITHUB_TOKEN}"
179184
}
180185
}
181186
},
182187
"coreTools": [
183-
"mcp__github__create_pending_pull_request_review",
184-
"mcp__github__add_comment_to_pending_review",
185-
"mcp__github__submit_pending_pull_request_review",
186188
"run_shell_command(echo)",
187189
"run_shell_command(gh pr view)",
188190
"run_shell_command(gh pr diff)",

0 commit comments

Comments
 (0)