Only show commit subjects in changelog
This commit is contained in:
1 parent
892a614246
commit
f9cb49e4d3
1 file changed
+3
-1
@@ -44,7 +44,9 @@ object AppUpdater {
|
||||
val commitComparisonUrl = "$API_URL/compare/$curSha...$shortSha"
|
||||
val result = ghRequest(commitComparisonUrl).executeAndParseAs<GithubCommitComparison>()
|
||||
// TODO: Prettier format, Markdown?
|
||||
result.commits.joinToString("\n") { "${it.commit.message} (@${it.author.name})" }
|
||||
result.commits.joinToString("\n") { commit ->
|
||||
"${commit.commit.message.takeWhile { it != '\n' }} (@${commit.author.name})"
|
||||
}
|
||||
}.getOrDefault(workflowRun.title)
|
||||
return Release(shortSha, changelog, archiveUrl)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user