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: README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -462,8 +462,8 @@ export GITHUB_MCP_TOOL_ADD_ISSUE_COMMENT_DESCRIPTION="an alternative description
462
462
463
463
-`owner`: Repository owner (string, required)
464
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._
465
+
-`pullNumber`: Pull request number (number, required)
466
+
-_Note: Currently, this tool will only work for github.com
Copy file name to clipboardExpand all lines: pkg/github/pullrequests.go
+41-6Lines changed: 41 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -1248,9 +1248,15 @@ func CreatePullRequest(getClient GetClientFn, t translations.TranslationHelperFu
1248
1248
}
1249
1249
1250
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) {
1251
+
// Note that this tool will not work on GHES where this feature is unsupported. In future, we should not expose this
1252
+
// tool if the configured host does not support it.
1253
+
funcRequestCopilotReview(getClientGetClientFn, t translations.TranslationHelperFunc) (mcp.Tool, server.ToolHandlerFunc) {
1252
1254
returnmcp.NewTool("request_copilot_review",
1253
1255
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