renovate/lib/util/ignore.ts
renovate[bot] 4f59b62da4
chore(deps): update dependency prettier to v2 (#5952)
* chore(deps): update dependency prettier to v2

* Run prettier-fix

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Jamie Magee <jamie.magee@gmail.com>
2020-04-12 18:09:36 +02:00

12 lines
339 B
TypeScript

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