@robotical/martyblocks
Version:
MartyBlocks based on Scratch for Marty the Robot by Robotical
22 lines (18 loc) • 575 B
JavaScript
const { breakingHeaderPattern } = require('./utils')
function createParserOpts (config) {
return {
headerPattern: /^(\w*)(?:\((.*)\))?!?: (.*)$/,
breakingHeaderPattern,
headerCorrespondence: [
'type',
'scope',
'subject'
],
noteKeywords: ['BREAKING CHANGE', 'BREAKING-CHANGE'],
revertPattern: /^(?:Revert|revert:)\s"?([\s\S]+?)"?\s*This reverts commit (\w*)\./i,
revertCorrespondence: ['header', 'hash'],
issuePrefixes: config?.issuePrefixes || ['#']
}
}
module.exports.createParserOpts = createParserOpts