From 19ebc827bfb54a597dd06f9d99bdc820ee9977ee Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Thu, 11 Jul 2024 22:53:27 +0200 Subject: [PATCH] feat: List more repository contributors --- .../api/configuration/repository/GitHubBackendRepository.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/kotlin/app/revanced/api/configuration/repository/GitHubBackendRepository.kt b/src/main/kotlin/app/revanced/api/configuration/repository/GitHubBackendRepository.kt index a032f4d7..fed063f3 100644 --- a/src/main/kotlin/app/revanced/api/configuration/repository/GitHubBackendRepository.kt +++ b/src/main/kotlin/app/revanced/api/configuration/repository/GitHubBackendRepository.kt @@ -16,6 +16,7 @@ import kotlinx.coroutines.* import kotlinx.datetime.Instant import kotlinx.datetime.TimeZone import kotlinx.datetime.toLocalDateTime +import kotlinx.serialization.SerialName import kotlinx.serialization.Serializable class GitHubBackendRepository(client: HttpClient) : BackendRepository(client) { @@ -191,10 +192,9 @@ class Organization { class Repository { @Resource("/repos/{owner}/{repo}/contributors") - class Contributors(val owner: String, val repo: String) + class Contributors(val owner: String, val repo: String, @SerialName("per_page") val perPage: Int = 100) - @Resource("/repos/{owner}/{repo}/releases") - class Releases(val owner: String, val repo: String) { + class Releases { @Resource("/repos/{owner}/{repo}/releases/tags/{tag}") class Tag(val owner: String, val repo: String, val tag: String)