Skip to content

Commit 544bd31

Browse files
committed
feat: enable reading githubActions from fs
1 parent 530fb76 commit 544bd31

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lib/loader/path.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,11 @@ exports.create = async (path) => {
2525

2626
return simpleGit.revparse(['HEAD']);
2727
},
28-
loadFolder: () => {
28+
loadFolder: (folderPath) => {
2929

30-
// @todo
31-
return [];
30+
const fullPath = Path.join(path, folderPath);
31+
32+
return Fs.existsSync(fullPath) ? Fs.readdirSync(fullPath) : [];
3233
},
3334
loadFile: (filename, options = {}) => {
3435

0 commit comments

Comments
 (0)