File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments