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 boundaries to pagination#86

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
SamMorrowDrums merged 4 commits intomainfromwm/boundaries
Apr 3, 2025
Merged

Add boundaries to pagination#86

SamMorrowDrums merged 4 commits intomainfromwm/boundaries
Apr 3, 2025

Conversation

williammartin
Copy link
Collaborator

Description

Fixes#80

Reviewer Notes

There are no tests for this, also, it's not clear to me whysearch_repositories andlist_commits have no minimum bounds on page but I'm doing the minimum to match anthropic right now.

@CopilotCopilotAI review requested due to automatic review settingsApril 3, 2025 20:00
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 boundaries to pagination parameters to ensure that the "per_page" values remain between 1 and 100 and that the "page" value is at least 1.

  • Enforces minimum and maximum limits on the "per_page" parameter for code search, user search, and issues search.
  • Enforces a minimum bound on the "page" parameter in each function.

Reviewed Changes

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

FileDescription
pkg/github/search.goAdded mcp.Min and mcp.Max validations for pagination options in searchCode and searchUsers functions.
pkg/github/issues.goAdded mcp.Min and mcp.Max validations for pagination options in searchIssues function.
Comments suppressed due to low confidence (2)

pkg/github/search.go:91

  • The new pagination boundary validations in this file are not covered by tests. Consider adding test cases to ensure the validations behave as expected.
mcp.Min(1),

pkg/github/issues.go:167

  • The pagination validation changes in this file lack test coverage. It is recommended to add tests verifying that the minimum and maximum boundaries are enforced correctly.
mcp.Min(1),

Tip: If you use Visual Studio Code, you can request a review from Copilot before you push from the "Source Control" tab.Learn more

Copy link
Collaborator

@SamMorrowDrumsSamMorrowDrums left a comment

Choose a reason for hiding this comment

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

wow-oh

SamMorrowDrums
SamMorrowDrums previously approved these changesApr 3, 2025
Base automatically changed fromwm-kw/enum-strings tomainApril 3, 2025 21:31
@SamMorrowDrumsSamMorrowDrums dismissed theirstale reviewApril 3, 2025 21:31

The base branch was changed.

@SamMorrowDrumsSamMorrowDrums merged commit87d4407 intomainApr 3, 2025
16 checks passed
@SamMorrowDrumsSamMorrowDrums deleted the wm/boundaries branchApril 3, 2025 21:34
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

Copilot code reviewCopilotCopilot left review comments

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

Various tools are missing pagination property bounds or are not using matching case
2 participants
@williammartin@SamMorrowDrums

[8]ページ先頭

©2009-2025 Movatter.jp