Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion packages/owl-bot/src/copy-code.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1082,17 +1082,25 @@
logger.info(e);
}
}

excludes.forEach(e => logger.info(`exclude pattern: ${e}`));
// Copy the files from source to dest.
for (const deepCopy of yaml['deep-copy-regex'] ?? []) {
const regExp = toFrontMatchRegExp(deepCopy.source);
const sourcePathsToCopy = allSourcePaths.filter(path =>
regExp.test('/' + path)
);
for (const sourcePath of sourcePathsToCopy) {
logger.info('***')

Check failure on line 1093 in packages/owl-bot/src/copy-code.ts

View workflow job for this annotation

GitHub Actions / test (owl-bot)

Insert `;`
logger.info(`source path: ${sourcePath}`)

Check failure on line 1094 in packages/owl-bot/src/copy-code.ts

View workflow job for this annotation

GitHub Actions / test (owl-bot)

Insert `;`
const fullSourcePath = path.join(sourceDir, sourcePath);
logger.info(`full source path: ${fullSourcePath}`)

Check failure on line 1096 in packages/owl-bot/src/copy-code.ts

View workflow job for this annotation

GitHub Actions / test (owl-bot)

Insert `;`
const relPath = ('/' + sourcePath).replace(regExp, deepCopy.dest);
logger.info(`rel path ${relPath}`);
logger.info('***')

Check failure on line 1099 in packages/owl-bot/src/copy-code.ts

View workflow job for this annotation

GitHub Actions / test (owl-bot)

Insert `;`
if (excluded(relPath)) {
if (relPath.includes("META-INF")) {

Check warning on line 1101 in packages/owl-bot/src/copy-code.ts

View workflow job for this annotation

GitHub Actions / test (owl-bot)

Strings must use singlequote

Check failure on line 1101 in packages/owl-bot/src/copy-code.ts

View workflow job for this annotation

GitHub Actions / test (owl-bot)

Replace `"META-INF"` with `'META-INF'`
logger.info(`wont copy ${relPath}`);
}
continue;
}
const fullDestPath = path.join(destDir, relPath);
Expand Down
Loading