Skip to content

Commit 5b0f4f0

Browse files
author
Steve Ramage
committed
fix: Correct Changelog Generation (Resolves #297)
1 parent 753e26d commit 5b0f4f0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ dependencies {
8888
}
8989

9090
val relativePath = "CHANGELOG"
91-
val filePath = Paths.get(project.layout.buildDirectory.toString(), relativePath)
91+
val filePath = Paths.get(project.layout.buildDirectory.get().asFile.path, relativePath)
9292

9393
// Check if the file exists and read its content or use a default string
9494
val changeLogContents: String = if (Files.exists(filePath)) {

generate-changelog

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ SYSTEMD_MESSAGE=$(echo "<li><b>[$SYSTEMD_DATE]</b> Update of systemd unit metada
66

77
echo "<h3>Changes</h3>"
88
echo "<ul>"
9-
{ git log --format="%H %aE" | grep -v dependabot | head -n 100 | cut -d ' ' -f 1 | xargs -d "\n" -n 1 git log -n 1 "--pretty=format:<li><b>[%ad]</b> %s</li></br>%n" --date=format:%Y-%m-%d 2> /dev/null | grep -v -E "</b> (ci|chore|docs|build|style|refactor|test):" | head -n 20 | sed -E "s%#([0-9]+)%\<a href='https://github.com/SJrX/systemdUnitFilePlugin/issues/\1'>#\1</a>%g"; echo $SYSTEMD_MESSAGE; } | sort -r
9+
{ git log --format="%H %aE" | grep -v dependabot | head -n 100 | cut -d ' ' -f 1 | xargs -d "\n" -n 1 git log -n 1 "--pretty=format:<li><b>[%ad]</b> %s</li></br>%n" --date=format:%Y-%m-%d 2> /dev/null | grep -v -E "</b> (ci|chore|docs|build|style|refactor|test):" | head -n 20 | grep -v "Update gradle.properties" | sed -E "s%#([0-9]+)%\<a href='https://github.com/SJrX/systemdUnitFilePlugin/issues/\1'>#\1</a>%g"; echo $SYSTEMD_MESSAGE; } | sort -r
1010
echo "</ul>"

0 commit comments

Comments
 (0)