From 6d6a07dab4dcefe3e38f05c2180872a79409a6ac Mon Sep 17 00:00:00 2001 From: sualko Date: Sun, 17 May 2020 16:56:12 +0200 Subject: [PATCH] build: skip merge commits --- scripts/publish-release.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/scripts/publish-release.js b/scripts/publish-release.js index 7ff170c..1f1bc60 100644 --- a/scripts/publish-release.js +++ b/scripts/publish-release.js @@ -64,7 +64,13 @@ async function generateChangelog() { const entries = {}; 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: [] }; if(log.body) {