don't allow rejecting prs

This commit is contained in:
Shawn Morreau
2025-11-10 16:52:50 -05:00
parent c08008668b
commit 1c128b293f
6 changed files with 8 additions and 12 deletions
+2 -3
View File
@@ -102593,7 +102593,6 @@ var PullRequestInfoTool = tool({
// mcp/review.ts
var Review = type({
pull_number: type.number.describe("The pull request number to review"),
event: type.enumerated("APPROVE", "REQUEST_CHANGES", "COMMENT").describe("'APPROVE', 'REQUEST_CHANGES', or 'COMMENT' (the review action)"),
body: type.string.describe(
"Brief summary or general feedback that doesn't apply to specific code locations. Keep it concise - most feedback should be in the 'comments' array."
).optional(),
@@ -102616,7 +102615,7 @@ var ReviewTool = tool({
name: "submit_pull_request_review",
description: "Submit a review (approve, request changes, or comment) for an existing pull request. IMPORTANT: Use 'comments' array for ALL specific code issues at the line-level. Only use 'body' for a brief summary or feedback that doesn't apply to a specific location.",
parameters: Review,
execute: contextualize(async ({ pull_number, event, body, commit_id, comments = [] }, ctx) => {
execute: contextualize(async ({ pull_number, body, commit_id, comments = [] }, ctx) => {
const pr = await ctx.octokit.rest.pulls.get({
owner: ctx.owner,
repo: ctx.name,
@@ -102626,7 +102625,7 @@ var ReviewTool = tool({
owner: ctx.owner,
repo: ctx.name,
pull_number,
event
event: "COMMENT"
};
if (body) params.body = body;
if (commit_id) {