fix: add changelog json check

This commit is contained in:
Rhys Arkins 2018-06-14 10:50:18 +02:00
parent bcd708fd7c
commit cca41dc2fa

View file

@ -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 };