Skip to content

Comments

Add sort and order parameters to search_repositories tool#1188

Closed
kerobbi wants to merge 3 commits intomainfrom
kerobbi/improve-search-repositories-tool
Closed

Add sort and order parameters to search_repositories tool#1188
kerobbi wants to merge 3 commits intomainfrom
kerobbi/improve-search-repositories-tool

Conversation

@kerobbi
Copy link
Contributor

@kerobbi kerobbi commented Oct 7, 2025

This PR adds explicit sort and order params to the search_repositories tool to align with other search_* tools.

Changes

  • Added sort param with enum values: stars, forks, help-wanted-issues, updated
  • Added 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.

@kerobbi kerobbi marked this pull request as ready for review October 7, 2025 13:50
@kerobbi kerobbi requested a review from a team as a code owner October 7, 2025 13:50
Copilot AI review requested due to automatic review settings October 7, 2025 13:50
Copy link
Contributor

Copilot AI left a 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 explicit sort and order parameters to the search_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 or learn how to get started.

@kerobbi kerobbi closed this Oct 8, 2025
@kerobbi kerobbi deleted the kerobbi/improve-search-repositories-tool branch October 8, 2025 11:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant