edsger 0.7.1 → 0.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -250,12 +250,15 @@ export const reviewPullRequest = async (options, config) => {
|
|
|
250
250
|
if (verbose) {
|
|
251
251
|
logInfo('✅ No issues found. PR looks good!');
|
|
252
252
|
}
|
|
253
|
-
// Create
|
|
253
|
+
// Create a comment review if no issues found
|
|
254
|
+
// Note: We use COMMENT instead of APPROVE because:
|
|
255
|
+
// 1. Automated reviews should not approve PRs
|
|
256
|
+
// 2. GitHub doesn't allow approving your own PR
|
|
254
257
|
const review = await octokit.pulls.createReview({
|
|
255
258
|
owner: context.owner,
|
|
256
259
|
repo: context.repo,
|
|
257
260
|
pull_number: context.pullRequestNumber,
|
|
258
|
-
event: '
|
|
261
|
+
event: 'COMMENT',
|
|
259
262
|
body: summary ||
|
|
260
263
|
overall_assessment ||
|
|
261
264
|
'Code review completed. No issues found.',
|