Use commit author name instead of login name
Fix parse error caused by invalid GitHub account
This commit is contained in:
1 parent
1dba12ec94
commit
6fe5c1d666
2 files changed
+4
-5
No files matched your search
@@ -48,7 +48,7 @@ object AppUpdater {
|
||||
val result = ghStatement(commitComparisonUrl).executeAndParseAs<GithubCommitComparison>()
|
||||
// TODO: Prettier format, Markdown?
|
||||
result.commits.joinToString("\n") { commit ->
|
||||
"${commit.commit.message.takeWhile { it != '\n' }} (@${commit.author.name})"
|
||||
"${commit.commit.message.takeWhile { it != '\n' }} (@${commit.commit.author.name})"
|
||||
}
|
||||
}.getOrDefault(workflowRun.title)
|
||||
return Release(shortSha, changelog, archiveUrl)
|
||||
|
||||
@@ -1,16 +1,15 @@
|
||||
package tachiyomi.data.release
|
||||
|
||||
import kotlinx.serialization.SerialName
|
||||
import kotlinx.serialization.Serializable
|
||||
|
||||
@Serializable
|
||||
data class GithubCommitComparison(val commits: List<GithubCommit>)
|
||||
|
||||
@Serializable
|
||||
data class GithubCommit(val commit: GithubCommitDetail, val author: GithubCommitAuthor)
|
||||
data class GithubCommit(val commit: GithubCommitDetail)
|
||||
|
||||
@Serializable
|
||||
data class GithubCommitDetail(val message: String)
|
||||
data class GithubCommitDetail(val author: GithubCommitAuthor, val message: String)
|
||||
|
||||
@Serializable
|
||||
data class GithubCommitAuthor(@SerialName("login") val name: String)
|
||||
data class GithubCommitAuthor(val name: String)
|
||||
Reference in new issue
Block a user