]> git.frustrated-labs.net Git - gradle-changelog-plugin.git/commitdiff
feat: add changes from current branch first so that they appear before existing commi...
authorAlexander Goussas <[email protected]>
Fri, 24 Oct 2025 16:41:52 +0000 (11:41 -0500)
committerAlexander Goussas <[email protected]>
Fri, 24 Oct 2025 16:47:10 +0000 (11:47 -0500)
changelog-plugin/src/main/kotlin/io/github/aloussase/changelog/ChangelogTask.kt

index 9a88b7711e7c2589a3057941ec3d96d43c945d3e..0d27c82e18ad69a4a8d7de23e57a0212b6761a8a 100644 (file)
@@ -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 {