Skip to content

Commit

Permalink
fix(changelog): add Boolean checks for tag.name
Browse files Browse the repository at this point in the history
  • Loading branch information
rarkins committed Jan 11, 2020
1 parent 2715603 commit 2255d4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/workers/pr/changelog/source-github.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ async function getTags(
logger.debug({ repository }, 'repository has no Github tags');
}

return tags.map(tag => tag.name);
return tags.map(tag => tag.name).filter(Boolean);
} catch (err) {
logger.info({ sourceRepo: repository }, 'Failed to fetch Github tags');
logger.debug({ err });
Expand Down

0 comments on commit 2255d4a

Please sign in to comment.