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 array schemas#37

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-array-schemas
Mar 24, 2025
Merged

fix array schemas#37

juruen merged 1 commit intomainfromjuruen/fix-array-schemas
Mar 24, 2025

Conversation

juruen
Copy link
Collaborator

@juruenjuruen commentedMar 24, 2025
edited
Loading

Context

This PR adds schemas for the the array items. Without this, we were creating schemas where arrays didn't have their items specified. This caused issues in 4o.

@juruenjuruen marked this pull request as ready for reviewMarch 24, 2025 16:03
@CopilotCopilotAI review requested due to automatic review settingsMarch 24, 2025 16:03
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 updates the array schemas for GitHub API operations by defining explicit object schemas for array items in both file uploads and pull request review comments.

  • In pkg/github/repositories.go, the file objects now have a schema with defined properties for path and content.
  • In pkg/github/pullrequests.go, a similar schema has been added for comment objects with properties for path, position, and body.

Reviewed Changes

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

FileDescription
pkg/github/repositories.goAdded schema for file objects with properties for path/content
pkg/github/pullrequests.goAdded schema for comment objects with properties for path, position, and body

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.

I hope this is eventually cleaned up into part of WithArray more naturally, but this is better than failing.

@juruenjuruen merged commitaf22499 intomainMar 24, 2025
11 checks passed
manian0430 pushed a commit to ChrisLally/github-mcp-server that referenced this pull requestApr 12, 2025
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 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
@juruen@SamMorrowDrums

[8]ページ先頭

©2009-2025 Movatter.jp