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