index.js
async function getReleaseInfo(context, childTags) {
  const tagShas = [];

  const releasesBySha = await fetchAllReleases(context, release => {
    if (childTags.has(release.tag_name)) {
      // put in reverse order
      // later releases come first,
      // but we want to iterate beginning oldest releases first
      tagShas.unshift(release.target_commitish);
      // tagSha.push(release.target_commitish);
    }
  });

  return {releasesBySha, tagShas};
}
async function getReleaseInfo(context, childTags) {
  const tagShas = [];

  const releasesBySha = await fetchAllReleases(context, release => {
    if (childTags.has(release.tag_name)) {
      // put in reverse order
      // later releases come first,
      // but we want to iterate beginning oldest releases first
      tagShas.unshift(release.target_commitish);
      // tagSha.push(release.target_commitish);
    }
  });

  return {releasesBySha, tagShas};
}
async function getReleaseInfo ( context , childTags ) { const tagShas = [ ] ; const releasesBySha = await fetchAllReleases ( context , release => { if ( childTags . has ( release . tag_name ) ) { // put in reverse order // later releases come first, // but we want to iterate beginning oldest releases first tagShas . unshift ( release . target_commitish ) ; // tagSha.push(release.target_commitish); } } ) ; return { releasesBySha , tagShas } ; }
fetches all releases also finds releases corresponding to provided tags
fetches all releases also finds releases corresponding to provided tags