fix(gh): only skip empty comment reviews. Closes #2445

This commit is contained in:
Folke Lemaitre 2025-11-05 08:39:27 +01:00
parent 913379ccd2
commit 1848d74e7c
No known key found for this signature in database
GPG key ID: 9B52594D560070AB

View file

@ -542,7 +542,7 @@ function M.review(review, level, ctx)
return not ctx.comment_skip[c.id]
end, review.comments or {})
if #comments == 0 and (not review.body or review.body:match("^%s*$")) then
if #comments == 0 and review.state == "COMMENTED" and (not review.body or review.body:match("^%s*$")) then
return ret
end