PHP WebShell
Текущая директория: /opt/BitGoJS/node_modules/conventional-changelog-conventionalcommits
Просмотр файла: utils.js
const breakingHeaderPattern = /^(\w*)(?:\((.*)\))?!: (.*)$/
module.exports.breakingHeaderPattern = breakingHeaderPattern
function addBangNotes (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
})
}
}
module.exports.addBangNotes = addBangNotes
Выполнить команду
Для локальной разработки. Не используйте в интернете!