mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-12 23:16:26 +00:00
19 lines
391 B
JavaScript
19 lines
391 B
JavaScript
const { logger } = require('../logger');
|
|
|
|
module.exports = {
|
|
isSkipComment,
|
|
};
|
|
|
|
function isSkipComment(comment) {
|
|
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;
|
|
}
|