From: Alexander Goussas Date: Fri, 24 Oct 2025 16:41:52 +0000 (-0500) Subject: feat: add changes from current branch first so that they appear before existing commi... X-Git-Url: http://git.frustrated-labs.net/?a=commitdiff_plain;h=ac6d0d3d13aca1022eba1283812a105236045553;p=gradle-changelog-plugin.git feat: add changes from current branch first so that they appear before existing commits in the entry --- diff --git a/changelog-plugin/src/main/kotlin/io/github/aloussase/changelog/ChangelogTask.kt b/changelog-plugin/src/main/kotlin/io/github/aloussase/changelog/ChangelogTask.kt index 9a88b77..0d27c82 100644 --- a/changelog-plugin/src/main/kotlin/io/github/aloussase/changelog/ChangelogTask.kt +++ b/changelog-plugin/src/main/kotlin/io/github/aloussase/changelog/ChangelogTask.kt @@ -47,8 +47,8 @@ abstract class ChangelogTask : DefaultTask() { if (it.release == changes.release) { ChangelogEntry( changes.release, - it.commits.toSet() - .union(changes.commits.toSet()) + changes.commits.toSet() + .union(it.commits.toSet()) .toList() ) } else {