From 0903fda0b1c19a1c941838f9f71f691de8a82a15 Mon Sep 17 00:00:00 2001 From: yoshihiro-shu Date: Sat, 27 Apr 2024 04:26:39 +0900 Subject: [PATCH] chore --- src/internal/github_api/client.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/internal/github_api/client.go b/src/internal/github_api/client.go index 82a005e0..6ec4ab33 100644 --- a/src/internal/github_api/client.go +++ b/src/internal/github_api/client.go @@ -38,7 +38,6 @@ func (c *client) GetRepositoryContent(path string) ([]byte, error) { // YOUR_TOKENには実際のアクセストークンを設定してください bearerToken := fmt.Sprintf("Bearer %s", c.token) req.Header.Add("Authorization", bearerToken) - fmt.Println("Authorization: ", bearerToken) // https://docs.github.com/ja/rest/repos/contents?apiVersion=2022-11-28#get-repository-content req.Header.Add("Accept", "application/vnd.github.raw+json") @@ -48,7 +47,8 @@ func (c *client) GetRepositoryContent(path string) ([]byte, error) { if err != nil { return nil, err } + fmt.Println("Status: ", resp.Status) + fmt.Println("Body: ", resp.Body) defer resp.Body.Close() - return io.ReadAll(resp.Body) }