From 4ef12ff5982b9b829b083b2f6f483fec00d3f403 Mon Sep 17 00:00:00 2001
From: Rhys Arkins <rhys@arkins.net>
Date: Mon, 27 Aug 2018 17:05:24 +0200
Subject: [PATCH] fix: check val before migrating

---
 lib/config/migration.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/config/migration.js b/lib/config/migration.js
index 14c3bcd995..3d9c90efea 100644
--- a/lib/config/migration.js
+++ b/lib/config/migration.js
@@ -365,6 +365,7 @@ function migrateConfig(config) {
         }
       } else if (
         (key === 'prBody' || key.startsWith('commitMessage')) &&
+        val &&
         (val.includes('currentVersion') || val.includes('newVersion'))
       ) {
         isMigrated = true;
-- 
GitLab