mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-13 15:36:25 +00:00
ee2e155f1f
Co-authored-by: Rhys Arkins <rhys@arkins.net> Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
13 lines
379 B
TypeScript
13 lines
379 B
TypeScript
import { logger } from '../logger';
|
|
import { regEx } from './regex';
|
|
|
|
export function isSkipComment(comment?: string): boolean {
|
|
if (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;
|
|
}
|