Skip to content

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 24, 2025
Merged

fix array schemas #37

merged 1 commit into from
Mar 24, 2025

Conversation

juruen
Copy link
Collaborator

@juruen juruen commented Mar 24, 2025

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.

@juruen juruen marked this pull request as ready for review March 24, 2025 16:03
@Copilot Copilot AI review requested due to automatic review settings March 24, 2025 16:03
Copy link
Contributor

@Copilot Copilot AI 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.

File Description
pkg/github/repositories.go Added schema for file objects with properties for path/content
pkg/github/pullrequests.go Added 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

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

@juruen juruen merged commit af22499 into main Mar 24, 2025
11 checks passed
manian0430 pushed a commit to ChrisLally/github-mcp-server that referenced this pull request Apr 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants