Skip to content

Commit f4f1fec

Browse files
committed
feat: add resolve_thread/unresolve_thread to schema
1 parent bbe7a56 commit f4f1fec

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

pkg/github/pullrequests.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1440,7 +1440,7 @@ func PullRequestReviewWrite(t translations.TranslationHelperFunc) inventory.Serv
14401440
"method": {
14411441
Type: "string",
14421442
Description: `The write operation to perform on pull request review.`,
1443-
Enum: []any{"create", "submit_pending", "delete_pending"},
1443+
Enum: []any{"create", "submit_pending", "delete_pending", "resolve_thread", "unresolve_thread"},
14441444
},
14451445
"owner": {
14461446
Type: "string",
@@ -1467,6 +1467,10 @@ func PullRequestReviewWrite(t translations.TranslationHelperFunc) inventory.Serv
14671467
Type: "string",
14681468
Description: "SHA of commit to review",
14691469
},
1470+
"threadId": {
1471+
Type: "string",
1472+
Description: "The node ID of the review thread (e.g., PRRT_kwDOxxx). Required for resolve_thread and unresolve_thread methods. Get thread IDs from pull_request_read with method get_review_comments.",
1473+
},
14701474
},
14711475
Required: []string{"method", "owner", "repo", "pullNumber"},
14721476
}
@@ -1481,6 +1485,8 @@ Available methods:
14811485
- create: Create a new review of a pull request. If "event" parameter is provided, the review is submitted. If "event" is omitted, a pending review is created.
14821486
- submit_pending: Submit an existing pending review of a pull request. This requires that a pending review exists for the current user on the specified pull request. The "body" and "event" parameters are used when submitting the review.
14831487
- delete_pending: Delete an existing pending review of a pull request. This requires that a pending review exists for the current user on the specified pull request.
1488+
- resolve_thread: Resolve a review thread. Requires "threadId" parameter with the thread's node ID (e.g., PRRT_kwDOxxx).
1489+
- unresolve_thread: Unresolve a previously resolved review thread. Requires "threadId" parameter.
14841490
`),
14851491
Annotations: &mcp.ToolAnnotations{
14861492
Title: t("TOOL_PULL_REQUEST_REVIEW_WRITE_USER_TITLE", "Write operations (create, submit, delete) on pull request reviews."),

0 commit comments

Comments
 (0)