Improved automatic command registration

This commit is contained in:
Martin Prokoph
2024-08-28 11:38:35 +02:00
parent 64d26e38b5
commit 8039bf3fec
5 changed files with 67 additions and 88 deletions

View File

@@ -50,7 +50,7 @@ allprojects {
releaseChangelog = {
def changes = new StringBuilder()
changes << "## MidnightLib v$project.version for $project.minecraft_version\n[View the changelog](https://www.github.com/TeamMidnightDust/MidnightLib/commits/)"
def proc = "git log --max-count=1 --pretty=format:%s".execute()
def proc = "git log --max-count=10 --pretty=format:%s".execute()
proc.in.eachLine { line ->
def processedLine = line.toString()
if (!processedLine.contains("New translations") && !processedLine.contains("Merge") && !processedLine.contains("branch")) {