Skip to content

Commit 18ac5fd

Browse files
authored
Merge pull request #95 from bdpiparva/github-release-task
Pick logs till latest commit
2 parents 2413e9d + 2bab30b commit 18ac5fd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ def getCommitsSinceLastTag(String tag) {
146146
def hashErrorOutput = new ByteArrayOutputStream()
147147
def commandToExecute = ["git", "log", "--no-merges", "--pretty=\"%h - %s\""]
148148
if (tag) {
149-
commandToExecute.add("${tag}..@")
149+
commandToExecute.add("${tag}..${project.gitRevision}")
150150
}
151151

152152
try {
@@ -233,7 +233,7 @@ github {
233233
tagName = "${project.fullVersion}${prerelease ? '-exp' : ''}"
234234
name = "${prerelease ? 'Experimental: ' : ''}${project.fullVersion}"
235235
def tag = getLatestTag(prerelease)
236-
def changelogHeader = tag ? "### Changelog ${tag}..${project.fullVersion}" : "### Changelog"
236+
def changelogHeader = tag ? "### Changelog ${tag}..${project.gitRevision.substring(0, 7)}" : "### Changelog"
237237

238238
body = """\n${changelogHeader}\n\n${getCommitsSinceLastTag(tag).replaceAll("\"", "")}\n""".stripIndent().trim()
239239
}

0 commit comments

Comments
 (0)