Skip to content

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 Copilot AI review requested due to automatic review settings October 7, 2025 13:50
Copy link
Contributor

@Copilot 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.

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