fix: handle empty changes in getChangedModules function
gitea/salix-front/pipeline/head This commit looks good
Details
gitea/salix-front/pipeline/head This commit looks good
Details
This commit is contained in:
parent
488d48e9e9
commit
22f1373c84
|
@ -16,6 +16,7 @@ async function getChangedModules() {
|
|||
let changedModules = new Set();
|
||||
const changes = getGitDiff(process.argv);
|
||||
for (const change of changes) {
|
||||
if (!change) continue;
|
||||
if (!FINDED_PATHS.some((prefix) => change.startsWith(prefix))) return '';
|
||||
const changedArray = [
|
||||
...changedModules,
|
||||
|
|
Loading…
Reference in New Issue