From 2255d4a5c07f08df12b5ef171c3b9bc22d6228be Mon Sep 17 00:00:00 2001 From: Rhys Arkins <rhys@arkins.net> Date: Sat, 11 Jan 2020 07:00:06 +0100 Subject: [PATCH] fix(changelog): add Boolean checks for tag.name --- lib/workers/pr/changelog/source-github.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/workers/pr/changelog/source-github.ts b/lib/workers/pr/changelog/source-github.ts index b805085ccb..daace7bdf2 100644 --- a/lib/workers/pr/changelog/source-github.ts +++ b/lib/workers/pr/changelog/source-github.ts @@ -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 }); -- GitLab