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
{{ message }}
Repository navigation
Commit ee07006
Browse filesBrowse the repository at this point in the historyBrowse files
// RequestCopilotReview creates a tool to request a Copilot review for a pull request.
1251
-
funcRequestCopilotReview(getClientGetClientFn, t translations.TranslationHelperFunc) (toolmcp.Tool,handler server.ToolHandlerFunc) {
1283
+
funcRequestCopilotReview(getClientGetClientFn, t translations.TranslationHelperFunc) (mcp.Tool, server.ToolHandlerFunc) {
1252
1284
returnmcp.NewTool("request_copilot_review",
1253
1285
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.")),
1254
1286
mcp.WithString("owner",
@@ -1259,27 +1291,35 @@ func RequestCopilotReview(getClient GetClientFn, t translations.TranslationHelpe
Reviewers: []string{"copilot-pull-request-reviewer[bot]"}, // The login name of the copilot bot.
1317
+
},
1318
+
); err!=nil {
1278
1319
returnmcp.NewToolResultError(err.Error()), nil
1279
1320
}
1280
1321
1281
-
// 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
1322
+
// Return nothing, just indicate success for the time being.
0 commit comments