diff --git a/action/index.cjs b/action/index.cjs index e4e74c0..037ee73 100644 --- a/action/index.cjs +++ b/action/index.cjs @@ -150462,7 +150462,7 @@ const robot = (app) => { const ignoreList = (process.env.IGNORE || process.env.ignore || '') .split('\n') .filter((v) => v !== ''); - const ignorePatterns = (process.env.IGNORE_PATTERNS || '').split(','); + const ignorePatterns = (process.env.IGNORE_PATTERNS || '').split(',').filter((v) => Boolean(v.trim())); const filesNames = files?.map((file) => file.filename) || []; loglevel_1.default.debug('ignoreList:', ignoreList); loglevel_1.default.debug('ignorePatterns:', ignorePatterns); diff --git a/src/bot.ts b/src/bot.ts index f8ecd00..1debddb 100644 --- a/src/bot.ts +++ b/src/bot.ts @@ -101,7 +101,7 @@ export const robot = (app: Probot) => { const ignoreList = (process.env.IGNORE || process.env.ignore || '') .split('\n') .filter((v) => v !== ''); - const ignorePatterns = (process.env.IGNORE_PATTERNS || '').split(',') + const ignorePatterns = (process.env.IGNORE_PATTERNS || '').split(',').filter((v) => Boolean(v.trim())); const filesNames = files?.map((file) => file.filename) || []; log.debug('ignoreList:', ignoreList);