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

fix issue with pagination in search_repositories#129

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
juruen merged 1 commit intomainfromjuruen/fix-search-repository
Apr 5, 2025

Conversation

juruen
Copy link
Collaborator

@juruenjuruen commentedApr 5, 2025
edited
Loading

Closes:#105

This PR makes sure that theperPage parameter insearch_repositories is honored. Otherwise, we were always getting 30 results.

@juruenjuruenforce-pushed thejuruen/fix-search-repository branch from4e88e65 to952641bCompareApril 5, 2025 14:42
@juruenjuruen marked this pull request as ready for reviewApril 5, 2025 14:53
@CopilotCopilotAI review requested due to automatic review settingsApril 5, 2025 14:53
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 fixes a pagination bug in the search_repositories function by ensuring the correct parameter ("perPage") is used so that the specified number of results per page is honored.

  • Updated the test input in pkg/github/search_test.go from "per_page" to "perPage".
  • Updated the parameter processing in pkg/github/search.go to use "perPage".

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

FileDescription
pkg/github/search_test.goChanges parameter key for test input consistency.
pkg/github/search.goApplies the corrected parameter key in the code.

Tip: Copilot code review supports C#, Go, Java, JavaScript, Markdown, Python, Ruby and TypeScript, with more languages coming soon.Learn more

Copy link
Collaborator

@williammartinwilliammartin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Sorry, looks like I missed this one when I was mass find and replacing to do the conformance!

juruen reacted with heart emoji
@juruenjuruen merged commit6b02799 intomainApr 5, 2025
14 checks passed
@juruenjuruen deleted the juruen/fix-search-repository branchApril 5, 2025 18:05
JohnDaWalka added a commit to JohnDaWalka/github-mcp-server that referenced this pull requestApr 5, 2025
fix issue with pagination in search_repositories (github#129)
AlexanderYastrebov added a commit to AlexanderYastrebov/github-mcp-server that referenced this pull requestApr 6, 2025
Page site tool parameter names were changed to `perPage` withingithub#129while GitHub API uses `per_page` parameter name.This change fixes overlooked inconsistencies.Follow up ongithub#129Fixesgithub#136Signed-off-by: Alexander Yastrebov <yastrebov.alex@gmail.com>
AlexanderYastrebov added a commit to AlexanderYastrebov/github-mcp-server that referenced this pull requestApr 6, 2025
Page size tool parameter names were changed to `perPage` withingithub#129while GitHub API uses `per_page` parameter name.This change fixes overlooked inconsistencies.Follow up ongithub#129Fixesgithub#136Signed-off-by: Alexander Yastrebov <yastrebov.alex@gmail.com>
AlexanderYastrebov added a commit to AlexanderYastrebov/github-mcp-server that referenced this pull requestApr 6, 2025
Page size tool parameter names were changed to `perPage` withingithub#90while GitHub API uses `per_page` parameter name.This change fixes overlooked inconsistencies.Follow up ongithub#90Follow up ongithub#129Fixesgithub#136Signed-off-by: Alexander Yastrebov <yastrebov.alex@gmail.com>
williammartin pushed a commit to AlexanderYastrebov/github-mcp-server that referenced this pull requestApr 7, 2025
Page size tool parameter names were changed to `perPage` withingithub#90while GitHub API uses `per_page` parameter name.This change fixes overlooked inconsistencies.Follow up ongithub#90Follow up ongithub#129Fixesgithub#136Signed-off-by: Alexander Yastrebov <yastrebov.alex@gmail.com>
williammartin pushed a commit that referenced this pull requestApr 7, 2025
Page size tool parameter names were changed to `perPage` within#90while GitHub API uses `per_page` parameter name.This change fixes overlooked inconsistencies.Follow up on#90Follow up on#129Fixes#136Signed-off-by: Alexander Yastrebov <yastrebov.alex@gmail.com>
manian0430 pushed a commit to ChrisLally/github-mcp-server that referenced this pull requestApr 12, 2025
manian0430 pushed a commit to ChrisLally/github-mcp-server that referenced this pull requestApr 12, 2025
Page size tool parameter names were changed to `perPage` withingithub#90while GitHub API uses `per_page` parameter name.This change fixes overlooked inconsistencies.Follow up ongithub#90Follow up ongithub#129Fixesgithub#136Signed-off-by: Alexander Yastrebov <yastrebov.alex@gmail.com>
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

Copilot code reviewCopilotCopilot left review comments

@williammartinwilliammartinwilliammartin 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 returns unmanageable amount of data without pagination
2 participants
@juruen@williammartin

[8]ページ先頭

©2009-2025 Movatter.jp