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 optional string array param#101

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
williammartin merged 1 commit intomainfromwm/optional-string-array-param
Apr 4, 2025

Conversation

williammartin
Copy link
Collaborator

Description

Fixes an integration bug introduced in#82, where the MCP host was providing a slice that was treated as[]any and not coerced to[]string.

@CopilotCopilotAI review requested due to automatic review settingsApril 4, 2025 15:25
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 introduces an optional string array parameter handling to fix an integration bug where parameters provided as []any were not properly coerced to []string.

  • Introduces a new helper function optionalStringArrayParam in pkg/github/server.go.
  • Adds new tests in pkg/github/server_test.go to validate the behavior of string array parameter handling.
  • Updates issues related functions and tests in pkg/github/issues.go and pkg/github/issues_test.go to utilize the new helper.

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

FileDescription
pkg/github/server_test.goNew test cases for validating optional string array parameter handling.
pkg/github/server.goNew helper function optionalStringArrayParam with improved type checking and error messages.
pkg/github/issues_test.goUpdated test cases to provide []any for assignees and labels.
pkg/github/issues.goReplaced use of generic optionalParam with optionalStringArrayParam for parameters conversion.

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

@williammartinwilliammartinforce-pushed thewm/optional-string-array-param branch frombaf5038 to255ba08CompareApril 4, 2025 15:26
@williammartinwilliammartin merged commit6e132eb intomainApr 4, 2025
16 checks passed
@williammartinwilliammartin deleted the wm/optional-string-array-param branchApril 4, 2025 15:30
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

Copilot code reviewCopilotCopilot left review comments

@juruenjuruenjuruen approved these changes

@tobytobytoby approved these changes

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

4 participants
@williammartin@juruen@toby@SamMorrowDrums

[8]ページ先頭

©2009-2025 Movatter.jp