Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Closed

Conversation

kerobbi
Copy link
Contributor

This PR adds explicitsort andorder params to thesearch_repositories tool to align with othersearch_* tools.

Changes

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

@kerobbikerobbi marked this pull request as ready for reviewOctober 7, 2025 13:50
@kerobbikerobbi requested a review froma team as acode ownerOctober 7, 2025 13:50
@CopilotCopilotAI review requested due to automatic review settingsOctober 7, 2025 13:50
Copy link
Contributor

@CopilotCopilotAI 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 explicitsort andorder parameters to thesearch_repositories tool to provide better control over search result ordering and align with other search tools in the codebase.

  • Addedsort parameter with enum values (stars,forks,help-wanted-issues,updated) to specify sorting criteria
  • Addedorder 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.

FileDescription
pkg/github/search.goAdded sort and order parameter definitions and handling logic
pkg/github/search_test.goAdded test coverage for the new sort and order parameters
pkg/github/toolsnaps/search_repositories.snapUpdated schema snapshot to include new parameter definitions
README.mdUpdated documentation to list the new optional parameters

Tip: Customize your code reviews with copilot-instructions.md.Create the file orlearn how to get started.

@kerobbikerobbi closed thisOct 8, 2025
@kerobbikerobbi deleted the kerobbi/improve-search-repositories-tool branchOctober 8, 2025 11:48
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

Copilot code reviewCopilotCopilot left review comments

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

1 participant
@kerobbi

[8]ページ先頭

©2009-2025 Movatter.jp