Filter draft release

pull/2351/head
Jérémy Rialland 2022-10-19 13:47:48 +02:00 committed by Jérémy Rialland
parent ac6feb573d
commit 178a13f561
1 changed files with 2 additions and 1 deletions

View File

@ -26,6 +26,7 @@ const queryLastRelease = (after) => `query {
name
tagName
description
isDraft
}
}
}
@ -92,7 +93,7 @@ async function fetchReleases(after = 'null') {
concat = await fetchReleases(`"${pageInfo.endCursor}"`)
}
return [...releases.filter(Boolean), ...concat]
return [...releases.filter(({ isDraft }) => !isDraft), ...concat]
} catch (e) {
return fakeData
}