Add search pull requests tool#583
Merged
SamMorrowDrums merged 5 commits intogithub:mainfrom Jun 26, 2025
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
Adds a new search_pull_requests tool to query GitHub pull requests via the existing search API, wires it into the default toolset, and provides unit tests and snapshots.
- Introduce
SearchPullRequestsinpkg/github/pullrequests.go - Register the new tool in
DefaultToolsetGroup - Add
Test_SearchPullRequestsand its schema snapshot
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| pkg/github/tools.go | Register SearchPullRequests in the default toolset |
| pkg/github/pullrequests.go | Implement SearchPullRequests function |
| pkg/github/pullrequests_test.go | Add Test_SearchPullRequests unit tests |
| pkg/github/issues.go | Update comment for SearchIssues to remove PR mention |
| pkg/github/toolsnaps/search_pull_requests.snap | Add schema snapshot for the new tool |
Comments suppressed due to low confidence (1)
pkg/github/pullrequests_test.go:677
- Update the expected error message to "failed to search pull requests" to match the implementation's error text.
expectedErrMsg: "failed to search issues",
Add description Extract common code Test fixes Updated search description Move search prs to prs toolset Update tools snaps
SamMorrowDrums
previously approved these changes
Jun 26, 2025
Collaborator
SamMorrowDrums
left a comment
There was a problem hiding this comment.
Awesome, this is much needed!
SamMorrowDrums
approved these changes
Jun 26, 2025
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.
Add search pull requests tool.
Fixes #462 and #334