mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-14 08:36:26 +00:00
4f59b62da4
* 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>
12 lines
339 B
TypeScript
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;
|
|
}
|