You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pkg/github/pullrequests.go
+38-8
Original file line number
Diff line number
Diff line change
@@ -605,7 +605,19 @@ func createPullRequestReview(client *github.Client, t translations.TranslationHe
605
605
},
606
606
"line": map[string]interface{}{
607
607
"type": "number",
608
-
"description": "line number in the file to comment on (alternative to position)",
608
+
"description": "line number in the file to comment on. For multi-line comments, the end of the line range",
609
+
},
610
+
"side": map[string]interface{}{
611
+
"type": "string",
612
+
"description": "The side of the diff on which the line resides. For multi-line comments, this is the side for the end of the line range. (LEFT or RIGHT)",
613
+
},
614
+
"start_line": map[string]interface{}{
615
+
"type": "number",
616
+
"description": "The first line of the range to which the comment refers. Required for multi-line comments.",
617
+
},
618
+
"start_side": map[string]interface{}{
619
+
"type": "string",
620
+
"description": "The side of the diff on which the start line resides for multi-line comments. (LEFT or RIGHT)",
609
621
},
610
622
"body": map[string]interface{}{
611
623
"type": "string",
@@ -614,7 +626,7 @@ func createPullRequestReview(client *github.Client, t translations.TranslationHe
614
626
},
615
627
},
616
628
),
617
-
mcp.Description("Line-specific comments array of objects, each object with path (string), either position (number) or line (number), and body (string)"),
629
+
mcp.Description("Line-specific comments array of objects to place comments on pull request changes. Requires path and body. For line comments use line or position. For multi-line comments use start_line and line with optional side parameters."),
0 commit comments