renovate/lib/util/ignore.ts
2019-08-15 08:26:21 +02:00

15 lines
371 B
TypeScript

import { logger } from '../logger';
export function isSkipComment(comment?: string): boolean {
if (comment && comment.match(/^(renovate|pyup):/)) {
const command = comment
.split('#')[0]
.split(':')[1]
.trim();
if (command === 'ignore') {
return true;
}
logger.info('Unknown comment command: ' + command);
}
return false;
}