mirror of
https://github.com/morhetz/gruvbox.git
synced 2025-11-16 23:33:38 -05:00
chore(package): re-init package with commitizen and standard-release
This commit is contained in:
39
node_modules/conventional-changelog-eslint/conventional-recommended-bump.js
generated
vendored
Normal file
39
node_modules/conventional-changelog-eslint/conventional-recommended-bump.js
generated
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
'use strict'
|
||||
|
||||
module.exports = {
|
||||
whatBump: commits => {
|
||||
let level = 2
|
||||
let breakings = 0
|
||||
let features = 0
|
||||
|
||||
commits.forEach(commit => {
|
||||
if (!commit.type) {
|
||||
return
|
||||
}
|
||||
|
||||
if (commit.type.toLowerCase() === 'breaking') {
|
||||
breakings += 1
|
||||
level = 0
|
||||
} else if (commit.type.toLowerCase() === 'new') {
|
||||
features += 1
|
||||
if (level === 2) {
|
||||
level = 1
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
return {
|
||||
level: level,
|
||||
reason: `There are ${breakings} breaking changes and ${features} features`
|
||||
}
|
||||
},
|
||||
parserOpts: {
|
||||
headerPattern: /^(\w*): (.*)$/,
|
||||
headerCorrespondence: [
|
||||
'type',
|
||||
'subject'
|
||||
],
|
||||
revertPattern: /^[rR]evert:\s([\s\S]*?)\s*This reverts commit (\w*)\./,
|
||||
revertCorrespondence: ['header', 'hash']
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user