feat: Resolve threads in AddressReviews mode (#266)
* Add review thread resolution to AddressReviews mode - Add thread_id to comment metadata in buildThreadBlocks - Implement ResolveReviewThreadTool with GraphQL mutation - Register new tool in MCP server - Update AddressReviews mode to resolve threads after addressing feedback Closes #227 * Fix typo: use log.warning instead of log.warn * refactor: DRY up catch block by extracting isResolved condition * fix lint. * fix: avoid using any. * fix: combining log statements around the message. * fix(test): Adjusting snapshot. --------- Co-authored-by: pullfrog[bot] <226033991+pullfrog[bot]@users.noreply.github.com> Co-authored-by: Robin Tail <robin_tail@me.com>
This commit is contained in:
committed by
pullfrog[bot]
parent
0ecb1edcdd
commit
a442f766aa
+6
-1
@@ -106,7 +106,11 @@ import { SetOutputTool } from "./output.ts";
|
||||
import { CreatePullRequestTool } from "./pr.ts";
|
||||
import { PullRequestInfoTool } from "./prInfo.ts";
|
||||
import { CreatePullRequestReviewTool } from "./review.ts";
|
||||
import { GetReviewCommentsTool, ListPullRequestReviewsTool } from "./reviewComments.ts";
|
||||
import {
|
||||
GetReviewCommentsTool,
|
||||
ListPullRequestReviewsTool,
|
||||
ResolveReviewThreadTool,
|
||||
} from "./reviewComments.ts";
|
||||
import { SelectModeTool } from "./selectMode.ts";
|
||||
import { addTools } from "./shared.ts";
|
||||
import { UploadFileTool } from "./upload.ts";
|
||||
@@ -166,6 +170,7 @@ function buildTools(ctx: ToolContext): Tool<any, any>[] {
|
||||
CheckoutPrTool(ctx),
|
||||
GetReviewCommentsTool(ctx),
|
||||
ListPullRequestReviewsTool(ctx),
|
||||
ResolveReviewThreadTool(ctx),
|
||||
GetCheckSuiteLogsTool(ctx),
|
||||
AddLabelsTool(ctx),
|
||||
PushBranchTool(ctx),
|
||||
|
||||
Reference in New Issue
Block a user