improv: add re-review instructions

This commit is contained in:
Tomasz Stefaniak 2025-08-15 10:09:04 -07:00
parent d3b9fc7c51
commit 23d9260536
2 changed files with 8 additions and 3 deletions

View file

@ -288,7 +288,7 @@ runs:
repo: context.repo.repo,
pull_number: prNumber,
commit_id: commitSha,
body: reviewData.review_summary || 'AI Code Review',
body: `${reviewData.review_summary || 'AI Code Review'}\n\n---\n*💡 To request a new detailed review, comment \`@continue-detailed-review\`*`,
event: 'COMMENT',
comments: comments
});
@ -298,7 +298,8 @@ runs:
// Fallback: post as a regular comment if review creation fails
const fallbackBody = `## AI Code Review\n\n${reviewData.review_summary}\n\n` +
`*Failed to post ${comments.length} inline comments. Please review the changes manually.*`;
`*Failed to post ${comments.length} inline comments. Please review the changes manually.*\n\n` +
`---\n*💡 To request a new detailed review, comment \`@continue-detailed-review\`*`;
await github.rest.issues.createComment({
issue_number: prNumber,
@ -313,7 +314,8 @@ runs:
issue_number: prNumber,
owner: context.repo.owner,
repo: context.repo.repo,
body: `## AI Code Review\n\n${reviewData.review_summary}\n\n*No specific line comments generated.*`
body: `## AI Code Review\n\n${reviewData.review_summary}\n\n*No specific line comments generated.*\n\n` +
`---\n*💡 To request a new detailed review, comment \`@continue-detailed-review\`*`
});
}

View file

@ -207,6 +207,9 @@ runs:
reviewContent = `*Triggered by @${context.payload.comment.user.login}'s request*\n\n${reviewContent}`;
}
// Add instructions for re-review
reviewContent += '\n\n---\n*💡 To request a new review, comment `@continue-general-review`*';
// Create new comment
await github.rest.issues.createComment({
issue_number: prNumber,