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
feat: convert mark_pr_ready_for_review to set_pr_status tool
- Replace mark_pr_ready_for_review with set_pr_status tool
- Add bidirectional PR status changes (draft ↔ ready_for_review)
- Use enum parameter for status: "draft", "ready_for_review"
- Implement GraphQL mutations for both directions
- Add comprehensive test suite with 8 test scenarios
- Remove deprecated MarkPullRequestReadyForReview function
Addresses user feedback to provide enum-based PR status management
with support for setting PRs to both draft and ready-for-review states.
// MarkPullRequestReadyForReview creates a tool to mark a draft pull request as ready for review.
1611
-
// This uses the GraphQL API because the REST API does not support changing a PR from draft to ready-for-review.
1612
-
funcMarkPullRequestReadyForReview(getGQLClientGetGQLClientFn, t translations.TranslationHelperFunc) (mcp.Tool, server.ToolHandlerFunc) {
1613
-
returnmcp.NewTool("mark_pr_ready_for_review",
1614
-
mcp.WithDescription(t("TOOL_MARK_PR_READY_FOR_REVIEW_DESCRIPTION", "Mark a draft pull request as ready for review. Use this to change a pull request from draft state to readyforreview.")),
1610
+
// SetPRStatus creates a tool to set pull request status between draft and ready-for-review states.
1611
+
// This uses the GraphQL API because the REST API does not support changing PR draft status.
1612
+
funcSetPRStatus(getGQLClientGetGQLClientFn, t translations.TranslationHelperFunc) (mcp.Tool, server.ToolHandlerFunc) {
1613
+
returnmcp.NewTool("set_pr_status",
1614
+
mcp.WithDescription(t("TOOL_SET_PR_STATUS_DESCRIPTION", "Set pull request status between draft and ready-for-review states. Use this to change a pull request from draft to ready-for-review or vice versa.")),
1615
1615
mcp.WithToolAnnotation(mcp.ToolAnnotation{
1616
-
Title: t("TOOL_MARK_PR_READY_FOR_REVIEW_USER_TITLE", "Mark pull request ready for review"),
0 commit comments