build: skip merge commits

pull/36/head
sualko 2020-05-17 16:56:12 +02:00
parent 728ebae956
commit 6d6a07dab4
1 changed files with 7 additions and 1 deletions

View File

@ -64,7 +64,13 @@ async function generateChangelog() {
const entries = {}; const entries = {};
logs.all.forEach(log => { logs.all.forEach(log => {
const [, type, scope, description] = log.message.match(/^([a-z]+)(?:\((\w+)\))?: (.+)/); const match = log.message.match(/^([a-z]+)(?:\((\w+)\))?: (.+)/);
if (!match) {
return;
}
const [, type, scope, description] = match;
const entry = { type, scope, description, issues: [] }; const entry = { type, scope, description, issues: [] };
if(log.body) { if(log.body) {