diff --git a/src/tags.ts b/src/tags.ts index 6616a91..7d47b96 100755 --- a/src/tags.ts +++ b/src/tags.ts @@ -114,10 +114,8 @@ export class Tags { maxTagsToFetch: number, tagResolver: TagResolver ): Promise { - const tags = sortTags( - await this.getTags(owner, repo, maxTagsToFetch), - tagResolver - ) + const filteredTags = filterTags(await this.getTags(owner, repo, maxTagsToFetch), tagResolver) + const tags = sortTags(filteredTags, tagResolver) let resultToTag: TagInfo | null let resultFromTag: TagInfo | null