renovate/lib/util/ignore.js

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;
}