File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -337,18 +337,20 @@ async function run() {
337
337
if (inputs.suggestions && success) {
338
338
const resolved = await (0, review_comments_1.clearPriorSuggestions)(client, pr);
339
339
if (pr.diff && differences) {
340
+ let n = 0;
340
341
const bases = (0, patch_1.parsePatches)(pr.diff);
341
342
const patches = (0, patch_1.parsePatches)(patch);
342
343
const ps = (0, suggestions_1.getSuggestions)(bases, patches, resolved).map((s) => {
343
344
if (s.skipReason) {
344
- core.warning(`Skipping suggestion at ${s.path}:${s.startLine} : ${s.skipReason}`);
345
+ core.warning(`Skipping suggestion: ${s.skipReason}`);
345
346
return Promise.resolve();
346
347
}
347
348
else {
349
+ n += 1;
348
350
return (0, review_comments_1.commentSuggestion)(client, pr, s);
349
351
}
350
352
});
351
- core.info(`Leaving ${ps.length } suggestion(s)`);
353
+ core.info(`Leaving ${n } suggestion(s)`);
352
354
await Promise.all(ps);
353
355
}
354
356
}
You can’t perform that action at this time.
0 commit comments