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
// RequestCopilotReview creates a tool to request a Copilot review for a pull request.
1734
-
funcRequestCopilotReview(getClientGetClientFn, t translations.TranslationHelperFunc) (toolmcp.Tool,handler server.ToolHandlerFunc) {
1766
+
funcRequestCopilotReview(getClientGetClientFn, t translations.TranslationHelperFunc) (mcp.Tool, server.ToolHandlerFunc) {
1735
1767
returnmcp.NewTool("request_copilot_review",
1736
1768
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.")),
1737
1769
mcp.WithString("owner",
@@ -1742,27 +1774,35 @@ func RequestCopilotReview(getClient GetClientFn, t translations.TranslationHelpe
Reviewers: []string{"copilot-pull-request-reviewer[bot]"}, // The login name of the copilot bot.
1800
+
},
1801
+
); err!=nil {
1761
1802
returnmcp.NewToolResultError(err.Error()), nil
1762
1803
}
1763
1804
1764
-
// As of now, GitHub API does not support Copilot as a reviewer programmatically.
1765
-
// This is a placeholder for future support.
1766
-
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
1805
+
// Return nothing, just indicate success for the time being.
0 commit comments