Skip to content

Commit

Permalink
Do not yield baseLinks that were already updated
Browse files Browse the repository at this point in the history
  • Loading branch information
hsz committed Jul 4, 2024
1 parent 60e47e8 commit 38891a1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/main/kotlin/org/jetbrains/changelog/Changelog.kt
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,12 @@ data class Changelog(
val url = build(repositoryUrl, it, null, false)
yield(it to url)
}
}

yieldAll(baseLinks)
yieldAll(
baseLinks.filterNot { (key, _) -> key in items.keys || key == unreleasedTerm }
)
} ?: yieldAll(baseLinks)

}
.sortedWith { (left), (right) ->
val leftIsSemVer = SEM_VER_REGEX.matches(left)
Expand Down

0 comments on commit 38891a1

Please sign in to comment.