mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2026-07-31 07:44:24 +02:00
Include an entry for updated translations in nightly changelog
This commit is contained in:
@@ -37,6 +37,7 @@ tasks.register("buildGitChangelog"){
|
||||
|
||||
def commitVersionCode = getVersionCode()
|
||||
def includedCommits = 0
|
||||
def includedTranslations = 0
|
||||
final def changelogNode = new Node(null, 'changelog')
|
||||
|
||||
allCommits.trim().eachLine { final line ->
|
||||
@@ -46,6 +47,11 @@ tasks.register("buildGitChangelog"){
|
||||
|
||||
final def (commitHash, commitMessage) = line.split(" ", 2)
|
||||
if (commitMessage.contains("Translated using Weblate")) {
|
||||
if (includedTranslations == 0) {
|
||||
final def releaseNode = new Node(changelogNode, 'release', [version: commitHash, versioncode: commitVersionCode--])
|
||||
def _ = new Node(releaseNode, 'change', [:], "Sync translations from Weblate")
|
||||
}
|
||||
includedTranslations++
|
||||
return true
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user