Skip to content

Commit

Permalink
feat: List more repository contributors
Browse files Browse the repository at this point in the history
  • Loading branch information
oSumAtrIX committed Jul 11, 2024
1 parent e92fbdf commit 19ebc82
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit 19ebc82

Please sign in to comment.