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#1191

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

Merged
kerobbi merged 7 commits intomainfromimprove-search-repositories-tool
Oct 9, 2025

Conversation

kerobbi
Copy link
Contributor

@kerobbikerobbi commentedOct 8, 2025
edited
Loading

This PR adds explicitsort andorder params to thesearch_repositories tool to align with othersearch_* tools, especially as the relevant REST API endpoint does accept them. Additionally, it adds server instructions forsearch_* tools related to sorting functionality.

Changes

  • Addedsort param with enum values:stars,forks,help-wanted-issues,updated
  • Addedorder param with enum values:asc,desc
  • Added server instructions forsort andorder usage insearch_* tools

Closes:#1178

@kerobbikerobbi requested a review froma team as acode ownerOctober 8, 2025 11:48
@CopilotCopilotAI review requested due to automatic review settingsOctober 8, 2025 11:48
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 explicit sorting parameters to thesearch_repositories tool to improve model clarity when sorting search results. It aligns the tool's interface with other search tools by exposing the GitHub API's native sorting capabilities.

  • Addedsort parameter with enum values for different sorting criteria (stars, forks, help-wanted-issues, updated)
  • Addedorder parameter with enum values for sort direction (asc, desc)
  • 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 no comments.

FileDescription
pkg/github/search.goImplements the new sort and order parameters in the tool definition and request handling
pkg/github/search_test.goAdds test coverage for the new parameters in both schema validation and API call verification
pkg/github/toolsnaps/search_repositories.snapUpdates the tool schema snapshot to include the new parameter definitions
README.mdDocuments the new sort and order parameters in the tool reference

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

@kerobbikerobbi merged commit16b43c9 intomainOct 9, 2025
16 checks passed
@kerobbikerobbi deleted the improve-search-repositories-tool branchOctober 9, 2025 09:11
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

Copilot code reviewCopilotCopilot left review comments

@almaleksiaalmaleksiaalmaleksia approved these changes

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

Successfully merging this pull request may close these issues.

search_repositories tool giving wrong output
2 participants
@kerobbi@almaleksia

[8]ページ先頭

©2009-2025 Movatter.jp