message: fix(release-notes): check that the returned data is an array
diff: @@ -33,6 +33,9 @@ async function getReleases() {
  const releases = await request.json();
  + // Check that the response is an array in case it was
  + // successful but returned an object
  + if (Array.isArray(releases)) {
  return releases.map(release => {
  const body = parseMarkdown(release.body);
  const published_at = parseDate(release.published_at);
  @@ -67,8 +70,11 @@ async function getReleases() {
  // All non-prerelease, non-alpha, non-beta, non-rc release
  return releasePattern.test(release.tag_name);
  });
  + } else {
  + return [];
  + }
  } catch (error) {
  - throw error;
  + return [];
  }
  }
  