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

Commit4489c3b

Browse files
committed
fix: add required fields for OpenAI API
1 parentdd8eddf commit4489c3b

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

‎pkg/github/pullrequests.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,9 @@ func createPullRequestReview(client *github.Client, t translations.TranslationHe
591591
mcp.WithArray("comments",
592592
mcp.Items(
593593
map[string]interface{}{
594-
"type":"object",
594+
"type":"object",
595+
"additionalProperties":false,
596+
"required": []string{"path","position","body"},
595597
"properties":map[string]interface{}{
596598
"path":map[string]interface{}{
597599
"type":"string",

‎pkg/github/repositories.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,9 @@ func pushFiles(client *github.Client, t translations.TranslationHelperFunc) (too
488488
mcp.Required(),
489489
mcp.Items(
490490
map[string]interface{}{
491-
"type":"object",
491+
"type":"object",
492+
"additionalProperties":false,
493+
"required": []string{"path","content"},
492494
"properties":map[string]interface{}{
493495
"path":map[string]interface{}{
494496
"type":"string",

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp