feat: adding linter for commits
This commit is contained in:
11
node_modules/conventional-changelog-conventionalcommits/add-bang-notes.js
generated
vendored
Normal file
11
node_modules/conventional-changelog-conventionalcommits/add-bang-notes.js
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
const { breakingHeaderPattern } = require('./parser-opts')()
|
||||
|
||||
module.exports = (commit) => {
|
||||
const match = commit.header.match(breakingHeaderPattern)
|
||||
if (match && commit.notes.length === 0) {
|
||||
const noteText = match[3] // the description of the change.
|
||||
commit.notes.push({
|
||||
text: noteText
|
||||
})
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user