mirror of
https://github.com/renovatebot/renovate.git
synced 2024-12-22 05:28:35 +00:00
14 lines
390 B
TypeScript
14 lines
390 B
TypeScript
import { logger } from '../logger';
|
|
import { regEx } from './regex';
|
|
|
|
export function isSkipComment(comment?: string): boolean {
|
|
if (comment && regEx(/^(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;
|
|
}
|