Skip to content

Commit

Permalink
Filter by added/modified status
Browse files Browse the repository at this point in the history
Signed-off-by: Jack Baldry <[email protected]>
  • Loading branch information
jdbaldry committed Oct 26, 2024
1 parent c09e21b commit 2930fa6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/from-comment.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(" ")}`);
Expand Down

0 comments on commit 2930fa6

Please sign in to comment.