From cca41dc2faf43848e251ca440789903a482e49f5 Mon Sep 17 00:00:00 2001 From: Rhys Arkins Date: Thu, 14 Jun 2018 10:50:18 +0200 Subject: [PATCH] fix: add changelog json check --- lib/workers/pr/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/workers/pr/index.js b/lib/workers/pr/index.js index 80ccf8bef1..9193a107ba 100644 --- a/lib/workers/pr/index.js +++ b/lib/workers/pr/index.js @@ -124,10 +124,10 @@ async function ensurePr(prConfig) { }); if (logJSON) { - upgrade.githubName = logJSON.project.github; + upgrade.githubName = logJSON.project ? logJSON.project.github : undefined; upgrade.hasReleaseNotes = logJSON.hasReleaseNotes; upgrade.releases = []; - if (!commitRepos.includes(upgrade.githubName)) { + if (upgrade.githubName && !commitRepos.includes(upgrade.githubName)) { commitRepos.push(upgrade.githubName); logJSON.versions.forEach(version => { const release = { ...version };