Total Complexity | 3 |
Complexity/F | 1.5 |
Lines of Code | 20 |
Function Count | 2 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | /** @type {import('@/lib/Boost').BoostScriptHandler} */ |
||
2 | module.exports.handler = async function ({ |
||
3 | boost, git, repository, tools |
||
4 | }) { |
||
5 | boost.log('copying files to repository...'); |
||
6 | |||
7 | const filelist = tools.recursiveDirectoryCopy(`${boost.path}/files`, repository.path, (src, dest) => { |
||
8 | boost.log('copied file: ' + dest.replace(repository.path, '.')); |
||
9 | }); |
||
10 | |||
11 | boost.log('finished, total files copied: ' + filelist.length); |
||
12 | |||
13 | if (filelist.length) { |
||
14 | await git.add(filelist); |
||
15 | await git.commit('add dependabot support'); |
||
16 | |||
17 | boost.log('committed changes to git'); |
||
18 | } |
||
19 | |||
20 | return true; |
||
21 | }; |
||
22 |