renovate/lib/util/ignore.js
2018-11-15 18:42:01 +01:00

17 lines
349 B
JavaScript

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