fix array pushing

This commit is contained in:
Ville Saukkonen 2023-03-28 00:45:51 +03:00
parent bcec1128c8
commit e73abe7ded
3 changed files with 3 additions and 3 deletions

2
dist/index.js vendored
View file

@ -97,7 +97,7 @@ function analyzeCode(parsedDiff, prDetails) {
if (aiResponse) {
const newComments = createComment(file, chunk, aiResponse);
if (newComments) {
comments.concat(newComments);
comments.push(...newComments);
}
}
}