From d7ff63788bd0fdb8ea008e723372e6b5c1040834 Mon Sep 17 00:00:00 2001 From: wj00037 <1292876134@qq.com> Date: Mon, 30 Sep 2024 16:23:16 +0800 Subject: [PATCH] fix --- README.md | 2 +- auth/client.go | 2 +- auth/gitee.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 098405f..7ab4a72 100644 --- a/README.md +++ b/README.md @@ -14,5 +14,5 @@ v2.12.0](https://github.com/git-lfs/git-lfs/tree/v2.12.0/docs/api) server. 4. ~~认证方式支持token。~~ 5. ~~认证时校验用户在仓库内权限。~~ 6. 支持ssh。 -7. 仓库添加github action。 +7. ~~仓库添加github action。~~ 8. 添加日志。 diff --git a/auth/client.go b/auth/client.go index 64ed3c1..a2a4d68 100644 --- a/auth/client.go +++ b/auth/client.go @@ -31,7 +31,7 @@ func getParsedResponse(method, path string, header http.Header, body io.Reader, } else if response.StatusCode == http.StatusUnauthorized { return errors.New("unauthorized") } - return errors.New("error occured accessing gitee") + return errors.New("error occurred accessing gitee") } data, err := io.ReadAll(response.Body) if err != nil { diff --git a/auth/gitee.go b/auth/gitee.go index 6e16f71..ab7784d 100644 --- a/auth/gitee.go +++ b/auth/gitee.go @@ -10,7 +10,7 @@ import ( ) var ( - allowedRepos = []string{"wj00037", "openeuler", "src-openeuler"} + allowedRepos = []string{"openeuler", "src-openeuler"} uploadPermissions = []string{"admin", "developer"} downloadPermissions = []string{"admin", "developer", "read"} )