Skip to content
This repository was archived by the owner on Dec 19, 2025. It is now read-only.

Commit 92c59c6

Browse files
committed
Exclude drafts in rest call too
1 parent f66ef55 commit 92c59c6

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

packages/core/src/util/comparator.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ export function compareTags(options: CheckOptions, data: RestResponseTag[]): Res
1313

1414
export function compareReleases(options: CheckOptions, data: RestResponseRelease[]): RestResponseRelease|undefined {
1515
for (const item of data) {
16+
if (item.draft) {
17+
continue
18+
}
19+
1620
if (options.excludePrereleases && item.prerelease) {
1721
continue
1822
}

0 commit comments

Comments
 (0)