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

use WithPagination tool option#632

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
LuluBeatson merged 1 commit intomainfromlulu/with-pagination
Jul 3, 2025
Merged

Conversation

LuluBeatson
Copy link
Contributor

@LuluBeatsonLuluBeatson commentedJul 3, 2025
edited
Loading

UseWithPagination() tool option consistently for tools with pagination.

Affected tools:

  • Actions
    • list_workflow_jobs
    • list_workflow_run_artifacts
    • list_workflow_runs
    • list_workflows
  • Issues:
    • get_issue_comments

⚠️ This change also means theper_page argument has been renamed toperPage in the affected tools. NowperPage is used across the server.

This PR does not add pagination to any tools previously without pagination

@LuluBeatsonLuluBeatson marked this pull request as ready for reviewJuly 3, 2025 14:04
@CopilotCopilotAI review requested due to automatic review settingsJuly 3, 2025 14:04
@LuluBeatsonLuluBeatson requested a review froma team as acode ownerJuly 3, 2025 14:04
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 refactors several GitHub tools to use a unifiedWithPagination() helper and renames the pagination parameter fromper_page toperPage across the server interfaces.

  • Replace individualmcp.WithNumber("page") &mcp.WithNumber("per_page") calls withWithPagination()
  • Update handler logic to callOptionalPaginationParams and usepagination.page/pagination.perPage
  • Rename all occurrences ofper_page toperPage in tests and documentation

Reviewed Changes

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

Show a summary per file
FileDescription
pkg/github/issues_test.goUpdated test assertions to expectperPage instead ofper_page
pkg/github/issues.goSwapped explicit page/per_page parameters forWithPagination() andOptionalPaginationParams
pkg/github/actions_test.goUpdated tests for workflows and artifacts to checkperPage
pkg/github/actions.goRefactored all Actions tools to useWithPagination()
README.mdRenamed parameters and updated descriptions for pagination flags
Files not reviewed (1)
  • pkg/github/toolsnaps/get_issue_comments.snap: Language not supported
Comments suppressed due to low confidence (2)

README.md:482

  • [nitpick] Nested list items in Markdown currently use- -, which may not render correctly; consider using two-space indentation followed by a single hyphen for nested bullets to ensure proper formatting.
  - `perPage`: Results per page for pagination (min 1, max 100) (number, optional)

README.md:481

  • [nitpick] Consider adding the default values (e.g.,page=1,perPage=30) to these parameter descriptions so that users know the defaults applied byOptionalPaginationParams.
  - `page`: Page number for pagination (min 1) (number, optional)

@LuluBeatsonLuluBeatson merged commit08a49b0 intomainJul 3, 2025
16 checks passed
@LuluBeatsonLuluBeatson deleted the lulu/with-pagination branchJuly 3, 2025 14:33
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

Copilot code reviewCopilotCopilot left review comments

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

2 participants
@LuluBeatson@JoannaaKL

[8]ページ先頭

©2009-2025 Movatter.jp