Skip to content

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 AI review requested due to automatic review settings March 24, 2025 16:03
Copy link
Contributor

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
DaleSeo pushed a commit to DaleSeo/github-mcp-server that referenced this pull request Oct 24, 2025
* feat: adding wizard to simplify server config creation

Signed-off-by: Ivan Pedrazas <ivan.pedrazas@docker.com>

* Update CONTRIBUTING.md

Co-authored-by: Cody Rigney <cody.rigney@docker.com>



---------

Signed-off-by: Ivan Pedrazas <ivan.pedrazas@docker.com>
Co-authored-by: Cody Rigney <cody.rigney@docker.com>
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.

3 participants