feat: support parse github repo(project)
This commit is contained in:
15 files changed
+269
-55
No files matched your search
@@ -16,5 +16,6 @@ data class Config(
|
||||
val accessToken: String,
|
||||
val port: Int,
|
||||
val listeningGroups: List<Long>,
|
||||
val qweatherKey: String
|
||||
val qweatherKey: String,
|
||||
val githubKey: String,
|
||||
)
|
||||
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
* Copyright © 2024 RTAkland
|
||||
* Author: RTAkland
|
||||
* Date: 2024/9/12
|
||||
*/
|
||||
|
||||
|
||||
package cn.rtast.fancybot.entity.github
|
||||
|
||||
import com.google.gson.annotations.SerializedName
|
||||
|
||||
data class RepoInfo(
|
||||
val owner: Owner,
|
||||
@SerializedName("full_name")
|
||||
val fullName: String,
|
||||
val description: String,
|
||||
@SerializedName("forks_count")
|
||||
val forksCount: Int,
|
||||
val language: String,
|
||||
@SerializedName("stargazers_count")
|
||||
val starsCount: Int,
|
||||
@SerializedName("open_issues_count")
|
||||
val openIssueCount: Int
|
||||
) {
|
||||
data class Owner(
|
||||
@SerializedName("avatar_url")
|
||||
val avatarUrl: String,
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user