From 96abdd8f5f652845a4aa6774765f35bfefea2ac0 Mon Sep 17 00:00:00 2001 From: Him188 Date: Mon, 29 Jun 2020 16:32:19 +0800 Subject: [PATCH] fix github --- buildSrc/src/main/kotlin/upload/GitHub.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/buildSrc/src/main/kotlin/upload/GitHub.kt b/buildSrc/src/main/kotlin/upload/GitHub.kt index 486247e33..b84f84a23 100644 --- a/buildSrc/src/main/kotlin/upload/GitHub.kt +++ b/buildSrc/src/main/kotlin/upload/GitHub.kt @@ -94,13 +94,13 @@ object GitHub { /* * 只能获取1M以内/branch为master的sha * */ - class TargetTooLargeException() : Exception("Target TOO Large") + class TargetTooLargeException : Exception("Target TOO Large") suspend fun getShaSmart(repo: String, filePath: String, project: Project): String? { return withContext(Dispatchers.IO) { val response = Jsoup .connect( - "https://api.github.com/repos/mamoe/$repo/contents/$filePath?access_token=" + getGithubToken( + "https://api.github.com/repos/project-mirai/$repo/contents/$filePath?access_token=" + getGithubToken( project ) ) @@ -129,7 +129,7 @@ object GitHub { val resp = withContext(Dispatchers.IO) { Jsoup .connect( - "https://api.github.com/repos/mamoe/$repo/git/ref/heads/$branch?access_token=" + getGithubToken( + "https://api.github.com/repos/project-mirai/$repo/git/ref/heads/$branch?access_token=" + getGithubToken( project ) )