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

Enumerate strings in schema#85

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 3 commits intomainfromwm-kw/enum-strings
Apr 3, 2025
Merged

Conversation

williammartin
Copy link
Collaborator

@williammartinwilliammartin commentedApr 3, 2025
edited
Loading

Description

Fixes#79

Reviewer Notes

This has no tests. We should consider adding some to validate they don't change unexpectedly, but let's split that into a separate issue.

@CopilotCopilotAI review requested due to automatic review settingsApril 3, 2025 19: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 restricts the possible string values for several search parameters by adding enum validations, addressing issue#79.

  • Added mcp.Enum validations for sort order in searchCode and searchUsers.
  • Introduced mcp.Enum for various fields (sort, order, state, etc.) in searchIssues and listIssues to restrict accepted values.

Reviewed Changes

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

FileDescription
pkg/github/search.goAdded enums to enforce allowed values for 'order' parameters.
pkg/github/issues.goIntroduced enums for fields such as 'sort', 'order', and 'state'.
Comments suppressed due to low confidence (1)

pkg/github/issues.go:150

  • The enum value 'reactions-+1' appears ambiguous and may be a typo. Consider verifying if it should be 'reactions+1' for clarity and consistency.
                    "reactions-+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

SamMorrowDrums
SamMorrowDrums previously approved these changesApr 3, 2025
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.

hhgf

@SamMorrowDrumsSamMorrowDrumsforce-pushed thewm/use-arrays-rather-than-csv branch frome9bf1f1 toe406c0fCompareApril 3, 2025 21:00
Base automatically changed fromwm/use-arrays-rather-than-csv tomainApril 3, 2025 21:10
@SamMorrowDrumsSamMorrowDrums dismissed theirstale reviewApril 3, 2025 21:10

The base branch was changed.

@SamMorrowDrumsSamMorrowDrums merged commit6b13742 intomainApr 3, 2025
16 of 17 checks passed
@SamMorrowDrumsSamMorrowDrums deleted the wm-kw/enum-strings branchApril 3, 2025 21:31
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 enumerated values
2 participants
@williammartin@SamMorrowDrums

[8]ページ先頭

©2009-2025 Movatter.jp