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
-**request_copilot_review** - Request a GitHub Copilot review for a pull request (experimental; subject to GitHub API support)
462
+
463
+
-`owner`: Repository owner (string, required)
464
+
-`repo`: Repository name (string, required)
465
+
-`pull_number`: Pull request number (number, required)
466
+
-_Note: As of now, requesting a Copilot review programmatically is not supported by the GitHub API. This tool will return an error until GitHub exposes this functionality._
467
+
461
468
### Repositories
462
469
463
470
-**create_or_update_file** - Create or update a single file in a repository
Copy file name to clipboardExpand all lines: pkg/github/pullrequests.go
+37Lines changed: 37 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1246,3 +1246,40 @@ func CreatePullRequest(getClient GetClientFn, t translations.TranslationHelperFu
1246
1246
returnmcp.NewToolResultText(string(r)), nil
1247
1247
}
1248
1248
}
1249
+
1250
+
// RequestCopilotReview creates a tool to request a Copilot review for a pull request.
1251
+
funcRequestCopilotReview(getClientGetClientFn, t translations.TranslationHelperFunc) (tool mcp.Tool, handler server.ToolHandlerFunc) {
1252
+
returnmcp.NewTool("request_copilot_review",
1253
+
mcp.WithDescription(t("TOOL_REQUEST_COPILOT_REVIEW_DESCRIPTION", "Request a GitHub Copilot review for a pull request. Note: This feature depends on GitHub API support and may not be available for all users.")),
// As of now, GitHub API does not support Copilot as a reviewer programmatically.
1282
+
// This is a placeholder for future support.
1283
+
returnmcp.NewToolResultError(fmt.Sprintf("Requesting a Copilot review for PR #%d in %s/%s is not currently supported by the GitHub API. Please request a Copilot review via the GitHub UI.", pullNumber, owner, repo)), nil
0 commit comments