fix: review process and cleanup
This commit is contained in:
@@ -212,6 +212,8 @@ export function CreatePullRequestReviewTool(ctx: ToolContext) {
|
||||
"code block showing the corrected code. For example: " +
|
||||
"'SQL injection: id is interpolated directly into the query string.\\n\\n```ts\\nconst result = await db.query(\\'SELECT * FROM users WHERE id = $1\\', [id]);\\n```'. " +
|
||||
"The first submission may error once with a diff-coverage nudge — retry with the same arguments. " +
|
||||
"Inline comments: 'path' must be the SOURCE FILE path (e.g. 'apps/foo/bar.ts') from the diff --git header, NOT the diffPath returned by checkout_pr. " +
|
||||
"'line' must be the actual file line number from the '| newLine |' column in the formatted diff (not the TOC line range). " +
|
||||
"Inline comments can ONLY target files and lines that appear in the PR diff.",
|
||||
parameters: CreatePullRequestReview,
|
||||
execute: execute(async ({ pull_number, body, approved, commit_id, comments = [] }) => {
|
||||
|
||||
Reference in New Issue
Block a user