diff --git a/.github/workflows/from-comment.js b/.github/workflows/from-comment.js index c8d7a87b3..358b96c4d 100644 --- a/.github/workflows/from-comment.js +++ b/.github/workflows/from-comment.js @@ -17,7 +17,7 @@ module.exports = async ({ context, core, github }) => { core.debug(`Files for PR #${context.issue.number}: ${files.length}`); const modifiedFiles = files - .filter((file) => file.additions > 0) + .filter((file) => file.status === "modified" || file.status === "added") .map((file) => file.filename); core.debug(`Modified files: ${modifiedFiles.join(" ")}`);