Consolidate pull request review tools#1192
Merged
almaleksia merged 7 commits intomainfrom Oct 10, 2025
Merged
Conversation
338e243 to
3b4eaf2
Compare
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR consolidates multiple pull request review tools into a single unified tool. The purpose is to simplify the API by combining separate tools for creating, submitting, and deleting pull request reviews into one tool that uses a method parameter to determine the operation.
- Replaced four separate tools (
CreateAndSubmitPullRequestReview,CreatePendingPullRequestReview,SubmitPendingPullRequestReview,DeletePendingPullRequestReview) with one unifiedPullRequestReviewWritetool - Updated tests to use the new consolidated tool with method-based operation selection
- Updated documentation and instructions to reflect the new unified approach
Reviewed Changes
Copilot reviewed 10 out of 11 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| pkg/github/tools.go | Removed old tool registrations and added new unified tool |
| pkg/github/pullrequests.go | Consolidated multiple tool functions into one with method dispatch |
| pkg/github/pullrequests_test.go | Updated tests to use new tool name and method parameter |
| pkg/github/instructions.go | Updated workflow instructions for new tool usage |
| pkg/github/toolsnaps/*.snap | Updated/removed snapshots for tool definitions |
| README.md | Updated documentation to reflect consolidated tool |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
de51fd6 to
f978539
Compare
JoannaaKL
previously approved these changes
Oct 9, 2025
tonytrg
reviewed
Oct 10, 2025
tonytrg
reviewed
Oct 10, 2025
…to consolidate-prs-write
tonytrg
reviewed
Oct 10, 2025
tonytrg
approved these changes
Oct 10, 2025
tonytrg
approved these changes
Oct 10, 2025
issei-m
pushed a commit
to issei-m/github-mcp-server
that referenced
this pull request
Nov 14, 2025
* Consolidate pull request review tools * Prompt tweaks + deleting snap * Server instructions change * Add enums * Remove excessive mentions of event parameter * Doc update
This was referenced Jan 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Consolidating pull request review write tools.
create_and_submit_pull_request_reviewcreate_pending_pull_request_reviewsubmit_pending_pull_request_reviewdelete_pending_pull_request_revieware consolidated under
pull_request_review_writewith method parameter:
createsubmit_pendingdelete_pendingCreateAndSubmit and CreatePending merged under
createmethod as they differ only by 2 parameters -eventandbody.UPD: validated on curated datasets, no regressions accross models.