Skip to content

Commit 25f86d8

Browse files
committed
feat: add resolve_thread/unresolve_thread to schema
1 parent b37c84c commit 25f86d8

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
@@ -1332,7 +1332,7 @@ func PullRequestReviewWrite(t translations.TranslationHelperFunc) inventory.Serv
13321332
"method": {
13331333
Type: "string",
13341334
Description: `The write operation to perform on pull request review.`,
1335-
Enum: []any{"create", "submit_pending", "delete_pending"},
1335+
Enum: []any{"create", "submit_pending", "delete_pending", "resolve_thread", "unresolve_thread"},
13361336
},
13371337
"owner": {
13381338
Type: "string",
@@ -1359,6 +1359,10 @@ func PullRequestReviewWrite(t translations.TranslationHelperFunc) inventory.Serv
13591359
Type: "string",
13601360
Description: "SHA of commit to review",
13611361
},
1362+
"threadId": {
1363+
Type: "string",
1364+
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.",
1365+
},
13621366
},
13631367
Required: []string{"method", "owner", "repo", "pullNumber"},
13641368
}
@@ -1373,6 +1377,8 @@ Available methods:
13731377
- 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.
13741378
- 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.
13751379
- 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.
1380+
- resolve_thread: Resolve a review thread. Requires "threadId" parameter with the thread's node ID (e.g., PRRT_kwDOxxx).
1381+
- unresolve_thread: Unresolve a previously resolved review thread. Requires "threadId" parameter.
13761382
`),
13771383
Annotations: &mcp.ToolAnnotations{
13781384
Title: t("TOOL_PULL_REQUEST_REVIEW_WRITE_USER_TITLE", "Write operations (create, submit, delete) on pull request reviews."),

0 commit comments

Comments
 (0)