From d2be252e09a5bda5c19fa0be842039d951c2199a Mon Sep 17 00:00:00 2001 From: CI Date: Tue, 16 Aug 2022 11:22:41 -0400 Subject: [PATCH 1/2] test: fix flaky gitea tests Signed-off-by: CI --- .../services/pull_request/gitea_test.go | 1 + .../services/scm_provider/gitea_test.go | 67 +- .../repos_gitea_go-sdk_contents_gitea.json | 2039 +++++++++++++++++ 3 files changed, 2096 insertions(+), 11 deletions(-) create mode 100644 applicationset/services/scm_provider/testdata/repos_gitea_go-sdk_contents_gitea.json diff --git a/applicationset/services/pull_request/gitea_test.go b/applicationset/services/pull_request/gitea_test.go index 8d334860188ea..9d03a98b84bfc 100644 --- a/applicationset/services/pull_request/gitea_test.go +++ b/applicationset/services/pull_request/gitea_test.go @@ -243,6 +243,7 @@ func giteaMockHandler(t *testing.T) func(http.ResponseWriter, *http.Request) { } } } + func TestGiteaList(t *testing.T) { ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { giteaMockHandler(t)(w, r) diff --git a/applicationset/services/scm_provider/gitea_test.go b/applicationset/services/scm_provider/gitea_test.go index c2be2b5dad799..e3815311d5b28 100644 --- a/applicationset/services/scm_provider/gitea_test.go +++ b/applicationset/services/scm_provider/gitea_test.go @@ -5,9 +5,11 @@ import ( "io" "net/http" "net/http/httptest" + "os" "testing" "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" "github.com/argoproj/argo-cd/v2/pkg/apis/applicationset/v1alpha1" ) @@ -217,6 +219,39 @@ func giteaMockHandler(t *testing.T) func(http.ResponseWriter, *http.Request) { if err != nil { t.Fail() } + case "/api/v1/repos/gitea/go-sdk/contents/README.md?ref=master": + _, err := io.WriteString(w, `{ + "name": "README.md", + "path": "README.md", + "sha": "3605625ef3f80dc092167b54e3f55eb0663d729f", + "last_commit_sha": "6b6fdd91ce769bb4641084e15f76554fb841bf27", + "type": "file", + "size": 1673, + "encoding": "base64", + "content": "IyBHaXRlYSBTREsgZm9yIEdvCgpbIVtMaWNlbnNlOiBNSVRdKGh0dHBzOi8vaW1nLnNoaWVsZHMuaW8vYmFkZ2UvTGljZW5zZS1NSVQtYmx1ZS5zdmcpXShodHRwczovL29wZW5zb3VyY2Uub3JnL2xpY2Vuc2VzL01JVCkgWyFbUmVsZWFzZV0oaHR0cHM6Ly9yYXN0ZXIuc2hpZWxkcy5pby9iYWRnZS9keW5hbWljL2pzb24uc3ZnP2xhYmVsPXJlbGVhc2UmdXJsPWh0dHBzOi8vZ2l0ZWEuY29tL2FwaS92MS9yZXBvcy9naXRlYS9nby1zZGsvcmVsZWFzZXMmcXVlcnk9JFswXS50YWdfbmFtZSldKGh0dHBzOi8vZ2l0ZWEuY29tL2dpdGVhL2dvLXNkay9yZWxlYXNlcykgWyFbQnVpbGQgU3RhdHVzXShodHRwczovL2Ryb25lLmdpdGVhLmNvbS9hcGkvYmFkZ2VzL2dpdGVhL2dvLXNkay9zdGF0dXMuc3ZnKV0oaHR0cHM6Ly9kcm9uZS5naXRlYS5jb20vZ2l0ZWEvZ28tc2RrKSBbIVtKb2luIHRoZSBjaGF0IGF0IGh0dHBzOi8vaW1nLnNoaWVsZHMuaW8vZGlzY29yZC8zMjI1Mzg5NTQxMTkxODQzODQuc3ZnXShodHRwczovL2ltZy5zaGllbGRzLmlvL2Rpc2NvcmQvMzIyNTM4OTU0MTE5MTg0Mzg0LnN2ZyldKGh0dHBzOi8vZGlzY29yZC5nZy9HaXRlYSkgWyFbXShodHRwczovL2ltYWdlcy5taWNyb2JhZGdlci5jb20vYmFkZ2VzL2ltYWdlL2dpdGVhL2dpdGVhLnN2ZyldKGh0dHA6Ly9taWNyb2JhZGdlci5jb20vaW1hZ2VzL2dpdGVhL2dpdGVhICJHZXQgeW91ciBvd24gaW1hZ2UgYmFkZ2Ugb24gbWljcm9iYWRnZXIuY29tIikgWyFbR28gUmVwb3J0IENhcmRdKGh0dHBzOi8vZ29yZXBvcnRjYXJkLmNvbS9iYWRnZS9jb2RlLmdpdGVhLmlvL3NkayldKGh0dHBzOi8vZ29yZXBvcnRjYXJkLmNvbS9yZXBvcnQvY29kZS5naXRlYS5pby9zZGspIFshW0dvRG9jXShodHRwczovL2dvZG9jLm9yZy9jb2RlLmdpdGVhLmlvL3Nkay9naXRlYT9zdGF0dXMuc3ZnKV0oaHR0cHM6Ly9nb2RvYy5vcmcvY29kZS5naXRlYS5pby9zZGsvZ2l0ZWEpCgpUaGlzIHByb2plY3QgYWN0cyBhcyBhIGNsaWVudCBTREsgaW1wbGVtZW50YXRpb24gd3JpdHRlbiBpbiBHbyB0byBpbnRlcmFjdCB3aXRoIHRoZSBHaXRlYSBBUEkgaW1wbGVtZW50YXRpb24uIEZvciBmdXJ0aGVyIGluZm9ybWF0aW9ucyB0YWtlIGEgbG9vayBhdCB0aGUgY3VycmVudCBbZG9jdW1lbnRhdGlvbl0oaHR0cHM6Ly9nb2RvYy5vcmcvY29kZS5naXRlYS5pby9zZGsvZ2l0ZWEpLgoKTm90ZTogZnVuY3Rpb24gYXJndW1lbnRzIGFyZSBlc2NhcGVkIGJ5IHRoZSBTREsuCgojIyBVc2UgaXQKCmBgYGdvCmltcG9ydCAiY29kZS5naXRlYS5pby9zZGsvZ2l0ZWEiCmBgYAoKIyMgVmVyc2lvbiBSZXF1aXJlbWVudHMKICogZ28gPj0gMS4xMwogKiBnaXRlYSA+PSAxLjExCgojIyBDb250cmlidXRpbmcKCkZvcmsgLT4gUGF0Y2ggLT4gUHVzaCAtPiBQdWxsIFJlcXVlc3QKCiMjIEF1dGhvcnMKCiogW01haW50YWluZXJzXShodHRwczovL2dpdGh1Yi5jb20vb3Jncy9nby1naXRlYS9wZW9wbGUpCiogW0NvbnRyaWJ1dG9yc10oaHR0cHM6Ly9naXRodWIuY29tL2dvLWdpdGVhL2dvLXNkay9ncmFwaHMvY29udHJpYnV0b3JzKQoKIyMgTGljZW5zZQoKVGhpcyBwcm9qZWN0IGlzIHVuZGVyIHRoZSBNSVQgTGljZW5zZS4gU2VlIHRoZSBbTElDRU5TRV0oTElDRU5TRSkgZmlsZSBmb3IgdGhlIGZ1bGwgbGljZW5zZSB0ZXh0Lgo=", + "target": null, + "url": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/README.md?ref=master", + "html_url": "https://gitea.com/gitea/go-sdk/src/branch/master/README.md", + "git_url": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/3605625ef3f80dc092167b54e3f55eb0663d729f", + "download_url": "https://gitea.com/gitea/go-sdk/raw/branch/master/README.md", + "submodule_git_url": null, + "_links": { + "self": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/README.md?ref=master", + "git": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/3605625ef3f80dc092167b54e3f55eb0663d729f", + "html": "https://gitea.com/gitea/go-sdk/src/branch/master/README.md" + } +} +`) + require.NoError(t, err) + case "/api/v1/repos/gitea/go-sdk/contents/gitea?ref=master": + response, err := os.ReadFile("testdata/repos_gitea_go-sdk_contents_gitea.json") + require.NoError(t, err) + _, err = io.WriteString(w, string(response)) + require.NoError(t, err) + case "/api/v1/repos/gitea/go-sdk/contents/notathing?ref=master": + w.WriteHeader(404) + _, err := io.WriteString(w, `{"errors":["object does not exist [id: , rel_path: notathing]"],"message":"GetContentsOrList","url":"https://gitea.com/api/swagger"}`) + require.NoError(t, err) default: _, err := io.WriteString(w, `[]`) if err != nil { @@ -295,22 +330,32 @@ func TestGiteaListRepos(t *testing.T) { } func TestGiteaHasPath(t *testing.T) { - host, _ := NewGiteaProvider(context.Background(), "gitea", "", "https://gitea.com/", false, false) + ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + giteaMockHandler(t)(w, r) + })) + defer ts.Close() + host, _ := NewGiteaProvider(context.Background(), "gitea", "", ts.URL, false, false) repo := &Repository{ Organization: "gitea", Repository: "go-sdk", Branch: "master", } - ok, err := host.RepoHasPath(context.Background(), repo, "README.md") - assert.Nil(t, err) - assert.True(t, ok) - // directory - ok, err = host.RepoHasPath(context.Background(), repo, "gitea") - assert.Nil(t, err) - assert.True(t, ok) + t.Run("file exists", func(t *testing.T) { + ok, err := host.RepoHasPath(context.Background(), repo, "README.md") + assert.Nil(t, err) + assert.True(t, ok) + }) + + t.Run("directory exists", func(t *testing.T) { + ok, err := host.RepoHasPath(context.Background(), repo, "gitea") + assert.Nil(t, err) + assert.True(t, ok) + }) - ok, err = host.RepoHasPath(context.Background(), repo, "notathing") - assert.Nil(t, err) - assert.False(t, ok) + t.Run("does not exists", func(t *testing.T) { + ok, err := host.RepoHasPath(context.Background(), repo, "notathing") + assert.Nil(t, err) + assert.False(t, ok) + }) } diff --git a/applicationset/services/scm_provider/testdata/repos_gitea_go-sdk_contents_gitea.json b/applicationset/services/scm_provider/testdata/repos_gitea_go-sdk_contents_gitea.json new file mode 100644 index 0000000000000..752ad5bf026eb --- /dev/null +++ b/applicationset/services/scm_provider/testdata/repos_gitea_go-sdk_contents_gitea.json @@ -0,0 +1,2039 @@ +[ + { + "name": "admin_cron.go", + "path": "gitea/admin_cron.go", + "sha": "84316da2b141a493cd738b9d7f64480309d240a1", + "last_commit_sha": "6b6fdd91ce769bb4641084e15f76554fb841bf27", + "type": "file", + "size": 1390, + "encoding": null, + "content": null, + "target": null, + "url": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/admin_cron.go?ref=master", + "html_url": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/admin_cron.go", + "git_url": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/84316da2b141a493cd738b9d7f64480309d240a1", + "download_url": "https://gitea.com/gitea/go-sdk/raw/branch/master/gitea/admin_cron.go", + "submodule_git_url": null, + "_links": { + "self": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/admin_cron.go?ref=master", + "git": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/84316da2b141a493cd738b9d7f64480309d240a1", + "html": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/admin_cron.go" + } + }, + { + "name": "admin_org.go", + "path": "gitea/admin_org.go", + "sha": "26bf81fb4d9087978875c8f557237fd80a67d007", + "last_commit_sha": "6b6fdd91ce769bb4641084e15f76554fb841bf27", + "type": "file", + "size": 1215, + "encoding": null, + "content": null, + "target": null, + "url": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/admin_org.go?ref=master", + "html_url": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/admin_org.go", + "git_url": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/26bf81fb4d9087978875c8f557237fd80a67d007", + "download_url": "https://gitea.com/gitea/go-sdk/raw/branch/master/gitea/admin_org.go", + "submodule_git_url": null, + "_links": { + "self": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/admin_org.go?ref=master", + "git": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/26bf81fb4d9087978875c8f557237fd80a67d007", + "html": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/admin_org.go" + } + }, + { + "name": "admin_repo.go", + "path": "gitea/admin_repo.go", + "sha": "8666690cde763762e23a0afe13fef4cb53024792", + "last_commit_sha": "6b6fdd91ce769bb4641084e15f76554fb841bf27", + "type": "file", + "size": 696, + "encoding": null, + "content": null, + "target": null, + "url": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/admin_repo.go?ref=master", + "html_url": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/admin_repo.go", + "git_url": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/8666690cde763762e23a0afe13fef4cb53024792", + "download_url": "https://gitea.com/gitea/go-sdk/raw/branch/master/gitea/admin_repo.go", + "submodule_git_url": null, + "_links": { + "self": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/admin_repo.go?ref=master", + "git": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/8666690cde763762e23a0afe13fef4cb53024792", + "html": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/admin_repo.go" + } + }, + { + "name": "admin_test.go", + "path": "gitea/admin_test.go", + "sha": "e5a49e37f21b7f9526a0a620de100a27a4f960b2", + "last_commit_sha": "23e13163375a05e827c98e567e9b9fcfa086972b", + "type": "file", + "size": 1270, + "encoding": null, + "content": null, + "target": null, + "url": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/admin_test.go?ref=master", + "html_url": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/admin_test.go", + "git_url": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/e5a49e37f21b7f9526a0a620de100a27a4f960b2", + "download_url": "https://gitea.com/gitea/go-sdk/raw/branch/master/gitea/admin_test.go", + "submodule_git_url": null, + "_links": { + "self": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/admin_test.go?ref=master", + "git": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/e5a49e37f21b7f9526a0a620de100a27a4f960b2", + "html": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/admin_test.go" + } + }, + { + "name": "admin_user.go", + "path": "gitea/admin_user.go", + "sha": "172f0645c9bb7c5179a9291b6527effaff4deeb1", + "last_commit_sha": "13d2d23dfc79d0b346589a7981569876da6917e6", + "type": "file", + "size": 4622, + "encoding": null, + "content": null, + "target": null, + "url": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/admin_user.go?ref=master", + "html_url": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/admin_user.go", + "git_url": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/172f0645c9bb7c5179a9291b6527effaff4deeb1", + "download_url": "https://gitea.com/gitea/go-sdk/raw/branch/master/gitea/admin_user.go", + "submodule_git_url": null, + "_links": { + "self": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/admin_user.go?ref=master", + "git": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/172f0645c9bb7c5179a9291b6527effaff4deeb1", + "html": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/admin_user.go" + } + }, + { + "name": "agent_darwin.go", + "path": "gitea/agent_darwin.go", + "sha": "d6aeab245caa313e0290539853bff45cf511daaf", + "last_commit_sha": "e5f0c189f2c720238cdcea8aaa15eff33a901a68", + "type": "symlink", + "size": 14, + "encoding": null, + "content": null, + "target": "agent_linux.go", + "url": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/agent_darwin.go?ref=master", + "html_url": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/agent_darwin.go", + "git_url": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/d6aeab245caa313e0290539853bff45cf511daaf", + "download_url": "https://gitea.com/gitea/go-sdk/raw/branch/master/gitea/agent_darwin.go", + "submodule_git_url": null, + "_links": { + "self": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/agent_darwin.go?ref=master", + "git": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/d6aeab245caa313e0290539853bff45cf511daaf", + "html": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/agent_darwin.go" + } + }, + { + "name": "agent_linux.go", + "path": "gitea/agent_linux.go", + "sha": "a375525badefc0748af860745059cc87711ca9df", + "last_commit_sha": "e5f0c189f2c720238cdcea8aaa15eff33a901a68", + "type": "file", + "size": 708, + "encoding": null, + "content": null, + "target": null, + "url": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/agent_linux.go?ref=master", + "html_url": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/agent_linux.go", + "git_url": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/a375525badefc0748af860745059cc87711ca9df", + "download_url": "https://gitea.com/gitea/go-sdk/raw/branch/master/gitea/agent_linux.go", + "submodule_git_url": null, + "_links": { + "self": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/agent_linux.go?ref=master", + "git": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/a375525badefc0748af860745059cc87711ca9df", + "html": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/agent_linux.go" + } + }, + { + "name": "agent_windows.go", + "path": "gitea/agent_windows.go", + "sha": "865fa379c962fa407a8d7a9d0fb5840ea229c3bb", + "last_commit_sha": "e5f0c189f2c720238cdcea8aaa15eff33a901a68", + "type": "file", + "size": 538, + "encoding": null, + "content": null, + "target": null, + "url": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/agent_windows.go?ref=master", + "html_url": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/agent_windows.go", + "git_url": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/865fa379c962fa407a8d7a9d0fb5840ea229c3bb", + "download_url": "https://gitea.com/gitea/go-sdk/raw/branch/master/gitea/agent_windows.go", + "submodule_git_url": null, + "_links": { + "self": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/agent_windows.go?ref=master", + "git": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/865fa379c962fa407a8d7a9d0fb5840ea229c3bb", + "html": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/agent_windows.go" + } + }, + { + "name": "attachment.go", + "path": "gitea/attachment.go", + "sha": "f02c721418739faee065740139e0ba066d7ea3d9", + "last_commit_sha": "8fab37e7407b734426a5a8aab31f464598b43706", + "type": "file", + "size": 3879, + "encoding": null, + "content": null, + "target": null, + "url": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/attachment.go?ref=master", + "html_url": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/attachment.go", + "git_url": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/f02c721418739faee065740139e0ba066d7ea3d9", + "download_url": "https://gitea.com/gitea/go-sdk/raw/branch/master/gitea/attachment.go", + "submodule_git_url": null, + "_links": { + "self": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/attachment.go?ref=master", + "git": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/f02c721418739faee065740139e0ba066d7ea3d9", + "html": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/attachment.go" + } + }, + { + "name": "client.go", + "path": "gitea/client.go", + "sha": "b8c610bcc65f567ac6ae6868bb6fb08fbd00afd1", + "last_commit_sha": "cc14c63cccfaf871f9e684cabbd0d8adf26c1e58", + "type": "file", + "size": 10977, + "encoding": null, + "content": null, + "target": null, + "url": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/client.go?ref=master", + "html_url": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/client.go", + "git_url": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/b8c610bcc65f567ac6ae6868bb6fb08fbd00afd1", + "download_url": "https://gitea.com/gitea/go-sdk/raw/branch/master/gitea/client.go", + "submodule_git_url": null, + "_links": { + "self": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/client.go?ref=master", + "git": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/b8c610bcc65f567ac6ae6868bb6fb08fbd00afd1", + "html": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/client.go" + } + }, + { + "name": "doc.go", + "path": "gitea/doc.go", + "sha": "6bd327db4623c07be1ac3c0b4a3a61acdae0c883", + "last_commit_sha": "0d0c73819d94d0cc14ee466d4170a068a2dbb818", + "type": "file", + "size": 213, + "encoding": null, + "content": null, + "target": null, + "url": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/doc.go?ref=master", + "html_url": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/doc.go", + "git_url": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/6bd327db4623c07be1ac3c0b4a3a61acdae0c883", + "download_url": "https://gitea.com/gitea/go-sdk/raw/branch/master/gitea/doc.go", + "submodule_git_url": null, + "_links": { + "self": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/doc.go?ref=master", + "git": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/6bd327db4623c07be1ac3c0b4a3a61acdae0c883", + "html": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/doc.go" + } + }, + { + "name": "fork.go", + "path": "gitea/fork.go", + "sha": "0373c352bc30396f5119a1d2185fa29f0a71e43d", + "last_commit_sha": "8fab37e7407b734426a5a8aab31f464598b43706", + "type": "file", + "size": 1537, + "encoding": null, + "content": null, + "target": null, + "url": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/fork.go?ref=master", + "html_url": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/fork.go", + "git_url": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/0373c352bc30396f5119a1d2185fa29f0a71e43d", + "download_url": "https://gitea.com/gitea/go-sdk/raw/branch/master/gitea/fork.go", + "submodule_git_url": null, + "_links": { + "self": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/fork.go?ref=master", + "git": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/0373c352bc30396f5119a1d2185fa29f0a71e43d", + "html": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/fork.go" + } + }, + { + "name": "git_blob.go", + "path": "gitea/git_blob.go", + "sha": "7668672dc07e9584495a86b475dba5ad76078f8e", + "last_commit_sha": "6b6fdd91ce769bb4641084e15f76554fb841bf27", + "type": "file", + "size": 834, + "encoding": null, + "content": null, + "target": null, + "url": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/git_blob.go?ref=master", + "html_url": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/git_blob.go", + "git_url": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/7668672dc07e9584495a86b475dba5ad76078f8e", + "download_url": "https://gitea.com/gitea/go-sdk/raw/branch/master/gitea/git_blob.go", + "submodule_git_url": null, + "_links": { + "self": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/git_blob.go?ref=master", + "git": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/7668672dc07e9584495a86b475dba5ad76078f8e", + "html": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/git_blob.go" + } + }, + { + "name": "git_hook.go", + "path": "gitea/git_hook.go", + "sha": "d8fbf71bd964052dddae752ab2a5448b3dc0c62e", + "last_commit_sha": "6b6fdd91ce769bb4641084e15f76554fb841bf27", + "type": "file", + "size": 2369, + "encoding": null, + "content": null, + "target": null, + "url": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/git_hook.go?ref=master", + "html_url": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/git_hook.go", + "git_url": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/d8fbf71bd964052dddae752ab2a5448b3dc0c62e", + "download_url": "https://gitea.com/gitea/go-sdk/raw/branch/master/gitea/git_hook.go", + "submodule_git_url": null, + "_links": { + "self": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/git_hook.go?ref=master", + "git": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/d8fbf71bd964052dddae752ab2a5448b3dc0c62e", + "html": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/git_hook.go" + } + }, + { + "name": "go.mod", + "path": "gitea/go.mod", + "sha": "f549458bd761942824833d19ea77d8cbd1059fc9", + "last_commit_sha": "e5f0c189f2c720238cdcea8aaa15eff33a901a68", + "type": "file", + "size": 219, + "encoding": null, + "content": null, + "target": null, + "url": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/go.mod?ref=master", + "html_url": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/go.mod", + "git_url": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/f549458bd761942824833d19ea77d8cbd1059fc9", + "download_url": "https://gitea.com/gitea/go-sdk/raw/branch/master/gitea/go.mod", + "submodule_git_url": null, + "_links": { + "self": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/go.mod?ref=master", + "git": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/f549458bd761942824833d19ea77d8cbd1059fc9", + "html": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/go.mod" + } + }, + { + "name": "go.sum", + "path": "gitea/go.sum", + "sha": "419cfb963daeb05584d1a24603a1dcf65a185671", + "last_commit_sha": "e5f0c189f2c720238cdcea8aaa15eff33a901a68", + "type": "file", + "size": 3134, + "encoding": null, + "content": null, + "target": null, + "url": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/go.sum?ref=master", + "html_url": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/go.sum", + "git_url": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/419cfb963daeb05584d1a24603a1dcf65a185671", + "download_url": "https://gitea.com/gitea/go-sdk/raw/branch/master/gitea/go.sum", + "submodule_git_url": null, + "_links": { + "self": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/go.sum?ref=master", + "git": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/419cfb963daeb05584d1a24603a1dcf65a185671", + "html": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/go.sum" + } + }, + { + "name": "helper.go", + "path": "gitea/helper.go", + "sha": "ff8038b1285c38f32acb9316c2ff6dea47af0254", + "last_commit_sha": "aa13606bc631b708eff7b5233ba3ae9335b715f9", + "type": "file", + "size": 492, + "encoding": null, + "content": null, + "target": null, + "url": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/helper.go?ref=master", + "html_url": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/helper.go", + "git_url": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/ff8038b1285c38f32acb9316c2ff6dea47af0254", + "download_url": "https://gitea.com/gitea/go-sdk/raw/branch/master/gitea/helper.go", + "submodule_git_url": null, + "_links": { + "self": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/helper.go?ref=master", + "git": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/ff8038b1285c38f32acb9316c2ff6dea47af0254", + "html": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/helper.go" + } + }, + { + "name": "hook.go", + "path": "gitea/hook.go", + "sha": "67a7518b68da21ceb590c3ad161ea1d99b27c980", + "last_commit_sha": "13d2d23dfc79d0b346589a7981569876da6917e6", + "type": "file", + "size": 6675, + "encoding": null, + "content": null, + "target": null, + "url": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/hook.go?ref=master", + "html_url": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/hook.go", + "git_url": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/67a7518b68da21ceb590c3ad161ea1d99b27c980", + "download_url": "https://gitea.com/gitea/go-sdk/raw/branch/master/gitea/hook.go", + "submodule_git_url": null, + "_links": { + "self": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/hook.go?ref=master", + "git": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/67a7518b68da21ceb590c3ad161ea1d99b27c980", + "html": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/hook.go" + } + }, + { + "name": "hook_validate.go", + "path": "gitea/hook_validate.go", + "sha": "5ef614938170e753d39cfc999252ce3978e93a42", + "last_commit_sha": "321bd56d939c37dfc3a6e455a02c3672a5f31ff8", + "type": "file", + "size": 1628, + "encoding": null, + "content": null, + "target": null, + "url": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/hook_validate.go?ref=master", + "html_url": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/hook_validate.go", + "git_url": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/5ef614938170e753d39cfc999252ce3978e93a42", + "download_url": "https://gitea.com/gitea/go-sdk/raw/branch/master/gitea/hook_validate.go", + "submodule_git_url": null, + "_links": { + "self": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/hook_validate.go?ref=master", + "git": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/5ef614938170e753d39cfc999252ce3978e93a42", + "html": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/hook_validate.go" + } + }, + { + "name": "hook_validate_test.go", + "path": "gitea/hook_validate_test.go", + "sha": "946d4c28f5a05da545df953eb3c557edc17103fe", + "last_commit_sha": "321bd56d939c37dfc3a6e455a02c3672a5f31ff8", + "type": "file", + "size": 3116, + "encoding": null, + "content": null, + "target": null, + "url": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/hook_validate_test.go?ref=master", + "html_url": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/hook_validate_test.go", + "git_url": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/946d4c28f5a05da545df953eb3c557edc17103fe", + "download_url": "https://gitea.com/gitea/go-sdk/raw/branch/master/gitea/hook_validate_test.go", + "submodule_git_url": null, + "_links": { + "self": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/hook_validate_test.go?ref=master", + "git": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/946d4c28f5a05da545df953eb3c557edc17103fe", + "html": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/hook_validate_test.go" + } + }, + { + "name": "httpsign.go", + "path": "gitea/httpsign.go", + "sha": "49b005954e5e5171ebd5dd4887ee8bbd7bc7b9bb", + "last_commit_sha": "e5f0c189f2c720238cdcea8aaa15eff33a901a68", + "type": "file", + "size": 6373, + "encoding": null, + "content": null, + "target": null, + "url": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/httpsign.go?ref=master", + "html_url": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/httpsign.go", + "git_url": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/49b005954e5e5171ebd5dd4887ee8bbd7bc7b9bb", + "download_url": "https://gitea.com/gitea/go-sdk/raw/branch/master/gitea/httpsign.go", + "submodule_git_url": null, + "_links": { + "self": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/httpsign.go?ref=master", + "git": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/49b005954e5e5171ebd5dd4887ee8bbd7bc7b9bb", + "html": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/httpsign.go" + } + }, + { + "name": "issue.go", + "path": "gitea/issue.go", + "sha": "660e7c5130bf9c62da9958d00abbb6bbd05106a9", + "last_commit_sha": "559cc2fb2a8ac8071aa1389df753d912c69f83ef", + "type": "file", + "size": 8914, + "encoding": null, + "content": null, + "target": null, + "url": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/issue.go?ref=master", + "html_url": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/issue.go", + "git_url": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/660e7c5130bf9c62da9958d00abbb6bbd05106a9", + "download_url": "https://gitea.com/gitea/go-sdk/raw/branch/master/gitea/issue.go", + "submodule_git_url": null, + "_links": { + "self": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/issue.go?ref=master", + "git": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/660e7c5130bf9c62da9958d00abbb6bbd05106a9", + "html": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/issue.go" + } + }, + { + "name": "issue_comment.go", + "path": "gitea/issue_comment.go", + "sha": "8131a6edc279c96e9c72143533d257681f96f061", + "last_commit_sha": "6b6fdd91ce769bb4641084e15f76554fb841bf27", + "type": "file", + "size": 5177, + "encoding": null, + "content": null, + "target": null, + "url": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/issue_comment.go?ref=master", + "html_url": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/issue_comment.go", + "git_url": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/8131a6edc279c96e9c72143533d257681f96f061", + "download_url": "https://gitea.com/gitea/go-sdk/raw/branch/master/gitea/issue_comment.go", + "submodule_git_url": null, + "_links": { + "self": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/issue_comment.go?ref=master", + "git": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/8131a6edc279c96e9c72143533d257681f96f061", + "html": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/issue_comment.go" + } + }, + { + "name": "issue_comment_test.go", + "path": "gitea/issue_comment_test.go", + "sha": "10a96d098b1d151a72e700f4cb977f70aa2f3a7c", + "last_commit_sha": "63e97e127ca1834e4faff8c84d25a7b668e84484", + "type": "file", + "size": 2855, + "encoding": null, + "content": null, + "target": null, + "url": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/issue_comment_test.go?ref=master", + "html_url": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/issue_comment_test.go", + "git_url": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/10a96d098b1d151a72e700f4cb977f70aa2f3a7c", + "download_url": "https://gitea.com/gitea/go-sdk/raw/branch/master/gitea/issue_comment_test.go", + "submodule_git_url": null, + "_links": { + "self": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/issue_comment_test.go?ref=master", + "git": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/10a96d098b1d151a72e700f4cb977f70aa2f3a7c", + "html": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/issue_comment_test.go" + } + }, + { + "name": "issue_label.go", + "path": "gitea/issue_label.go", + "sha": "f343ee5ef6a529bfdc0ec70ae5728d81c5a7782b", + "last_commit_sha": "6b6fdd91ce769bb4641084e15f76554fb841bf27", + "type": "file", + "size": 6828, + "encoding": null, + "content": null, + "target": null, + "url": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/issue_label.go?ref=master", + "html_url": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/issue_label.go", + "git_url": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/f343ee5ef6a529bfdc0ec70ae5728d81c5a7782b", + "download_url": "https://gitea.com/gitea/go-sdk/raw/branch/master/gitea/issue_label.go", + "submodule_git_url": null, + "_links": { + "self": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/issue_label.go?ref=master", + "git": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/f343ee5ef6a529bfdc0ec70ae5728d81c5a7782b", + "html": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/issue_label.go" + } + }, + { + "name": "issue_label_test.go", + "path": "gitea/issue_label_test.go", + "sha": "d57736b72cfd254202798cfa55d5d5fb2b021d5c", + "last_commit_sha": "4debc6ca4b111808c3ad376eedd7ddef50d81d2d", + "type": "file", + "size": 4313, + "encoding": null, + "content": null, + "target": null, + "url": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/issue_label_test.go?ref=master", + "html_url": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/issue_label_test.go", + "git_url": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/d57736b72cfd254202798cfa55d5d5fb2b021d5c", + "download_url": "https://gitea.com/gitea/go-sdk/raw/branch/master/gitea/issue_label_test.go", + "submodule_git_url": null, + "_links": { + "self": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/issue_label_test.go?ref=master", + "git": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/d57736b72cfd254202798cfa55d5d5fb2b021d5c", + "html": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/issue_label_test.go" + } + }, + { + "name": "issue_milestone.go", + "path": "gitea/issue_milestone.go", + "sha": "4e0d79a9f93e03f8c3cedddb39d474a32c2e5a70", + "last_commit_sha": "8fab37e7407b734426a5a8aab31f464598b43706", + "type": "file", + "size": 7777, + "encoding": null, + "content": null, + "target": null, + "url": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/issue_milestone.go?ref=master", + "html_url": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/issue_milestone.go", + "git_url": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/4e0d79a9f93e03f8c3cedddb39d474a32c2e5a70", + "download_url": "https://gitea.com/gitea/go-sdk/raw/branch/master/gitea/issue_milestone.go", + "submodule_git_url": null, + "_links": { + "self": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/issue_milestone.go?ref=master", + "git": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/4e0d79a9f93e03f8c3cedddb39d474a32c2e5a70", + "html": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/issue_milestone.go" + } + }, + { + "name": "issue_milestone_test.go", + "path": "gitea/issue_milestone_test.go", + "sha": "e751689930f8034aecdf1189335b1acd1f063c5a", + "last_commit_sha": "8fab37e7407b734426a5a8aab31f464598b43706", + "type": "file", + "size": 2919, + "encoding": null, + "content": null, + "target": null, + "url": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/issue_milestone_test.go?ref=master", + "html_url": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/issue_milestone_test.go", + "git_url": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/e751689930f8034aecdf1189335b1acd1f063c5a", + "download_url": "https://gitea.com/gitea/go-sdk/raw/branch/master/gitea/issue_milestone_test.go", + "submodule_git_url": null, + "_links": { + "self": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/issue_milestone_test.go?ref=master", + "git": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/e751689930f8034aecdf1189335b1acd1f063c5a", + "html": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/issue_milestone_test.go" + } + }, + { + "name": "issue_reaction.go", + "path": "gitea/issue_reaction.go", + "sha": "b45c0666466af2ce596803aebcdc7c1caabdfa91", + "last_commit_sha": "6b6fdd91ce769bb4641084e15f76554fb841bf27", + "type": "file", + "size": 3831, + "encoding": null, + "content": null, + "target": null, + "url": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/issue_reaction.go?ref=master", + "html_url": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/issue_reaction.go", + "git_url": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/b45c0666466af2ce596803aebcdc7c1caabdfa91", + "download_url": "https://gitea.com/gitea/go-sdk/raw/branch/master/gitea/issue_reaction.go", + "submodule_git_url": null, + "_links": { + "self": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/issue_reaction.go?ref=master", + "git": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/b45c0666466af2ce596803aebcdc7c1caabdfa91", + "html": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/issue_reaction.go" + } + }, + { + "name": "issue_stopwatch.go", + "path": "gitea/issue_stopwatch.go", + "sha": "ebb0b8ae4042a168ae02fa007fd26e762f2b961b", + "last_commit_sha": "6b6fdd91ce769bb4641084e15f76554fb841bf27", + "type": "file", + "size": 2091, + "encoding": null, + "content": null, + "target": null, + "url": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/issue_stopwatch.go?ref=master", + "html_url": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/issue_stopwatch.go", + "git_url": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/ebb0b8ae4042a168ae02fa007fd26e762f2b961b", + "download_url": "https://gitea.com/gitea/go-sdk/raw/branch/master/gitea/issue_stopwatch.go", + "submodule_git_url": null, + "_links": { + "self": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/issue_stopwatch.go?ref=master", + "git": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/ebb0b8ae4042a168ae02fa007fd26e762f2b961b", + "html": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/issue_stopwatch.go" + } + }, + { + "name": "issue_subscription.go", + "path": "gitea/issue_subscription.go", + "sha": "86853c718683cb1e22fcbdf2c49fb99785ece2e5", + "last_commit_sha": "6b6fdd91ce769bb4641084e15f76554fb841bf27", + "type": "file", + "size": 3059, + "encoding": null, + "content": null, + "target": null, + "url": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/issue_subscription.go?ref=master", + "html_url": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/issue_subscription.go", + "git_url": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/86853c718683cb1e22fcbdf2c49fb99785ece2e5", + "download_url": "https://gitea.com/gitea/go-sdk/raw/branch/master/gitea/issue_subscription.go", + "submodule_git_url": null, + "_links": { + "self": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/issue_subscription.go?ref=master", + "git": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/86853c718683cb1e22fcbdf2c49fb99785ece2e5", + "html": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/issue_subscription.go" + } + }, + { + "name": "issue_subscription_test.go", + "path": "gitea/issue_subscription_test.go", + "sha": "585e9f3da8c189832dc00fac1c84c17fe22e0789", + "last_commit_sha": "688ee1978eddf7d0721b4a87bb64e5f35292a66e", + "type": "file", + "size": 1646, + "encoding": null, + "content": null, + "target": null, + "url": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/issue_subscription_test.go?ref=master", + "html_url": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/issue_subscription_test.go", + "git_url": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/585e9f3da8c189832dc00fac1c84c17fe22e0789", + "download_url": "https://gitea.com/gitea/go-sdk/raw/branch/master/gitea/issue_subscription_test.go", + "submodule_git_url": null, + "_links": { + "self": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/issue_subscription_test.go?ref=master", + "git": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/585e9f3da8c189832dc00fac1c84c17fe22e0789", + "html": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/issue_subscription_test.go" + } + }, + { + "name": "issue_test.go", + "path": "gitea/issue_test.go", + "sha": "9db6fd8f0dd9b8ede88f5d836adefa7763c93c1f", + "last_commit_sha": "603e4358f80d195dfe4d1c677716096df95656ce", + "type": "file", + "size": 4878, + "encoding": null, + "content": null, + "target": null, + "url": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/issue_test.go?ref=master", + "html_url": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/issue_test.go", + "git_url": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/9db6fd8f0dd9b8ede88f5d836adefa7763c93c1f", + "download_url": "https://gitea.com/gitea/go-sdk/raw/branch/master/gitea/issue_test.go", + "submodule_git_url": null, + "_links": { + "self": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/issue_test.go?ref=master", + "git": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/9db6fd8f0dd9b8ede88f5d836adefa7763c93c1f", + "html": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/issue_test.go" + } + }, + { + "name": "issue_tracked_time.go", + "path": "gitea/issue_tracked_time.go", + "sha": "c558516237db0ec901e47baefb15e97955a3399c", + "last_commit_sha": "6b6fdd91ce769bb4641084e15f76554fb841bf27", + "type": "file", + "size": 4541, + "encoding": null, + "content": null, + "target": null, + "url": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/issue_tracked_time.go?ref=master", + "html_url": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/issue_tracked_time.go", + "git_url": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/c558516237db0ec901e47baefb15e97955a3399c", + "download_url": "https://gitea.com/gitea/go-sdk/raw/branch/master/gitea/issue_tracked_time.go", + "submodule_git_url": null, + "_links": { + "self": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/issue_tracked_time.go?ref=master", + "git": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/c558516237db0ec901e47baefb15e97955a3399c", + "html": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/issue_tracked_time.go" + } + }, + { + "name": "list_options.go", + "path": "gitea/list_options.go", + "sha": "fb1aff4e8321b87a990c7f7e742dd7d12877ed9d", + "last_commit_sha": "223f0a75e02d6c7545f80f588436f950d270b58d", + "type": "file", + "size": 1086, + "encoding": null, + "content": null, + "target": null, + "url": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/list_options.go?ref=master", + "html_url": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/list_options.go", + "git_url": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/fb1aff4e8321b87a990c7f7e742dd7d12877ed9d", + "download_url": "https://gitea.com/gitea/go-sdk/raw/branch/master/gitea/list_options.go", + "submodule_git_url": null, + "_links": { + "self": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/list_options.go?ref=master", + "git": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/fb1aff4e8321b87a990c7f7e742dd7d12877ed9d", + "html": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/list_options.go" + } + }, + { + "name": "main_test.go", + "path": "gitea/main_test.go", + "sha": "40c81e52c994577d0eb3de8b996f4d19cafebfcf", + "last_commit_sha": "8fab37e7407b734426a5a8aab31f464598b43706", + "type": "file", + "size": 3628, + "encoding": null, + "content": null, + "target": null, + "url": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/main_test.go?ref=master", + "html_url": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/main_test.go", + "git_url": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/40c81e52c994577d0eb3de8b996f4d19cafebfcf", + "download_url": "https://gitea.com/gitea/go-sdk/raw/branch/master/gitea/main_test.go", + "submodule_git_url": null, + "_links": { + "self": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/main_test.go?ref=master", + "git": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/40c81e52c994577d0eb3de8b996f4d19cafebfcf", + "html": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/main_test.go" + } + }, + { + "name": "notifications.go", + "path": "gitea/notifications.go", + "sha": "640cc4daecefb7f68d71b49c3d1836af61dadcc5", + "last_commit_sha": "99a9de3172a04322ce7d59e5ff30de3025bdd949", + "type": "file", + "size": 9164, + "encoding": null, + "content": null, + "target": null, + "url": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/notifications.go?ref=master", + "html_url": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/notifications.go", + "git_url": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/640cc4daecefb7f68d71b49c3d1836af61dadcc5", + "download_url": "https://gitea.com/gitea/go-sdk/raw/branch/master/gitea/notifications.go", + "submodule_git_url": null, + "_links": { + "self": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/notifications.go?ref=master", + "git": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/640cc4daecefb7f68d71b49c3d1836af61dadcc5", + "html": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/notifications.go" + } + }, + { + "name": "notifications_test.go", + "path": "gitea/notifications_test.go", + "sha": "bdaffdc79c40cce2e2f63e7ec222f68399903b4a", + "last_commit_sha": "99a9de3172a04322ce7d59e5ff30de3025bdd949", + "type": "file", + "size": 4688, + "encoding": null, + "content": null, + "target": null, + "url": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/notifications_test.go?ref=master", + "html_url": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/notifications_test.go", + "git_url": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/bdaffdc79c40cce2e2f63e7ec222f68399903b4a", + "download_url": "https://gitea.com/gitea/go-sdk/raw/branch/master/gitea/notifications_test.go", + "submodule_git_url": null, + "_links": { + "self": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/notifications_test.go?ref=master", + "git": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/bdaffdc79c40cce2e2f63e7ec222f68399903b4a", + "html": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/notifications_test.go" + } + }, + { + "name": "oauth2.go", + "path": "gitea/oauth2.go", + "sha": "bbdfdafb671bebe338c80dfde624931f075d52e8", + "last_commit_sha": "9c81fa936f743956e75496a8610997c10c1b2b42", + "type": "file", + "size": 3110, + "encoding": null, + "content": null, + "target": null, + "url": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/oauth2.go?ref=master", + "html_url": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/oauth2.go", + "git_url": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/bbdfdafb671bebe338c80dfde624931f075d52e8", + "download_url": "https://gitea.com/gitea/go-sdk/raw/branch/master/gitea/oauth2.go", + "submodule_git_url": null, + "_links": { + "self": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/oauth2.go?ref=master", + "git": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/bbdfdafb671bebe338c80dfde624931f075d52e8", + "html": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/oauth2.go" + } + }, + { + "name": "oauth2_test.go", + "path": "gitea/oauth2_test.go", + "sha": "e18c760601faf7a122fd68d2aec4dbcfe3ff73fe", + "last_commit_sha": "688ee1978eddf7d0721b4a87bb64e5f35292a66e", + "type": "file", + "size": 1287, + "encoding": null, + "content": null, + "target": null, + "url": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/oauth2_test.go?ref=master", + "html_url": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/oauth2_test.go", + "git_url": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/e18c760601faf7a122fd68d2aec4dbcfe3ff73fe", + "download_url": "https://gitea.com/gitea/go-sdk/raw/branch/master/gitea/oauth2_test.go", + "submodule_git_url": null, + "_links": { + "self": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/oauth2_test.go?ref=master", + "git": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/e18c760601faf7a122fd68d2aec4dbcfe3ff73fe", + "html": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/oauth2_test.go" + } + }, + { + "name": "org.go", + "path": "gitea/org.go", + "sha": "82e1bf540d9f84975531d06c8c3d6aaa4cd4da93", + "last_commit_sha": "13d2d23dfc79d0b346589a7981569876da6917e6", + "type": "file", + "size": 4958, + "encoding": null, + "content": null, + "target": null, + "url": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/org.go?ref=master", + "html_url": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/org.go", + "git_url": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/82e1bf540d9f84975531d06c8c3d6aaa4cd4da93", + "download_url": "https://gitea.com/gitea/go-sdk/raw/branch/master/gitea/org.go", + "submodule_git_url": null, + "_links": { + "self": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/org.go?ref=master", + "git": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/82e1bf540d9f84975531d06c8c3d6aaa4cd4da93", + "html": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/org.go" + } + }, + { + "name": "org_member.go", + "path": "gitea/org_member.go", + "sha": "79dad4e87c65bea975e01bdbbbc1a9a703f7007f", + "last_commit_sha": "de34275bb64efe8baccdd54ee1a337202d4364ce", + "type": "file", + "size": 4540, + "encoding": null, + "content": null, + "target": null, + "url": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/org_member.go?ref=master", + "html_url": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/org_member.go", + "git_url": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/79dad4e87c65bea975e01bdbbbc1a9a703f7007f", + "download_url": "https://gitea.com/gitea/go-sdk/raw/branch/master/gitea/org_member.go", + "submodule_git_url": null, + "_links": { + "self": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/org_member.go?ref=master", + "git": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/79dad4e87c65bea975e01bdbbbc1a9a703f7007f", + "html": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/org_member.go" + } + }, + { + "name": "org_member_test.go", + "path": "gitea/org_member_test.go", + "sha": "e017e1d06ae8774da273bc2035468caed48c44ea", + "last_commit_sha": "de34275bb64efe8baccdd54ee1a337202d4364ce", + "type": "file", + "size": 1954, + "encoding": null, + "content": null, + "target": null, + "url": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/org_member_test.go?ref=master", + "html_url": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/org_member_test.go", + "git_url": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/e017e1d06ae8774da273bc2035468caed48c44ea", + "download_url": "https://gitea.com/gitea/go-sdk/raw/branch/master/gitea/org_member_test.go", + "submodule_git_url": null, + "_links": { + "self": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/org_member_test.go?ref=master", + "git": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/e017e1d06ae8774da273bc2035468caed48c44ea", + "html": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/org_member_test.go" + } + }, + { + "name": "org_team.go", + "path": "gitea/org_team.go", + "sha": "e4de31e05ae328b098a05be02bce3e105e382b9d", + "last_commit_sha": "8fab37e7407b734426a5a8aab31f464598b43706", + "type": "file", + "size": 9809, + "encoding": null, + "content": null, + "target": null, + "url": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/org_team.go?ref=master", + "html_url": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/org_team.go", + "git_url": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/e4de31e05ae328b098a05be02bce3e105e382b9d", + "download_url": "https://gitea.com/gitea/go-sdk/raw/branch/master/gitea/org_team.go", + "submodule_git_url": null, + "_links": { + "self": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/org_team.go?ref=master", + "git": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/e4de31e05ae328b098a05be02bce3e105e382b9d", + "html": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/org_team.go" + } + }, + { + "name": "org_team_test.go", + "path": "gitea/org_team_test.go", + "sha": "1869182b2dff09a8a0ca5ed9fcdb2152c8efcceb", + "last_commit_sha": "468d48c978d64da85819dc2f6cc5a4b1c8b95303", + "type": "file", + "size": 1471, + "encoding": null, + "content": null, + "target": null, + "url": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/org_team_test.go?ref=master", + "html_url": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/org_team_test.go", + "git_url": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/1869182b2dff09a8a0ca5ed9fcdb2152c8efcceb", + "download_url": "https://gitea.com/gitea/go-sdk/raw/branch/master/gitea/org_team_test.go", + "submodule_git_url": null, + "_links": { + "self": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/org_team_test.go?ref=master", + "git": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/1869182b2dff09a8a0ca5ed9fcdb2152c8efcceb", + "html": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/org_team_test.go" + } + }, + { + "name": "org_test.go", + "path": "gitea/org_test.go", + "sha": "93a1ba75713ecca6bb45ed55c210acf4e98726b1", + "last_commit_sha": "b81847d03d3f5dc546807e179f32b604370141ab", + "type": "file", + "size": 1124, + "encoding": null, + "content": null, + "target": null, + "url": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/org_test.go?ref=master", + "html_url": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/org_test.go", + "git_url": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/93a1ba75713ecca6bb45ed55c210acf4e98726b1", + "download_url": "https://gitea.com/gitea/go-sdk/raw/branch/master/gitea/org_test.go", + "submodule_git_url": null, + "_links": { + "self": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/org_test.go?ref=master", + "git": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/93a1ba75713ecca6bb45ed55c210acf4e98726b1", + "html": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/org_test.go" + } + }, + { + "name": "pull.go", + "path": "gitea/pull.go", + "sha": "e277847976462bee899c84dba87acf841a44e57e", + "last_commit_sha": "8fab37e7407b734426a5a8aab31f464598b43706", + "type": "file", + "size": 11902, + "encoding": null, + "content": null, + "target": null, + "url": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/pull.go?ref=master", + "html_url": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/pull.go", + "git_url": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/e277847976462bee899c84dba87acf841a44e57e", + "download_url": "https://gitea.com/gitea/go-sdk/raw/branch/master/gitea/pull.go", + "submodule_git_url": null, + "_links": { + "self": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/pull.go?ref=master", + "git": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/e277847976462bee899c84dba87acf841a44e57e", + "html": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/pull.go" + } + }, + { + "name": "pull_review.go", + "path": "gitea/pull_review.go", + "sha": "6d32c4f12468bfa8bf4e22f7995806361f42dc93", + "last_commit_sha": "319a978c6c717c754717ceccf8c784f07ba9b582", + "type": "file", + "size": 10930, + "encoding": null, + "content": null, + "target": null, + "url": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/pull_review.go?ref=master", + "html_url": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/pull_review.go", + "git_url": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/6d32c4f12468bfa8bf4e22f7995806361f42dc93", + "download_url": "https://gitea.com/gitea/go-sdk/raw/branch/master/gitea/pull_review.go", + "submodule_git_url": null, + "_links": { + "self": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/pull_review.go?ref=master", + "git": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/6d32c4f12468bfa8bf4e22f7995806361f42dc93", + "html": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/pull_review.go" + } + }, + { + "name": "pull_review_test.go", + "path": "gitea/pull_review_test.go", + "sha": "949ab9d3ea868be7db94fb8fc021870ec2a8203e", + "last_commit_sha": "8fab37e7407b734426a5a8aab31f464598b43706", + "type": "file", + "size": 7151, + "encoding": null, + "content": null, + "target": null, + "url": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/pull_review_test.go?ref=master", + "html_url": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/pull_review_test.go", + "git_url": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/949ab9d3ea868be7db94fb8fc021870ec2a8203e", + "download_url": "https://gitea.com/gitea/go-sdk/raw/branch/master/gitea/pull_review_test.go", + "submodule_git_url": null, + "_links": { + "self": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/pull_review_test.go?ref=master", + "git": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/949ab9d3ea868be7db94fb8fc021870ec2a8203e", + "html": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/pull_review_test.go" + } + }, + { + "name": "pull_test.go", + "path": "gitea/pull_test.go", + "sha": "f3b31b99b91caed430eef14e8c4d74c96a9668c7", + "last_commit_sha": "8fab37e7407b734426a5a8aab31f464598b43706", + "type": "file", + "size": 6596, + "encoding": null, + "content": null, + "target": null, + "url": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/pull_test.go?ref=master", + "html_url": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/pull_test.go", + "git_url": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/f3b31b99b91caed430eef14e8c4d74c96a9668c7", + "download_url": "https://gitea.com/gitea/go-sdk/raw/branch/master/gitea/pull_test.go", + "submodule_git_url": null, + "_links": { + "self": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/pull_test.go?ref=master", + "git": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/f3b31b99b91caed430eef14e8c4d74c96a9668c7", + "html": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/pull_test.go" + } + }, + { + "name": "release.go", + "path": "gitea/release.go", + "sha": "3200f2034309912f0e73669680181da5274c29eb", + "last_commit_sha": "8fab37e7407b734426a5a8aab31f464598b43706", + "type": "file", + "size": 6240, + "encoding": null, + "content": null, + "target": null, + "url": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/release.go?ref=master", + "html_url": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/release.go", + "git_url": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/3200f2034309912f0e73669680181da5274c29eb", + "download_url": "https://gitea.com/gitea/go-sdk/raw/branch/master/gitea/release.go", + "submodule_git_url": null, + "_links": { + "self": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/release.go?ref=master", + "git": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/3200f2034309912f0e73669680181da5274c29eb", + "html": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/release.go" + } + }, + { + "name": "release_test.go", + "path": "gitea/release_test.go", + "sha": "450fe8f54f4e7563dd6b0beb3308715291d3d099", + "last_commit_sha": "603e4358f80d195dfe4d1c677716096df95656ce", + "type": "file", + "size": 3805, + "encoding": null, + "content": null, + "target": null, + "url": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/release_test.go?ref=master", + "html_url": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/release_test.go", + "git_url": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/450fe8f54f4e7563dd6b0beb3308715291d3d099", + "download_url": "https://gitea.com/gitea/go-sdk/raw/branch/master/gitea/release_test.go", + "submodule_git_url": null, + "_links": { + "self": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/release_test.go?ref=master", + "git": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/450fe8f54f4e7563dd6b0beb3308715291d3d099", + "html": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/release_test.go" + } + }, + { + "name": "repo.go", + "path": "gitea/repo.go", + "sha": "8f0e346abef035f2b265b0918b3c7db976ac787c", + "last_commit_sha": "8fab37e7407b734426a5a8aab31f464598b43706", + "type": "file", + "size": 20691, + "encoding": null, + "content": null, + "target": null, + "url": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/repo.go?ref=master", + "html_url": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/repo.go", + "git_url": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/8f0e346abef035f2b265b0918b3c7db976ac787c", + "download_url": "https://gitea.com/gitea/go-sdk/raw/branch/master/gitea/repo.go", + "submodule_git_url": null, + "_links": { + "self": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/repo.go?ref=master", + "git": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/8f0e346abef035f2b265b0918b3c7db976ac787c", + "html": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/repo.go" + } + }, + { + "name": "repo_branch.go", + "path": "gitea/repo_branch.go", + "sha": "0b7e873c4fa153d72ec3593ac07618363adf4e92", + "last_commit_sha": "6b6fdd91ce769bb4641084e15f76554fb841bf27", + "type": "file", + "size": 5098, + "encoding": null, + "content": null, + "target": null, + "url": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/repo_branch.go?ref=master", + "html_url": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/repo_branch.go", + "git_url": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/0b7e873c4fa153d72ec3593ac07618363adf4e92", + "download_url": "https://gitea.com/gitea/go-sdk/raw/branch/master/gitea/repo_branch.go", + "submodule_git_url": null, + "_links": { + "self": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/repo_branch.go?ref=master", + "git": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/0b7e873c4fa153d72ec3593ac07618363adf4e92", + "html": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/repo_branch.go" + } + }, + { + "name": "repo_branch_protection.go", + "path": "gitea/repo_branch_protection.go", + "sha": "22bd7b962954e5876e14f4d6887528fd3f009482", + "last_commit_sha": "6b6fdd91ce769bb4641084e15f76554fb841bf27", + "type": "file", + "size": 8401, + "encoding": null, + "content": null, + "target": null, + "url": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/repo_branch_protection.go?ref=master", + "html_url": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/repo_branch_protection.go", + "git_url": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/22bd7b962954e5876e14f4d6887528fd3f009482", + "download_url": "https://gitea.com/gitea/go-sdk/raw/branch/master/gitea/repo_branch_protection.go", + "submodule_git_url": null, + "_links": { + "self": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/repo_branch_protection.go?ref=master", + "git": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/22bd7b962954e5876e14f4d6887528fd3f009482", + "html": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/repo_branch_protection.go" + } + }, + { + "name": "repo_branch_test.go", + "path": "gitea/repo_branch_test.go", + "sha": "c4f3e0d0015761c0b910e1ad0043e353f0fdfbe7", + "last_commit_sha": "603e4358f80d195dfe4d1c677716096df95656ce", + "type": "file", + "size": 5553, + "encoding": null, + "content": null, + "target": null, + "url": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/repo_branch_test.go?ref=master", + "html_url": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/repo_branch_test.go", + "git_url": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/c4f3e0d0015761c0b910e1ad0043e353f0fdfbe7", + "download_url": "https://gitea.com/gitea/go-sdk/raw/branch/master/gitea/repo_branch_test.go", + "submodule_git_url": null, + "_links": { + "self": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/repo_branch_test.go?ref=master", + "git": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/c4f3e0d0015761c0b910e1ad0043e353f0fdfbe7", + "html": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/repo_branch_test.go" + } + }, + { + "name": "repo_collaborator.go", + "path": "gitea/repo_collaborator.go", + "sha": "ab730df1689467e28e3aa57901d531ba39770214", + "last_commit_sha": "8fab37e7407b734426a5a8aab31f464598b43706", + "type": "file", + "size": 4612, + "encoding": null, + "content": null, + "target": null, + "url": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/repo_collaborator.go?ref=master", + "html_url": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/repo_collaborator.go", + "git_url": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/ab730df1689467e28e3aa57901d531ba39770214", + "download_url": "https://gitea.com/gitea/go-sdk/raw/branch/master/gitea/repo_collaborator.go", + "submodule_git_url": null, + "_links": { + "self": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/repo_collaborator.go?ref=master", + "git": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/ab730df1689467e28e3aa57901d531ba39770214", + "html": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/repo_collaborator.go" + } + }, + { + "name": "repo_collaborator_test.go", + "path": "gitea/repo_collaborator_test.go", + "sha": "686021419cc2317ab5d3ef3bbce1591682c68a0c", + "last_commit_sha": "8fab37e7407b734426a5a8aab31f464598b43706", + "type": "file", + "size": 2117, + "encoding": null, + "content": null, + "target": null, + "url": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/repo_collaborator_test.go?ref=master", + "html_url": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/repo_collaborator_test.go", + "git_url": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/686021419cc2317ab5d3ef3bbce1591682c68a0c", + "download_url": "https://gitea.com/gitea/go-sdk/raw/branch/master/gitea/repo_collaborator_test.go", + "submodule_git_url": null, + "_links": { + "self": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/repo_collaborator_test.go?ref=master", + "git": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/686021419cc2317ab5d3ef3bbce1591682c68a0c", + "html": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/repo_collaborator_test.go" + } + }, + { + "name": "repo_commit.go", + "path": "gitea/repo_commit.go", + "sha": "62c0ab31c745c00b100d3ba804694d4d6ef55997", + "last_commit_sha": "f3ebdb8afe832310703fa4522e8ea586e69b7afb", + "type": "file", + "size": 4608, + "encoding": null, + "content": null, + "target": null, + "url": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/repo_commit.go?ref=master", + "html_url": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/repo_commit.go", + "git_url": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/62c0ab31c745c00b100d3ba804694d4d6ef55997", + "download_url": "https://gitea.com/gitea/go-sdk/raw/branch/master/gitea/repo_commit.go", + "submodule_git_url": null, + "_links": { + "self": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/repo_commit.go?ref=master", + "git": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/62c0ab31c745c00b100d3ba804694d4d6ef55997", + "html": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/repo_commit.go" + } + }, + { + "name": "repo_commit_test.go", + "path": "gitea/repo_commit_test.go", + "sha": "4369080ccdc52cbf51c1127546d251237d2d2b2b", + "last_commit_sha": "f3ebdb8afe832310703fa4522e8ea586e69b7afb", + "type": "file", + "size": 2391, + "encoding": null, + "content": null, + "target": null, + "url": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/repo_commit_test.go?ref=master", + "html_url": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/repo_commit_test.go", + "git_url": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/4369080ccdc52cbf51c1127546d251237d2d2b2b", + "download_url": "https://gitea.com/gitea/go-sdk/raw/branch/master/gitea/repo_commit_test.go", + "submodule_git_url": null, + "_links": { + "self": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/repo_commit_test.go?ref=master", + "git": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/4369080ccdc52cbf51c1127546d251237d2d2b2b", + "html": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/repo_commit_test.go" + } + }, + { + "name": "repo_file.go", + "path": "gitea/repo_file.go", + "sha": "bcba705129c377cf381a25d12331812b58685a35", + "last_commit_sha": "cc14c63cccfaf871f9e684cabbd0d8adf26c1e58", + "type": "file", + "size": 10282, + "encoding": null, + "content": null, + "target": null, + "url": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/repo_file.go?ref=master", + "html_url": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/repo_file.go", + "git_url": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/bcba705129c377cf381a25d12331812b58685a35", + "download_url": "https://gitea.com/gitea/go-sdk/raw/branch/master/gitea/repo_file.go", + "submodule_git_url": null, + "_links": { + "self": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/repo_file.go?ref=master", + "git": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/bcba705129c377cf381a25d12331812b58685a35", + "html": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/repo_file.go" + } + }, + { + "name": "repo_file_test.go", + "path": "gitea/repo_file_test.go", + "sha": "32c0137260562b0c35039aff8b443539dfc3dec9", + "last_commit_sha": "cc14c63cccfaf871f9e684cabbd0d8adf26c1e58", + "type": "file", + "size": 4207, + "encoding": null, + "content": null, + "target": null, + "url": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/repo_file_test.go?ref=master", + "html_url": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/repo_file_test.go", + "git_url": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/32c0137260562b0c35039aff8b443539dfc3dec9", + "download_url": "https://gitea.com/gitea/go-sdk/raw/branch/master/gitea/repo_file_test.go", + "submodule_git_url": null, + "_links": { + "self": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/repo_file_test.go?ref=master", + "git": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/32c0137260562b0c35039aff8b443539dfc3dec9", + "html": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/repo_file_test.go" + } + }, + { + "name": "repo_key.go", + "path": "gitea/repo_key.go", + "sha": "ee2ff4084e32c0d5f364cc111342749e4082a555", + "last_commit_sha": "6b6fdd91ce769bb4641084e15f76554fb841bf27", + "type": "file", + "size": 2946, + "encoding": null, + "content": null, + "target": null, + "url": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/repo_key.go?ref=master", + "html_url": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/repo_key.go", + "git_url": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/ee2ff4084e32c0d5f364cc111342749e4082a555", + "download_url": "https://gitea.com/gitea/go-sdk/raw/branch/master/gitea/repo_key.go", + "submodule_git_url": null, + "_links": { + "self": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/repo_key.go?ref=master", + "git": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/ee2ff4084e32c0d5f364cc111342749e4082a555", + "html": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/repo_key.go" + } + }, + { + "name": "repo_migrate.go", + "path": "gitea/repo_migrate.go", + "sha": "3ab690e53e0cc4b19d1bddcb119d3f3167ac3c2b", + "last_commit_sha": "8fab37e7407b734426a5a8aab31f464598b43706", + "type": "file", + "size": 4364, + "encoding": null, + "content": null, + "target": null, + "url": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/repo_migrate.go?ref=master", + "html_url": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/repo_migrate.go", + "git_url": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/3ab690e53e0cc4b19d1bddcb119d3f3167ac3c2b", + "download_url": "https://gitea.com/gitea/go-sdk/raw/branch/master/gitea/repo_migrate.go", + "submodule_git_url": null, + "_links": { + "self": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/repo_migrate.go?ref=master", + "git": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/3ab690e53e0cc4b19d1bddcb119d3f3167ac3c2b", + "html": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/repo_migrate.go" + } + }, + { + "name": "repo_refs.go", + "path": "gitea/repo_refs.go", + "sha": "c954a80ef2f300a60a10b4941f2a76de203ad0a0", + "last_commit_sha": "6b6fdd91ce769bb4641084e15f76554fb841bf27", + "type": "file", + "size": 2206, + "encoding": null, + "content": null, + "target": null, + "url": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/repo_refs.go?ref=master", + "html_url": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/repo_refs.go", + "git_url": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/c954a80ef2f300a60a10b4941f2a76de203ad0a0", + "download_url": "https://gitea.com/gitea/go-sdk/raw/branch/master/gitea/repo_refs.go", + "submodule_git_url": null, + "_links": { + "self": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/repo_refs.go?ref=master", + "git": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/c954a80ef2f300a60a10b4941f2a76de203ad0a0", + "html": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/repo_refs.go" + } + }, + { + "name": "repo_stars.go", + "path": "gitea/repo_stars.go", + "sha": "01243c2505d3adf745a20dbfffad1f6bb9871a9f", + "last_commit_sha": "6b6fdd91ce769bb4641084e15f76554fb841bf27", + "type": "file", + "size": 3241, + "encoding": null, + "content": null, + "target": null, + "url": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/repo_stars.go?ref=master", + "html_url": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/repo_stars.go", + "git_url": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/01243c2505d3adf745a20dbfffad1f6bb9871a9f", + "download_url": "https://gitea.com/gitea/go-sdk/raw/branch/master/gitea/repo_stars.go", + "submodule_git_url": null, + "_links": { + "self": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/repo_stars.go?ref=master", + "git": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/01243c2505d3adf745a20dbfffad1f6bb9871a9f", + "html": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/repo_stars.go" + } + }, + { + "name": "repo_stars_test.go", + "path": "gitea/repo_stars_test.go", + "sha": "d677e8cc57e62826a39d6d101a9e6ed5824985f5", + "last_commit_sha": "63e97e127ca1834e4faff8c84d25a7b668e84484", + "type": "file", + "size": 1836, + "encoding": null, + "content": null, + "target": null, + "url": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/repo_stars_test.go?ref=master", + "html_url": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/repo_stars_test.go", + "git_url": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/d677e8cc57e62826a39d6d101a9e6ed5824985f5", + "download_url": "https://gitea.com/gitea/go-sdk/raw/branch/master/gitea/repo_stars_test.go", + "submodule_git_url": null, + "_links": { + "self": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/repo_stars_test.go?ref=master", + "git": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/d677e8cc57e62826a39d6d101a9e6ed5824985f5", + "html": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/repo_stars_test.go" + } + }, + { + "name": "repo_tag.go", + "path": "gitea/repo_tag.go", + "sha": "7317d3f3931e23b52d85642549e1d012bbd3199a", + "last_commit_sha": "f5cc003900ff51c62b4db8d3f0275c2349717fe9", + "type": "file", + "size": 4245, + "encoding": null, + "content": null, + "target": null, + "url": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/repo_tag.go?ref=master", + "html_url": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/repo_tag.go", + "git_url": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/7317d3f3931e23b52d85642549e1d012bbd3199a", + "download_url": "https://gitea.com/gitea/go-sdk/raw/branch/master/gitea/repo_tag.go", + "submodule_git_url": null, + "_links": { + "self": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/repo_tag.go?ref=master", + "git": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/7317d3f3931e23b52d85642549e1d012bbd3199a", + "html": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/repo_tag.go" + } + }, + { + "name": "repo_tag_test.go", + "path": "gitea/repo_tag_test.go", + "sha": "62665311c135326142669e19228d69c0e6e6c1e1", + "last_commit_sha": "603e4358f80d195dfe4d1c677716096df95656ce", + "type": "file", + "size": 1818, + "encoding": null, + "content": null, + "target": null, + "url": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/repo_tag_test.go?ref=master", + "html_url": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/repo_tag_test.go", + "git_url": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/62665311c135326142669e19228d69c0e6e6c1e1", + "download_url": "https://gitea.com/gitea/go-sdk/raw/branch/master/gitea/repo_tag_test.go", + "submodule_git_url": null, + "_links": { + "self": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/repo_tag_test.go?ref=master", + "git": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/62665311c135326142669e19228d69c0e6e6c1e1", + "html": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/repo_tag_test.go" + } + }, + { + "name": "repo_team.go", + "path": "gitea/repo_team.go", + "sha": "b983d8748a7fa00a6256587ef7379637c6fa8610", + "last_commit_sha": "b81847d03d3f5dc546807e179f32b604370141ab", + "type": "file", + "size": 2289, + "encoding": null, + "content": null, + "target": null, + "url": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/repo_team.go?ref=master", + "html_url": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/repo_team.go", + "git_url": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/b983d8748a7fa00a6256587ef7379637c6fa8610", + "download_url": "https://gitea.com/gitea/go-sdk/raw/branch/master/gitea/repo_team.go", + "submodule_git_url": null, + "_links": { + "self": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/repo_team.go?ref=master", + "git": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/b983d8748a7fa00a6256587ef7379637c6fa8610", + "html": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/repo_team.go" + } + }, + { + "name": "repo_team_test.go", + "path": "gitea/repo_team_test.go", + "sha": "b205a9f13d4c117090ba413e3ac5510b66015b0b", + "last_commit_sha": "b81847d03d3f5dc546807e179f32b604370141ab", + "type": "file", + "size": 2369, + "encoding": null, + "content": null, + "target": null, + "url": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/repo_team_test.go?ref=master", + "html_url": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/repo_team_test.go", + "git_url": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/b205a9f13d4c117090ba413e3ac5510b66015b0b", + "download_url": "https://gitea.com/gitea/go-sdk/raw/branch/master/gitea/repo_team_test.go", + "submodule_git_url": null, + "_links": { + "self": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/repo_team_test.go?ref=master", + "git": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/b205a9f13d4c117090ba413e3ac5510b66015b0b", + "html": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/repo_team_test.go" + } + }, + { + "name": "repo_template.go", + "path": "gitea/repo_template.go", + "sha": "8b689bea49e28c4925eab57a4c720dbb60b1c11c", + "last_commit_sha": "71d2bf01d1d8943f3b088c9cd0005caffd82f8b9", + "type": "file", + "size": 2108, + "encoding": null, + "content": null, + "target": null, + "url": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/repo_template.go?ref=master", + "html_url": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/repo_template.go", + "git_url": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/8b689bea49e28c4925eab57a4c720dbb60b1c11c", + "download_url": "https://gitea.com/gitea/go-sdk/raw/branch/master/gitea/repo_template.go", + "submodule_git_url": null, + "_links": { + "self": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/repo_template.go?ref=master", + "git": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/8b689bea49e28c4925eab57a4c720dbb60b1c11c", + "html": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/repo_template.go" + } + }, + { + "name": "repo_template_test.go", + "path": "gitea/repo_template_test.go", + "sha": "3f8d891657ab834f0b1af5883db0f9b44ed8c683", + "last_commit_sha": "71d2bf01d1d8943f3b088c9cd0005caffd82f8b9", + "type": "file", + "size": 1407, + "encoding": null, + "content": null, + "target": null, + "url": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/repo_template_test.go?ref=master", + "html_url": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/repo_template_test.go", + "git_url": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/3f8d891657ab834f0b1af5883db0f9b44ed8c683", + "download_url": "https://gitea.com/gitea/go-sdk/raw/branch/master/gitea/repo_template_test.go", + "submodule_git_url": null, + "_links": { + "self": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/repo_template_test.go?ref=master", + "git": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/3f8d891657ab834f0b1af5883db0f9b44ed8c683", + "html": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/repo_template_test.go" + } + }, + { + "name": "repo_test.go", + "path": "gitea/repo_test.go", + "sha": "3f3ebc888dab5e40d20ca6ea66f9a8e50eb86ec4", + "last_commit_sha": "603e4358f80d195dfe4d1c677716096df95656ce", + "type": "file", + "size": 5606, + "encoding": null, + "content": null, + "target": null, + "url": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/repo_test.go?ref=master", + "html_url": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/repo_test.go", + "git_url": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/3f3ebc888dab5e40d20ca6ea66f9a8e50eb86ec4", + "download_url": "https://gitea.com/gitea/go-sdk/raw/branch/master/gitea/repo_test.go", + "submodule_git_url": null, + "_links": { + "self": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/repo_test.go?ref=master", + "git": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/3f3ebc888dab5e40d20ca6ea66f9a8e50eb86ec4", + "html": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/repo_test.go" + } + }, + { + "name": "repo_topics.go", + "path": "gitea/repo_topics.go", + "sha": "92f2228cd9327f93539d3119ca5d51f8e79b1211", + "last_commit_sha": "6b6fdd91ce769bb4641084e15f76554fb841bf27", + "type": "file", + "size": 2133, + "encoding": null, + "content": null, + "target": null, + "url": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/repo_topics.go?ref=master", + "html_url": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/repo_topics.go", + "git_url": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/92f2228cd9327f93539d3119ca5d51f8e79b1211", + "download_url": "https://gitea.com/gitea/go-sdk/raw/branch/master/gitea/repo_topics.go", + "submodule_git_url": null, + "_links": { + "self": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/repo_topics.go?ref=master", + "git": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/92f2228cd9327f93539d3119ca5d51f8e79b1211", + "html": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/repo_topics.go" + } + }, + { + "name": "repo_topics_test.go", + "path": "gitea/repo_topics_test.go", + "sha": "837e4d7905fd56d943b67389922fa774350fa727", + "last_commit_sha": "688ee1978eddf7d0721b4a87bb64e5f35292a66e", + "type": "file", + "size": 1617, + "encoding": null, + "content": null, + "target": null, + "url": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/repo_topics_test.go?ref=master", + "html_url": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/repo_topics_test.go", + "git_url": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/837e4d7905fd56d943b67389922fa774350fa727", + "download_url": "https://gitea.com/gitea/go-sdk/raw/branch/master/gitea/repo_topics_test.go", + "submodule_git_url": null, + "_links": { + "self": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/repo_topics_test.go?ref=master", + "git": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/837e4d7905fd56d943b67389922fa774350fa727", + "html": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/repo_topics_test.go" + } + }, + { + "name": "repo_transfer.go", + "path": "gitea/repo_transfer.go", + "sha": "534a6e42c8aa298d0248c0f8b5b1d1975a12e3f8", + "last_commit_sha": "ad3580e44d67674e31d4b84757591990226200c2", + "type": "file", + "size": 2212, + "encoding": null, + "content": null, + "target": null, + "url": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/repo_transfer.go?ref=master", + "html_url": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/repo_transfer.go", + "git_url": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/534a6e42c8aa298d0248c0f8b5b1d1975a12e3f8", + "download_url": "https://gitea.com/gitea/go-sdk/raw/branch/master/gitea/repo_transfer.go", + "submodule_git_url": null, + "_links": { + "self": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/repo_transfer.go?ref=master", + "git": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/534a6e42c8aa298d0248c0f8b5b1d1975a12e3f8", + "html": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/repo_transfer.go" + } + }, + { + "name": "repo_transfer_test.go", + "path": "gitea/repo_transfer_test.go", + "sha": "7ec0694b85b69340c1ace94ed61e3ecf79451056", + "last_commit_sha": "603e4358f80d195dfe4d1c677716096df95656ce", + "type": "file", + "size": 1264, + "encoding": null, + "content": null, + "target": null, + "url": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/repo_transfer_test.go?ref=master", + "html_url": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/repo_transfer_test.go", + "git_url": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/7ec0694b85b69340c1ace94ed61e3ecf79451056", + "download_url": "https://gitea.com/gitea/go-sdk/raw/branch/master/gitea/repo_transfer_test.go", + "submodule_git_url": null, + "_links": { + "self": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/repo_transfer_test.go?ref=master", + "git": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/7ec0694b85b69340c1ace94ed61e3ecf79451056", + "html": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/repo_transfer_test.go" + } + }, + { + "name": "repo_tree.go", + "path": "gitea/repo_tree.go", + "sha": "c9ffc55e30b01a79b7acb3ddc3a359c7ff712ba0", + "last_commit_sha": "8fab37e7407b734426a5a8aab31f464598b43706", + "type": "file", + "size": 1291, + "encoding": null, + "content": null, + "target": null, + "url": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/repo_tree.go?ref=master", + "html_url": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/repo_tree.go", + "git_url": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/c9ffc55e30b01a79b7acb3ddc3a359c7ff712ba0", + "download_url": "https://gitea.com/gitea/go-sdk/raw/branch/master/gitea/repo_tree.go", + "submodule_git_url": null, + "_links": { + "self": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/repo_tree.go?ref=master", + "git": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/c9ffc55e30b01a79b7acb3ddc3a359c7ff712ba0", + "html": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/repo_tree.go" + } + }, + { + "name": "repo_watch.go", + "path": "gitea/repo_watch.go", + "sha": "c36ca6403d9c4fb455710e87e63901b16288fa22", + "last_commit_sha": "8fab37e7407b734426a5a8aab31f464598b43706", + "type": "file", + "size": 2783, + "encoding": null, + "content": null, + "target": null, + "url": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/repo_watch.go?ref=master", + "html_url": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/repo_watch.go", + "git_url": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/c36ca6403d9c4fb455710e87e63901b16288fa22", + "download_url": "https://gitea.com/gitea/go-sdk/raw/branch/master/gitea/repo_watch.go", + "submodule_git_url": null, + "_links": { + "self": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/repo_watch.go?ref=master", + "git": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/c36ca6403d9c4fb455710e87e63901b16288fa22", + "html": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/repo_watch.go" + } + }, + { + "name": "repo_watch_test.go", + "path": "gitea/repo_watch_test.go", + "sha": "8e74d7bac4b7a7171de1218910d66b5e220b8c52", + "last_commit_sha": "8fab37e7407b734426a5a8aab31f464598b43706", + "type": "file", + "size": 1369, + "encoding": null, + "content": null, + "target": null, + "url": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/repo_watch_test.go?ref=master", + "html_url": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/repo_watch_test.go", + "git_url": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/8e74d7bac4b7a7171de1218910d66b5e220b8c52", + "download_url": "https://gitea.com/gitea/go-sdk/raw/branch/master/gitea/repo_watch_test.go", + "submodule_git_url": null, + "_links": { + "self": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/repo_watch_test.go?ref=master", + "git": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/8e74d7bac4b7a7171de1218910d66b5e220b8c52", + "html": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/repo_watch_test.go" + } + }, + { + "name": "settings.go", + "path": "gitea/settings.go", + "sha": "fb94248f63fcec16e97f951710ff38658cea1086", + "last_commit_sha": "13d2d23dfc79d0b346589a7981569876da6917e6", + "type": "file", + "size": 3204, + "encoding": null, + "content": null, + "target": null, + "url": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/settings.go?ref=master", + "html_url": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/settings.go", + "git_url": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/fb94248f63fcec16e97f951710ff38658cea1086", + "download_url": "https://gitea.com/gitea/go-sdk/raw/branch/master/gitea/settings.go", + "submodule_git_url": null, + "_links": { + "self": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/settings.go?ref=master", + "git": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/fb94248f63fcec16e97f951710ff38658cea1086", + "html": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/settings.go" + } + }, + { + "name": "settings_test.go", + "path": "gitea/settings_test.go", + "sha": "e025464c00128a019d45bd32ea139f62a2227645", + "last_commit_sha": "cc14c63cccfaf871f9e684cabbd0d8adf26c1e58", + "type": "file", + "size": 1389, + "encoding": null, + "content": null, + "target": null, + "url": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/settings_test.go?ref=master", + "html_url": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/settings_test.go", + "git_url": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/e025464c00128a019d45bd32ea139f62a2227645", + "download_url": "https://gitea.com/gitea/go-sdk/raw/branch/master/gitea/settings_test.go", + "submodule_git_url": null, + "_links": { + "self": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/settings_test.go?ref=master", + "git": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/e025464c00128a019d45bd32ea139f62a2227645", + "html": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/settings_test.go" + } + }, + { + "name": "status.go", + "path": "gitea/status.go", + "sha": "fe5d9711f98bf3f66dff50fd3871c6b5c2643993", + "last_commit_sha": "6b6fdd91ce769bb4641084e15f76554fb841bf27", + "type": "file", + "size": 3797, + "encoding": null, + "content": null, + "target": null, + "url": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/status.go?ref=master", + "html_url": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/status.go", + "git_url": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/fe5d9711f98bf3f66dff50fd3871c6b5c2643993", + "download_url": "https://gitea.com/gitea/go-sdk/raw/branch/master/gitea/status.go", + "submodule_git_url": null, + "_links": { + "self": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/status.go?ref=master", + "git": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/fe5d9711f98bf3f66dff50fd3871c6b5c2643993", + "html": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/status.go" + } + }, + { + "name": "status_test.go", + "path": "gitea/status_test.go", + "sha": "a1f78d57564c8c780886d0cdf0007267dbaf5145", + "last_commit_sha": "8fab37e7407b734426a5a8aab31f464598b43706", + "type": "file", + "size": 2631, + "encoding": null, + "content": null, + "target": null, + "url": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/status_test.go?ref=master", + "html_url": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/status_test.go", + "git_url": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/a1f78d57564c8c780886d0cdf0007267dbaf5145", + "download_url": "https://gitea.com/gitea/go-sdk/raw/branch/master/gitea/status_test.go", + "submodule_git_url": null, + "_links": { + "self": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/status_test.go?ref=master", + "git": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/a1f78d57564c8c780886d0cdf0007267dbaf5145", + "html": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/status_test.go" + } + }, + { + "name": "user.go", + "path": "gitea/user.go", + "sha": "67208fb06389c91cd5338dac3dccb3ffffd49cb6", + "last_commit_sha": "8fab37e7407b734426a5a8aab31f464598b43706", + "type": "file", + "size": 2406, + "encoding": null, + "content": null, + "target": null, + "url": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/user.go?ref=master", + "html_url": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/user.go", + "git_url": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/67208fb06389c91cd5338dac3dccb3ffffd49cb6", + "download_url": "https://gitea.com/gitea/go-sdk/raw/branch/master/gitea/user.go", + "submodule_git_url": null, + "_links": { + "self": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/user.go?ref=master", + "git": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/67208fb06389c91cd5338dac3dccb3ffffd49cb6", + "html": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/user.go" + } + }, + { + "name": "user_app.go", + "path": "gitea/user_app.go", + "sha": "eb3ef21c68da7e857b2ee41f28d8bf1af446895e", + "last_commit_sha": "8fab37e7407b734426a5a8aab31f464598b43706", + "type": "file", + "size": 2777, + "encoding": null, + "content": null, + "target": null, + "url": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/user_app.go?ref=master", + "html_url": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/user_app.go", + "git_url": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/eb3ef21c68da7e857b2ee41f28d8bf1af446895e", + "download_url": "https://gitea.com/gitea/go-sdk/raw/branch/master/gitea/user_app.go", + "submodule_git_url": null, + "_links": { + "self": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/user_app.go?ref=master", + "git": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/eb3ef21c68da7e857b2ee41f28d8bf1af446895e", + "html": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/user_app.go" + } + }, + { + "name": "user_email.go", + "path": "gitea/user_email.go", + "sha": "4962b082b407e20d146c686f0d95a8393e38f5d2", + "last_commit_sha": "688ee1978eddf7d0721b4a87bb64e5f35292a66e", + "type": "file", + "size": 1833, + "encoding": null, + "content": null, + "target": null, + "url": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/user_email.go?ref=master", + "html_url": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/user_email.go", + "git_url": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/4962b082b407e20d146c686f0d95a8393e38f5d2", + "download_url": "https://gitea.com/gitea/go-sdk/raw/branch/master/gitea/user_email.go", + "submodule_git_url": null, + "_links": { + "self": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/user_email.go?ref=master", + "git": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/4962b082b407e20d146c686f0d95a8393e38f5d2", + "html": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/user_email.go" + } + }, + { + "name": "user_follow.go", + "path": "gitea/user_follow.go", + "sha": "7bd340ca26668019b15346addf792c2e3f4ab150", + "last_commit_sha": "6b6fdd91ce769bb4641084e15f76554fb841bf27", + "type": "file", + "size": 3364, + "encoding": null, + "content": null, + "target": null, + "url": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/user_follow.go?ref=master", + "html_url": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/user_follow.go", + "git_url": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/7bd340ca26668019b15346addf792c2e3f4ab150", + "download_url": "https://gitea.com/gitea/go-sdk/raw/branch/master/gitea/user_follow.go", + "submodule_git_url": null, + "_links": { + "self": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/user_follow.go?ref=master", + "git": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/7bd340ca26668019b15346addf792c2e3f4ab150", + "html": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/user_follow.go" + } + }, + { + "name": "user_gpgkey.go", + "path": "gitea/user_gpgkey.go", + "sha": "6c1b9d10f345a8277ceddb29e7f47448d9923421", + "last_commit_sha": "6b6fdd91ce769bb4641084e15f76554fb841bf27", + "type": "file", + "size": 3031, + "encoding": null, + "content": null, + "target": null, + "url": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/user_gpgkey.go?ref=master", + "html_url": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/user_gpgkey.go", + "git_url": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/6c1b9d10f345a8277ceddb29e7f47448d9923421", + "download_url": "https://gitea.com/gitea/go-sdk/raw/branch/master/gitea/user_gpgkey.go", + "submodule_git_url": null, + "_links": { + "self": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/user_gpgkey.go?ref=master", + "git": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/6c1b9d10f345a8277ceddb29e7f47448d9923421", + "html": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/user_gpgkey.go" + } + }, + { + "name": "user_key.go", + "path": "gitea/user_key.go", + "sha": "02795baefc6567a69d1be2f7bc0527b7784e5140", + "last_commit_sha": "6b6fdd91ce769bb4641084e15f76554fb841bf27", + "type": "file", + "size": 2830, + "encoding": null, + "content": null, + "target": null, + "url": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/user_key.go?ref=master", + "html_url": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/user_key.go", + "git_url": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/02795baefc6567a69d1be2f7bc0527b7784e5140", + "download_url": "https://gitea.com/gitea/go-sdk/raw/branch/master/gitea/user_key.go", + "submodule_git_url": null, + "_links": { + "self": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/user_key.go?ref=master", + "git": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/02795baefc6567a69d1be2f7bc0527b7784e5140", + "html": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/user_key.go" + } + }, + { + "name": "user_search.go", + "path": "gitea/user_search.go", + "sha": "5ea0c45f815aead8c468f030929a8ae392ee014a", + "last_commit_sha": "e11a4f7f3bdb5251a25f754125887c88f88f2f63", + "type": "file", + "size": 1209, + "encoding": null, + "content": null, + "target": null, + "url": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/user_search.go?ref=master", + "html_url": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/user_search.go", + "git_url": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/5ea0c45f815aead8c468f030929a8ae392ee014a", + "download_url": "https://gitea.com/gitea/go-sdk/raw/branch/master/gitea/user_search.go", + "submodule_git_url": null, + "_links": { + "self": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/user_search.go?ref=master", + "git": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/5ea0c45f815aead8c468f030929a8ae392ee014a", + "html": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/user_search.go" + } + }, + { + "name": "user_settings.go", + "path": "gitea/user_settings.go", + "sha": "494cab3629784a6e9e65586a71773b644f5aff1f", + "last_commit_sha": "79f379313cf9a2481e16c7802457b58151a8211b", + "type": "file", + "size": 2108, + "encoding": null, + "content": null, + "target": null, + "url": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/user_settings.go?ref=master", + "html_url": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/user_settings.go", + "git_url": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/494cab3629784a6e9e65586a71773b644f5aff1f", + "download_url": "https://gitea.com/gitea/go-sdk/raw/branch/master/gitea/user_settings.go", + "submodule_git_url": null, + "_links": { + "self": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/user_settings.go?ref=master", + "git": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/494cab3629784a6e9e65586a71773b644f5aff1f", + "html": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/user_settings.go" + } + }, + { + "name": "user_settings_test.go", + "path": "gitea/user_settings_test.go", + "sha": "641089bd216515f338c9a0f4e94497d199a14324", + "last_commit_sha": "22f2853429d4355e16bc7ec16e6510a6acfc6b1e", + "type": "file", + "size": 1173, + "encoding": null, + "content": null, + "target": null, + "url": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/user_settings_test.go?ref=master", + "html_url": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/user_settings_test.go", + "git_url": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/641089bd216515f338c9a0f4e94497d199a14324", + "download_url": "https://gitea.com/gitea/go-sdk/raw/branch/master/gitea/user_settings_test.go", + "submodule_git_url": null, + "_links": { + "self": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/user_settings_test.go?ref=master", + "git": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/641089bd216515f338c9a0f4e94497d199a14324", + "html": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/user_settings_test.go" + } + }, + { + "name": "user_test.go", + "path": "gitea/user_test.go", + "sha": "727fb1b8c676c825f1695341094853476b1cfd94", + "last_commit_sha": "22f2853429d4355e16bc7ec16e6510a6acfc6b1e", + "type": "file", + "size": 5850, + "encoding": null, + "content": null, + "target": null, + "url": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/user_test.go?ref=master", + "html_url": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/user_test.go", + "git_url": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/727fb1b8c676c825f1695341094853476b1cfd94", + "download_url": "https://gitea.com/gitea/go-sdk/raw/branch/master/gitea/user_test.go", + "submodule_git_url": null, + "_links": { + "self": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/user_test.go?ref=master", + "git": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/727fb1b8c676c825f1695341094853476b1cfd94", + "html": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/user_test.go" + } + }, + { + "name": "version.go", + "path": "gitea/version.go", + "sha": "f11210117f363462e5cf97d1d92c00a316c3f9f2", + "last_commit_sha": "e5f0c189f2c720238cdcea8aaa15eff33a901a68", + "type": "file", + "size": 2974, + "encoding": null, + "content": null, + "target": null, + "url": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/version.go?ref=master", + "html_url": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/version.go", + "git_url": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/f11210117f363462e5cf97d1d92c00a316c3f9f2", + "download_url": "https://gitea.com/gitea/go-sdk/raw/branch/master/gitea/version.go", + "submodule_git_url": null, + "_links": { + "self": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/version.go?ref=master", + "git": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/f11210117f363462e5cf97d1d92c00a316c3f9f2", + "html": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/version.go" + } + }, + { + "name": "version_test.go", + "path": "gitea/version_test.go", + "sha": "7383649c7abc2d6dce4fa236c58c42fcd7a5a81d", + "last_commit_sha": "635de1b8215ef584976bcee6067aa07a5a9be68d", + "type": "file", + "size": 956, + "encoding": null, + "content": null, + "target": null, + "url": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/version_test.go?ref=master", + "html_url": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/version_test.go", + "git_url": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/7383649c7abc2d6dce4fa236c58c42fcd7a5a81d", + "download_url": "https://gitea.com/gitea/go-sdk/raw/branch/master/gitea/version_test.go", + "submodule_git_url": null, + "_links": { + "self": "https://gitea.com/api/v1/repos/gitea/go-sdk/contents/gitea/version_test.go?ref=master", + "git": "https://gitea.com/api/v1/repos/gitea/go-sdk/git/blobs/7383649c7abc2d6dce4fa236c58c42fcd7a5a81d", + "html": "https://gitea.com/gitea/go-sdk/src/branch/master/gitea/version_test.go" + } + } +] From 00007635fb8dde47620fcb01ef5090c6645cdda5 Mon Sep 17 00:00:00 2001 From: CI Date: Wed, 17 Aug 2022 12:40:04 -0400 Subject: [PATCH 2/2] embed test data Signed-off-by: CI --- applicationset/services/scm_provider/gitea_test.go | 6 ++---- applicationset/services/scm_provider/testdata/data.go | 6 ++++++ 2 files changed, 8 insertions(+), 4 deletions(-) create mode 100644 applicationset/services/scm_provider/testdata/data.go diff --git a/applicationset/services/scm_provider/gitea_test.go b/applicationset/services/scm_provider/gitea_test.go index e3815311d5b28..d090aae26c090 100644 --- a/applicationset/services/scm_provider/gitea_test.go +++ b/applicationset/services/scm_provider/gitea_test.go @@ -5,12 +5,12 @@ import ( "io" "net/http" "net/http/httptest" - "os" "testing" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" + "github.com/argoproj/argo-cd/v2/applicationset/services/scm_provider/testdata" "github.com/argoproj/argo-cd/v2/pkg/apis/applicationset/v1alpha1" ) @@ -244,9 +244,7 @@ func giteaMockHandler(t *testing.T) func(http.ResponseWriter, *http.Request) { `) require.NoError(t, err) case "/api/v1/repos/gitea/go-sdk/contents/gitea?ref=master": - response, err := os.ReadFile("testdata/repos_gitea_go-sdk_contents_gitea.json") - require.NoError(t, err) - _, err = io.WriteString(w, string(response)) + _, err := io.WriteString(w, testdata.ReposGiteaGoSdkContentsGiteaResponse) require.NoError(t, err) case "/api/v1/repos/gitea/go-sdk/contents/notathing?ref=master": w.WriteHeader(404) diff --git a/applicationset/services/scm_provider/testdata/data.go b/applicationset/services/scm_provider/testdata/data.go new file mode 100644 index 0000000000000..1958177a04ad2 --- /dev/null +++ b/applicationset/services/scm_provider/testdata/data.go @@ -0,0 +1,6 @@ +package testdata + +import _ "embed" + +//go:embed repos_gitea_go-sdk_contents_gitea.json +var ReposGiteaGoSdkContentsGiteaResponse string