- Notifications
You must be signed in to change notification settings - Fork2.7k
Add sort and order parameters to search_repositories tool#1188
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
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
This PR adds explicitsort
andorder
parameters to thesearch_repositories
tool to provide better control over search result ordering and align with other search tools in the codebase.
- Added
sort
parameter with enum values (stars
,forks
,help-wanted-issues
,updated
) to specify sorting criteria - Added
order
parameter with enum values (asc
,desc
) to control sort direction - Updated tests and documentation to reflect the new parameters
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
File | Description |
---|---|
pkg/github/search.go | Added sort and order parameter definitions and handling logic |
pkg/github/search_test.go | Added test coverage for the new sort and order parameters |
pkg/github/toolsnaps/search_repositories.snap | Updated schema snapshot to include new parameter definitions |
README.md | Updated documentation to list the new optional parameters |
Tip: Customize your code reviews with copilot-instructions.md.Create the file orlearn how to get started.
Uh oh!
There was an error while loading.Please reload this page.
This PR adds explicit
sort
andorder
params to thesearch_repositories
tool to align with othersearch_*
tools.Changes
sort
param with enum values:stars
,forks
,help-wanted-issues
,updated
order
param with enum values:asc
,desc
The parameters are accepted by the REST API endpoint, and should help with models confusion when it comes down to sorting.