- Notifications
You must be signed in to change notification settings - Fork3.2k
Add search pull requests tool#583
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Pull Request Overview
Adds a newsearch_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 | RegisterSearchPullRequests in the default toolset |
| pkg/github/pullrequests.go | ImplementSearchPullRequests function |
| pkg/github/pullrequests_test.go | AddTest_SearchPullRequests unit tests |
| pkg/github/issues.go | Update comment forSearchIssues 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",Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Add descriptionExtract common codeTest fixesUpdated search descriptionMove search prs to prs toolsetUpdate tools snaps
SamMorrowDrums left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Awesome, this is much needed!
8bd7152 intogithub:mainUh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Add search pull requests tool.
Fixes#462 and#334