From 44f6381466a5a285a087fe40f468b3b8b3bd0810 Mon Sep 17 00:00:00 2001 From: Jeremy Thomerson Date: Mon, 25 Feb 2019 15:30:00 -0500 Subject: [PATCH] fix: prevent duplicate headers from being added (#305) --- lib/lifecycles/changelog.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/lifecycles/changelog.js b/lib/lifecycles/changelog.js index fb2e0f9f3..038677883 100644 --- a/lib/lifecycles/changelog.js +++ b/lib/lifecycles/changelog.js @@ -5,6 +5,7 @@ const conventionalChangelog = require('conventional-changelog') const fs = require('fs') const runLifecycleScript = require('../run-lifecycle-script') const writeFile = require('../write-file') +const START_OF_LAST_RELEASE_PATTERN = /(^##? (?!Change Log$)|