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

Commitaf22499

Browse files
authored
fix array schemas (#37)
1 parente426b6e commitaf22499

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

‎pkg/github/pullrequests.go

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -522,6 +522,25 @@ func createPullRequestReview(client *github.Client, t translations.TranslationHe
522522
mcp.Description("SHA of commit to review"),
523523
),
524524
mcp.WithArray("comments",
525+
mcp.Items(
526+
map[string]interface{}{
527+
"type":"object",
528+
"properties":map[string]interface{}{
529+
"path":map[string]interface{}{
530+
"type":"string",
531+
"description":"path to the file",
532+
},
533+
"position":map[string]interface{}{
534+
"type":"number",
535+
"description":"line number in the file",
536+
},
537+
"body":map[string]interface{}{
538+
"type":"string",
539+
"description":"comment body",
540+
},
541+
},
542+
},
543+
),
525544
mcp.Description("Line-specific comments array of objects, each object with path (string), position (number), and body (string)"),
526545
),
527546
),

‎pkg/github/repositories.go

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -432,6 +432,20 @@ func pushFiles(client *github.Client, t translations.TranslationHelperFunc) (too
432432
),
433433
mcp.WithArray("files",
434434
mcp.Required(),
435+
mcp.Items(
436+
map[string]interface{}{
437+
"type":"object",
438+
"properties":map[string]interface{}{
439+
"path":map[string]interface{}{
440+
"type":"string",
441+
"description":"path to the file",
442+
},
443+
"content":map[string]interface{}{
444+
"type":"string",
445+
"description":"file content",
446+
},
447+
},
448+
}),
435449
mcp.Description("Array of file objects to push, each object with path (string) and content (string)"),
436450
),
437451
mcp.WithString("message",

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp