diff --git a/lib/workers/pr/index.js b/lib/workers/pr/index.js index 80ccf8bef163de0881709e4319df1140523e65ac..9193a107ba8d3ce39ce361d84b4e11e964ea1fbb 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 };