mirror of
https://github.com/morhetz/gruvbox.git
synced 2025-11-17 07:43:38 -05:00
chore(package): re-init package with commitizen and standard-release
This commit is contained in:
38
node_modules/conventional-changelog-angular/conventional-recommended-bump.js
generated
vendored
Normal file
38
node_modules/conventional-changelog-angular/conventional-recommended-bump.js
generated
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
'use strict';
|
||||
|
||||
module.exports = {
|
||||
whatBump: (commits) => {
|
||||
let level = 2;
|
||||
let breakings = 0;
|
||||
let features = 0;
|
||||
|
||||
commits.forEach(commit => {
|
||||
if (commit.notes.length > 0) {
|
||||
breakings += commit.notes.length;
|
||||
level = 0;
|
||||
} else if (commit.type === `feat`) {
|
||||
features += 1;
|
||||
if (level === 2) {
|
||||
level = 1;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
return {
|
||||
level: level,
|
||||
reason: `There are ${breakings} BREAKING CHANGES and ${features} features`
|
||||
};
|
||||
},
|
||||
|
||||
parserOpts: {
|
||||
headerPattern: /^(\w*)(?:\((.*)\))?\: (.*)$/,
|
||||
headerCorrespondence: [
|
||||
`type`,
|
||||
`scope`,
|
||||
`subject`
|
||||
],
|
||||
noteKeywords: `BREAKING CHANGE`,
|
||||
revertPattern: /^revert:\s([\s\S]*?)\s*This reverts commit (\w*)\./,
|
||||
revertCorrespondence: [`header`, `hash`]
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user