fix: handle empty changes in getChangedModules function
gitea/salix-front/pipeline/head This commit looks good Details

This commit is contained in:
Alex Moreno 2025-04-07 13:31:52 +02:00
parent 488d48e9e9
commit 22f1373c84
1 changed files with 1 additions and 0 deletions

View File

@ -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,