Removed some comments

This commit is contained in:
Frank 2022-10-13 20:53:45 +02:00
parent f5e2638529
commit 8f8f9db93b

View file

@ -18,21 +18,14 @@ String generateChangelog() {
def fixes = ""
def changes = ""
gitLogCmd.eachLine { gitLine ->
//Remove surrounding quotation marks generated by the git log command
def line = gitLine.substring(1, gitLine.length() - 1)
//Escape backslashes
//line = line.replaceAll(/(\\)/, "\\/")
//Escape quotation marks
//line = line.replaceAll('"', '\\\\"')
// if (line.toLowerCase().startsWith("[Version]"))
if (line.trim().startsWith("[")) {
def sline = line.split("]", 2)
if (sline.length == 2) {
def type = sline[0].trim().toLowerCase().substring(1)
def comment = sline[1].trim()
//filter out links to issues
//filter issue links
if (comment.contains("(")) {
def cline = comment.split("\\(", 2)
if (cline.length == 2 && cline[1].contains("#")) {
@ -70,8 +63,6 @@ String generateChangelog() {
changelog += "\n\n"
}
//Useful log so you can see what was generated in the Gradle output
println "Changelog since $lastTag:\n$changelog"
return changelog
}