Skip to content
This repository was archived by the owner on Aug 21, 2024. It is now read-only.

Commit 2c8a693

Browse files
committed
Support directories and filenames with spaces
1 parent ede8bbc commit 2c8a693

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

index.js

+2
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ const getPullRequestChangedFiles = async (octokit) => {
3434
filesChanged = filesChanged.filter(file => !file.startsWith(path))
3535
);
3636
}
37+
38+
filesChanged.map(filename => filename.replace(/\s/g, '\\ '));
3739
return filesChanged.filter(file => file.endsWith('.swift'));
3840
};
3941

0 commit comments

Comments
 (0)