From f76b691155dc26f4f849e40dec7392db544ba797 Mon Sep 17 00:00:00 2001 From: a1012112796 <1012112796@qq.com> Date: Sat, 19 Aug 2023 08:19:19 +0000 Subject: [PATCH 01/26] add develop script to view and update test data try add a dev script to start a dev service base on the test data (`models/fixtures/`, `tests/gitea-repositories-meta` and `tests/gitea-lfs-meta`). then the developer can check and update the test data by ui operation on the test server. I think it will be a more simple way than manually edit. Signed-off-by: a1012112796 <1012112796@qq.com> --- .gitignore | 2 + Makefile | 7 + contrib/dev/dev.go | 302 ++++++++++++++++++ contrib/ide/vscode/launch.json | 15 + contrib/ide/vscode/tasks.json | 5 + models/fixture_generation.go | 8 +- models/unittest/fixtures.go | 22 +- models/unittest/testdb.go | 5 +- modules/repository/create_test.go | 3 + tests/dev.ini.tmpl | 115 +++++++ .../integration/api_actions_artifact_test.go | 26 +- 11 files changed, 492 insertions(+), 18 deletions(-) create mode 100644 contrib/dev/dev.go create mode 100644 tests/dev.ini.tmpl diff --git a/.gitignore b/.gitignore index 6b699e08700f3..75eb69c3251f5 100644 --- a/.gitignore +++ b/.gitignore @@ -108,3 +108,5 @@ prime/ # Manpage /man + +/tests/dev diff --git a/Makefile b/Makefile index 167f56c6b9266..d6d2728365677 100644 --- a/Makefile +++ b/Makefile @@ -513,6 +513,13 @@ generate-ini-sqlite: -e 's|{{TEST_TYPE}}|$(or $(TEST_TYPE),integration)|g' \ tests/sqlite.ini.tmpl > tests/sqlite.ini +generate-ini-dev: + sed -e 's|{{GITEA_ROOT}}|${CURDIR}|g' tests/dev.ini.tmpl > tests/dev.ini + +.PHONY: test-dev +test-dev: generate-ini-dev + GITEA_ROOT="$(CURDIR)" $(GO) run -tags 'sqlite sqlite_unlock_notify' contrib/dev/dev.go || true + .PHONY: test-sqlite test-sqlite: integrations.sqlite.test generate-ini-sqlite GITEA_ROOT="$(CURDIR)" GITEA_CONF=tests/sqlite.ini ./integrations.sqlite.test diff --git a/contrib/dev/dev.go b/contrib/dev/dev.go new file mode 100644 index 0000000000000..2e3a05beeb2e9 --- /dev/null +++ b/contrib/dev/dev.go @@ -0,0 +1,302 @@ +// Copyright 2023 The Gitea Authors. All rights reserved. +// SPDX-License-Identifier: MIT + +package main + +import ( + "context" + "io/fs" + "net/http" + "os" + "path" + "path/filepath" + + _ "code.gitea.io/gitea/models" + "code.gitea.io/gitea/models/db" + "code.gitea.io/gitea/models/unittest" + "code.gitea.io/gitea/modules/graceful" + "code.gitea.io/gitea/modules/log" + "code.gitea.io/gitea/modules/setting" + "code.gitea.io/gitea/modules/util" + "code.gitea.io/gitea/routers" + "gopkg.in/yaml.v3" +) + +// To start a gitea develop server with the test data, and auto update test data when the service stop. +// GITEA_ROOT=`pwd` go run -tags 'sqlite sqlite_unlock_notify' contrib/dev/dev.go + +func main() { + pwd := os.Getenv("GITEA_ROOT") + if len(pwd) == 0 { + panic(pwd) + } + log.Info("GITEA_ROOT: %s", pwd) + + defer log.GetManager().Close() + + managerCtx, cancel := context.WithCancel(context.Background()) + graceful.InitManager(managerCtx) + defer cancel() + + initDev(pwd) + + // Set up Chi routes + webRoutes := routers.NormalRoutes() + err := runHTTP("tcp", ":3000", "Web", webRoutes, setting.UseProxyProtocol) + if err != nil { + log.Fatal("err: %#v", err) + } + + <-graceful.GetManager().Done() + log.Info("PID: %d Gitea Web Finished", os.Getpid()) + fixGitReops() + err = unittest.DumpAllFixtures() + if err != nil { + log.Fatal("unittest.DumpAllFixtures: %v", err) + } + removeNotNeededFixtures(pwd) + + log.GetManager().Close() +} + +func listSubDir(dirname string, onDir func(path, name string) error) error { + fileInfos, err := os.ReadDir(dirname) + if err != nil { + return err + } + + for _, fi := range fileInfos { + if !fi.IsDir() { + continue + } + + err = onDir(path.Join(dirname, fi.Name()), fi.Name()) + if err != nil { + return err + } + } + + return nil +} + +func fixGitReops() { + type fixItem struct { + Path string + Name string + Content string + } + + allFixs := []fixItem{ + { + Path: "hooks", + Name: "update", + Content: "#!/usr/bin/env bash\n" + + "ORI_DIR=`pwd`\n" + + "SHELL_FOLDER=$(cd \"$(dirname \"$0\")\";pwd)\n" + + "cd \"$ORI_DIR\"\n" + + "for i in `ls \"$SHELL_FOLDER/update.d\"`; do\n" + + " sh \"$SHELL_FOLDER/update.d/$i\" $1 $2 $3\n" + + "done", + }, + { + Path: "hooks", + Name: "pre-receive", + Content: "#!/usr/bin/env bash\n" + + "ORI_DIR=`pwd`\n" + + "SHELL_FOLDER=$(cd \"$(dirname \"$0\")\";pwd)\n" + + "cd \"$ORI_DIR\"\n" + + "for i in `ls \"$SHELL_FOLDER/pre-receive.d\"`; do\n" + + " sh \"$SHELL_FOLDER/pre-receive.d/$i\"\n" + + "done", + }, + { + Path: "hooks", + Name: "post-receive", + Content: "#!/usr/bin/env bash\n" + + "ORI_DIR=`pwd`\n" + + "SHELL_FOLDER=$(cd \"$(dirname \"$0\")\";pwd)\n" + + "cd \"$ORI_DIR\"\n" + + "for i in `ls \"$SHELL_FOLDER/post-receive.d\"`; do\n" + + " sh \"$SHELL_FOLDER/post-receive.d/$i\"\n" + + "done", + }, + { + Path: path.Join("hooks", "update.d"), + Name: "gitea", + Content: `#!/usr/bin/env bash +"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" update $1 $2 $3 +`, + }, + { + Path: path.Join("hooks", "pre-receive.d"), + Name: "gitea", + Content: `#!/usr/bin/env bash +"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" pre-receive +`, + }, + { + Path: path.Join("hooks", "post-receive.d"), + Name: "gitea", + Content: `#!/usr/bin/env bash +"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" post-receive +`, + }, + } + + neededReops := []string{ + "privated_org/private_repo_on_private_org.git", + "privated_org/public_repo_on_private_org.git", + "user3/repo5.git", + "user3/repo3.git", + "user13/repo11.git", + "user27/template1.git", + "user27/repo49.git", + "org26/repo_external_tracker.git", + "org26/repo_external_tracker_alpha.git", + "org26/repo_external_tracker_numeric.git", + "limited_org/public_repo_on_limited_org.git", + "limited_org/private_repo_on_limited_org.git", + "user5/repo4.git", + "user2/readme-test.git", + "user2/utf8.git", + "user2/repo1.wiki.git", + "user2/repo15.git", + "user2/repo2.git", + "user2/repo20.git", + "user2/commitsonpr.git", + "user2/repo1.git", + "user2/glob.git", + "user2/repo16.git", + "user2/repo-release.git", + "user2/lfs.git", + "user2/git_hooks_test.git", + "user2/commits_search_test.git", + "user12/repo10.git", + "migration/lfs-test.git", + "user30/renderer.git", + "user30/empty.git", + } + + reposNotneededHooks := []string{ + "user2/repo1.wiki.git", + "user30/empty.git", + } + + err := listSubDir(setting.RepoRootPath, func(dir, userName string) error { + return listSubDir(dir, func(dir, repoName string) error { + fullName := path.Join(userName, repoName) + + if !util.SliceContains(neededReops, fullName) { + return util.RemoveAll(dir) + } + + if util.SliceContains(reposNotneededHooks, fullName) { + return util.RemoveAll(path.Join(dir, "hooks")) + } + + // proc-receive is not needed in test code now + _ = util.Remove(path.Join(dir, "hooks", "proc-receive")) + + for _, fix := range allFixs { + err := os.MkdirAll(path.Join(dir, fix.Path), os.ModePerm) + if err != nil { + return err + } + + err = os.WriteFile(path.Join(dir, fix.Path, fix.Name), []byte(fix.Content), 0o777) + if err != nil { + return err + } + } + + return nil + }) + }) + if err != nil { + log.Fatal("fixAllGiteaHook: %v", err) + } +} + +func initDev(pathToGiteaRoot string) { + setting.CustomConf = filepath.Join(pathToGiteaRoot, "tests", "dev.ini") + setting.CustomPath = pathToGiteaRoot + + setting.InitCfgProvider(setting.CustomConf) + setting.LoadCommonSettings() + + routers.InitWebInstalled(graceful.GetManager().HammerContext()) + + fixturesDir := filepath.Join(pathToGiteaRoot, "models", "fixtures") + if err := unittest.InitFixtures(unittest.FixturesOptions{ + Dir: fixturesDir, + InitDumper: true, + }); err != nil { + log.Fatal("CreateTestEngine: %+v", err) + } + db.SetLogSQL(db.DefaultContext, true) + + if err := unittest.LoadFixtures(); err != nil { + log.Fatal("LoadFixtures: %v", err) + } + + if err := setting.PrepareAppDataPath(); err != nil { + log.Fatal("Can not prepare APP_DATA_PATH: %v", err) + } +} + +func runHTTP(network, listenAddr, name string, m http.Handler, useProxyProtocol bool) error { + return graceful.HTTPListenAndServe(network, listenAddr, name, m, useProxyProtocol) +} + +func removeNotNeededFixtures(pathToGiteaRoot string) { + nootNeededFixtures := []string{ + "version.yml", + "app_state.yml", + "sqlite_sequence.yml", + } + keptFiles := []string{ + "gpg_key.yml", + "deploy_key.yml", + "external_login_user.yml", + "gpg_key_import.yml", + "login_source.yml", + "protected_branch.yml", + "repo_archiver.yml", + "repo_indexer_status.yml", + } + + err := filepath.Walk(path.Join(pathToGiteaRoot, "models", "fixtures"), func(pth string, info fs.FileInfo, _ error) error { + if info.IsDir() { + return nil + } + + fileName := path.Base(pth) + if util.SliceContains(nootNeededFixtures, fileName) { + return os.Remove(pth) + } + + if util.SliceContains(keptFiles, fileName) { + return nil + } + + content, err := os.ReadFile(pth) + if err != nil { + return err + } + + result := make([]map[string]interface{}, 0, 10) + err = yaml.Unmarshal(content, &result) + if err != nil { + return err + } + if len(result) == 0 { + log.Info("remove empty file: %s", fileName) + return os.Remove(pth) + } + + return nil + }) + if err != nil { + log.Fatal("removeNotNeededFixtures: %v", err) + } +} diff --git a/contrib/ide/vscode/launch.json b/contrib/ide/vscode/launch.json index b80b826fc0b5e..66b7e21548ae4 100644 --- a/contrib/ide/vscode/launch.json +++ b/contrib/ide/vscode/launch.json @@ -26,6 +26,21 @@ }, "args": ["web"], "showLog": true + }, + { + "name": "Launch dev (with SQLite3)", + "type": "go", + "request": "launch", + "mode": "debug", + "buildFlags": "-tags='sqlite sqlite_unlock_notify'", + "program": "${workspaceRoot}/contrib/dev/dev.go", + "env": { + "GITEA_ROOT": "${workspaceRoot}", + "GITEA_WORK_DIR": "${workspaceRoot}" + }, + "args": ["web"], + "showLog": true, + "preLaunchTask": "generate-ini-dev" } ] } diff --git a/contrib/ide/vscode/tasks.json b/contrib/ide/vscode/tasks.json index e35ae303b27b0..04f968801faf6 100644 --- a/contrib/ide/vscode/tasks.json +++ b/contrib/ide/vscode/tasks.json @@ -44,6 +44,11 @@ "args": ["build", "-tags=\"sqlite sqlite_unlock_notify\"", "-o", "gitea.exe", "\"${workspaceRoot}\\main.go\""] }, "problemMatcher": ["$go"] + }, + { + "label": "generate-ini-dev", + "type": "shell", + "command": "make generate-ini-dev" } ] } diff --git a/models/fixture_generation.go b/models/fixture_generation.go index abf880ee8e2bc..33e80e8339fdc 100644 --- a/models/fixture_generation.go +++ b/models/fixture_generation.go @@ -35,12 +35,10 @@ func GetYamlFixturesAccess() (string, error) { } for i, a := range accesses { - fmt.Fprintf(&b, "-\n") - fmt.Fprintf(&b, " id: %d\n", i+1) - fmt.Fprintf(&b, " user_id: %d\n", a.UserID) - fmt.Fprintf(&b, " repo_id: %d\n", a.RepoID) + fmt.Fprintf(&b, "- id: %d\n", i+1) fmt.Fprintf(&b, " mode: %d\n", a.Mode) - fmt.Fprintf(&b, "\n") + fmt.Fprintf(&b, " repo_id: %d\n", a.RepoID) + fmt.Fprintf(&b, " user_id: %d\n", a.UserID) } return b.String(), nil diff --git a/models/unittest/fixtures.go b/models/unittest/fixtures.go index c653ce1e38a14..7552783adb3c6 100644 --- a/models/unittest/fixtures.go +++ b/models/unittest/fixtures.go @@ -5,6 +5,7 @@ package unittest import ( + "errors" "fmt" "os" "time" @@ -18,7 +19,10 @@ import ( "xorm.io/xorm/schemas" ) -var fixturesLoader *testfixtures.Loader +var ( + fixturesLoader *testfixtures.Loader + fixturesDumper *testfixtures.Dumper +) // GetXORMEngine gets the XORM engine func GetXORMEngine(engine ...*xorm.Engine) (x *xorm.Engine) { @@ -72,9 +76,25 @@ func InitFixtures(opts FixturesOptions, engine ...*xorm.Engine) (err error) { setting.PasswordHashAlgo, _ = hash.SetDefaultPasswordHashAlgorithm("dummy") + if !opts.InitDumper { + return err + } + + fixturesDumper, err = testfixtures.NewDumper(testfixtures.DumpDatabase(e.DB().DB), + testfixtures.DumpDialect(dialect), + testfixtures.DumpDirectory(opts.Dir)) + return err } +func DumpAllFixtures() error { + if fixturesDumper == nil { + return errors.New("no fixturesDumper") + } + + return fixturesDumper.Dump() +} + // LoadFixtures load fixtures for a test database func LoadFixtures(engine ...*xorm.Engine) error { e := GetXORMEngine(engine...) diff --git a/models/unittest/testdb.go b/models/unittest/testdb.go index 1ff0fdc25bda8..e697068c82f5c 100644 --- a/models/unittest/testdb.go +++ b/models/unittest/testdb.go @@ -196,8 +196,9 @@ func MainTest(m *testing.M, testOpts *TestOptions) { // FixturesOptions fixtures needs to be loaded options type FixturesOptions struct { - Dir string - Files []string + Dir string + Files []string + InitDumper bool } // CreateTestEngine creates a memory database and loads the fixture data from fixturesDir diff --git a/modules/repository/create_test.go b/modules/repository/create_test.go index e620422bcb77c..c55f3296cfa51 100644 --- a/modules/repository/create_test.go +++ b/modules/repository/create_test.go @@ -173,6 +173,9 @@ func TestGetDirectorySize(t *testing.T) { assert.NoError(t, unittest.PrepareTestDatabase()) repo, err := repo_model.GetRepositoryByID(db.DefaultContext, 1) assert.NoError(t, err) + UpdateRepoSize(db.DefaultContext, repo) + repo, err = repo_model.GetRepositoryByID(db.DefaultContext, 1) + assert.NoError(t, err) size, err := getDirectorySize(repo.RepoPath()) assert.NoError(t, err) diff --git a/tests/dev.ini.tmpl b/tests/dev.ini.tmpl new file mode 100644 index 0000000000000..52f09a3171930 --- /dev/null +++ b/tests/dev.ini.tmpl @@ -0,0 +1,115 @@ +APP_NAME = Gitea: Git with a cup of tea +RUN_MODE = dev + +[database] +DB_TYPE = sqlite3 +PATH = {{GITEA_ROOT}}/tests/dev/gitea.db + +[indexer] +REPO_INDEXER_ENABLED = true +REPO_INDEXER_PATH = {{GITEA_ROOT}}/tests/dev/indexers/repos.bleve + +[queue.issue_indexer] +TYPE = level +DATADIR = {{GITEA_ROOT}}/tests/dev/indexers/issues.queue + +[queue] +TYPE = immediate + +[queue.code_indexer] +TYPE = immediate + +[queue.push_update] +TYPE = immediate + +[repository] +ROOT = {{GITEA_ROOT}}/tests/gitea-repositories-meta + +[repository.local] +LOCAL_COPY_PATH = {{GITEA_ROOT}}/tests/dev/tmp/local-repo + +[repository.upload] +TEMP_PATH = {{GITEA_ROOT}}/tests/dev/tmp/uploads + +[repository.signing] +SIGNING_KEY = none + +[server] +SSH_DOMAIN = localhost +HTTP_PORT = 3003 +ROOT_URL = http://localhost:3003/ +DISABLE_SSH = false +SSH_LISTEN_HOST = localhost +SSH_PORT = 2203 +START_SSH_SERVER = true +LFS_START_SERVER = true +OFFLINE_MODE = false +LFS_JWT_SECRET = Tv_MjmZuHqpIY6GFl12ebgkRAMt4RlWt0v4EHKSXO0w +APP_DATA_PATH = {{GITEA_ROOT}}/tests/dev/data +ENABLE_GZIP = true +BUILTIN_SSH_SERVER_USER = git +SSH_TRUSTED_USER_CA_KEYS = ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCb4DC1dMFnJ6pXWo7GMxTchtzmJHYzfN6sZ9FAPFR4ijMLfGki+olvOMO5Fql1/yGnGfbELQa1S6y4shSvj/5K+zUFScmEXYf3Gcr87RqilLkyk16RS+cHNB1u87xTHbETaa3nyCJeGQRpd4IQ4NKob745mwDZ7jQBH8AZEng50Oh8y8fi8skBBBzaYp1ilgvzG740L7uex6fHV62myq0SXeCa+oJUjq326FU8y+Vsa32H8A3e7tOgXZPdt2TVNltx2S9H2WO8RMi7LfaSwARNfy1zu+bfR50r6ef8Yx5YKCMz4wWb1SHU1GS800mjOjlInLQORYRNMlSwR1+vLlVDciOqFapDSbj+YOVOawR0R1aqlSKpZkt33DuOBPx9qe6CVnIi7Z+Px/KqM+OLCzlLY/RS+LbxQpDWcfTVRiP+S5qRTcE3M3UioN/e0BE/1+MpX90IGpvVkA63ILYbKEa4bM3ASL7ChTCr6xN5XT+GpVJveFKK1cfNx9ExHI4rzYE= + +[attachment] +PATH = {{GITEA_ROOT}}/tests/dev/data/attachments + +[mailer] +ENABLED = true +PROTOCOL = dummy +FROM = sqlite-dev-test@gitea.io + +[service] +REGISTER_EMAIL_CONFIRM = false +REGISTER_MANUAL_CONFIRM = false +ENABLE_NOTIFY_MAIL = true +DISABLE_REGISTRATION = false +ENABLE_CAPTCHA = false +REQUIRE_SIGNIN_VIEW = false +DEFAULT_KEEP_EMAIL_PRIVATE = false +DEFAULT_ALLOW_CREATE_ORGANIZATION = true +NO_REPLY_ADDRESS = noreply.example.org + +[picture] +DISABLE_GRAVATAR = false +ENABLE_FEDERATED_AVATAR = false +AVATAR_UPLOAD_PATH = {{GITEA_ROOT}}/tests/dev/data/avatars +REPOSITORY_AVATAR_UPLOAD_PATH = {{GITEA_ROOT}}/tests/dev/data/repo-avatars + +[session] +PROVIDER = file +PROVIDER_CONFIG = {{GITEA_ROOT}}/tests/dev/data/sessions + +[log] +MODE = console,file +ROOT_PATH = {{GITEA_ROOT}}/tests/dev/log +ROUTER = , +XORM = file +ENABLE_SSH_LOG = true + +[log.file] +LEVEL = Debug + +[security] +DISABLE_GIT_HOOKS = false +INSTALL_LOCK = true +SECRET_KEY = 9pCviYTWSb +INTERNAL_TOKEN = eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYmYiOjE0OTI3OTU5ODN9.OQkH5UmzID2XBdwQ9TAI6Jj2t1X-wElVTjbE7aoN4I8 + +[oauth2] +JWT_SECRET = KZb_QLUd4fYVyxetjxC4eZkrBgWM2SndOOWDNtgUUko + +[lfs] +PATH = {{GITEA_ROOT}}/tests/gitea-repositories-meta + +[packages] +ENABLED = true + +[markup.html] +ENABLED = true +FILE_EXTENSIONS = .html +RENDER_COMMAND = `go run build/test-echo.go` +IS_INPUT_FILE = false +RENDER_CONTENT_MODE=sanitized + +[actions] +ENABLED = true diff --git a/tests/integration/api_actions_artifact_test.go b/tests/integration/api_actions_artifact_test.go index 6590ca667cf59..cea10a3797d59 100644 --- a/tests/integration/api_actions_artifact_test.go +++ b/tests/integration/api_actions_artifact_test.go @@ -22,9 +22,21 @@ type getUploadArtifactRequest struct { Name string } -func TestActionsArtifactUploadSingleFile(t *testing.T) { +func TestActionsArtifactSingleFile(t *testing.T) { defer tests.PrepareTestEnv(t)() + t.Run("Upload", testActionsArtifactUploadSingleFile) + t.Run("Download", testActionsArtifactDownload) +} + +func TestActionsArtifactMultiFiles(t *testing.T) { + defer tests.PrepareTestEnv(t)() + + t.Run("Upload", testActionsArtifactUploadMultipleFile) + t.Run("Download", testActionsArtifactDownloadMultiFiles) +} + +func testActionsArtifactUploadSingleFile(t *testing.T) { // acquire artifact upload url req := NewRequestWithJSON(t, "POST", "/api/actions_pipeline/_apis/pipelines/workflows/791/artifacts", getUploadArtifactRequest{ Type: "actions_storage", @@ -107,9 +119,7 @@ type ( } ) -func TestActionsArtifactDownload(t *testing.T) { - defer tests.PrepareTestEnv(t)() - +func testActionsArtifactDownload(t *testing.T) { req := NewRequest(t, "GET", "/api/actions_pipeline/_apis/pipelines/workflows/791/artifacts") req = addTokenAuthHeader(req, "Bearer 8061e833a55f6fc0157c98b883e91fcfeeb1a71a") resp := MakeRequest(t, req, http.StatusOK) @@ -140,9 +150,7 @@ func TestActionsArtifactDownload(t *testing.T) { assert.Equal(t, resp.Body.String(), body) } -func TestActionsArtifactUploadMultipleFile(t *testing.T) { - defer tests.PrepareTestEnv(t)() - +func testActionsArtifactUploadMultipleFile(t *testing.T) { const testArtifactName = "multi-files" // acquire artifact upload url @@ -197,9 +205,7 @@ func TestActionsArtifactUploadMultipleFile(t *testing.T) { MakeRequest(t, req, http.StatusOK) } -func TestActionsArtifactDownloadMultiFiles(t *testing.T) { - defer tests.PrepareTestEnv(t)() - +func testActionsArtifactDownloadMultiFiles(t *testing.T) { const testArtifactName = "multi-files" req := NewRequest(t, "GET", "/api/actions_pipeline/_apis/pipelines/workflows/791/artifacts") From 615ccbbd8750b3907ce3fc24cf306dc6b11a0291 Mon Sep 17 00:00:00 2001 From: a1012112796 <1012112796@qq.com> Date: Sat, 19 Aug 2023 08:35:01 +0000 Subject: [PATCH 02/26] add auto updated files Signed-off-by: a1012112796 <1012112796@qq.com> --- models/fixtures/access.yml | 146 +- models/fixtures/access_token.yml | 30 +- models/fixtures/action.yml | 146 +- models/fixtures/action_run.yml | 27 +- models/fixtures/action_run_job.yml | 22 +- models/fixtures/action_task.yml | 28 +- models/fixtures/attachment.yml | 155 +- models/fixtures/branch.yml | 65 +- models/fixtures/collaboration.yml | 47 +- models/fixtures/comment.yml | 276 +- models/fixtures/commit_status.yml | 56 +- models/fixtures/commit_status_index.yml | 5 +- models/fixtures/deploy_key.yml | 2 +- models/fixtures/email_address.yml | 349 +- models/fixtures/external_login_user.yml | 2 +- models/fixtures/follow.yml | 17 +- models/fixtures/gpg_key.yml | 2 +- models/fixtures/gpg_key_import.yml | 2 +- models/fixtures/hook_task.yml | 11 +- models/fixtures/issue.yml | 513 +-- models/fixtures/issue_assignees.yml | 12 +- models/fixtures/issue_index.yml | 27 +- models/fixtures/issue_label.yml | 15 +- models/fixtures/issue_user.yml | 25 +- models/fixtures/issue_watch.yml | 31 +- models/fixtures/label.yml | 152 +- models/fixtures/language_stat.yml | 28 + models/fixtures/lfs_meta_object.yml | 32 +- models/fixtures/login_source.yml | 2 +- models/fixtures/milestone.yml | 68 +- models/fixtures/mirror.yml | 59 +- models/fixtures/notice.yml | 20 +- models/fixtures/notification.yml | 69 +- models/fixtures/oauth2_application.yml | 26 +- models/fixtures/oauth2_authorization_code.yml | 21 +- models/fixtures/oauth2_grant.yml | 37 +- models/fixtures/org_user.yml | 123 +- models/fixtures/project.yml | 59 +- models/fixtures/project_board.yml | 35 +- models/fixtures/project_issue.yml | 27 +- models/fixtures/protected_branch.yml | 2 +- models/fixtures/public_key.yml | 14 +- models/fixtures/pull_request.yml | 187 +- models/fixtures/reaction.yml | 59 +- models/fixtures/release.yml | 258 +- models/fixtures/renamed_branch.yml | 4 +- models/fixtures/repo_archiver.yml | 2 +- models/fixtures/repo_indexer_status.yml | 85 +- models/fixtures/repo_redirect.yml | 5 +- models/fixtures/repo_topic.yml | 27 +- models/fixtures/repo_transfer.yml | 6 +- models/fixtures/repo_unit.yml | 372 +- models/fixtures/repository.yml | 3183 +++++++++++------ models/fixtures/review.yml | 238 +- models/fixtures/star.yml | 9 +- models/fixtures/stopwatch.yml | 11 +- models/fixtures/system_setting.yml | 19 +- models/fixtures/team.yml | 259 +- models/fixtures/team_repo.yml | 65 +- models/fixtures/team_unit.yml | 248 +- models/fixtures/team_user.yml | 83 +- models/fixtures/topic.yml | 23 +- models/fixtures/tracked_time.yml | 71 +- models/fixtures/two_factor.yml | 11 +- models/fixtures/user.yml | 2348 ++++++------ models/fixtures/user_open_id.yml | 17 +- models/fixtures/user_redirect.yml | 3 +- models/fixtures/watch.yml | 39 +- models/fixtures/webauthn_credential.yml | 13 +- models/fixtures/webhook.yml | 67 +- .../hooks/post-receive | 7 + .../hooks/post-receive.d/gitea | 2 + .../hooks/pre-receive | 7 + .../hooks/pre-receive.d/gitea | 2 + .../hooks/proc-receive.d/gitea | 0 .../hooks/update | 7 + .../hooks/update.d/gitea | 2 + .../hooks/post-receive | 7 + .../hooks/post-receive.d/gitea | 2 + .../hooks/pre-receive | 7 + .../hooks/pre-receive.d/gitea | 2 + .../hooks/proc-receive.d/gitea | 0 .../hooks/update | 7 + .../hooks/update.d/gitea | 2 + .../migration/lfs-test.git/hooks/post-receive | 7 + .../lfs-test.git/hooks/post-receive.d/gitea | 2 + .../migration/lfs-test.git/hooks/pre-receive | 7 + .../lfs-test.git/hooks/pre-receive.d/gitea | 2 + .../migration/lfs-test.git/hooks/update | 7 + .../lfs-test.git/hooks/update.d/gitea | 2 + .../hooks/post-receive | 7 + .../hooks/post-receive.d/gitea | 2 + .../hooks/pre-receive | 7 + .../hooks/pre-receive.d/gitea | 2 + .../hooks/proc-receive.d/gitea | 0 .../repo_external_tracker.git/hooks/update | 7 + .../hooks/update.d/gitea | 2 + .../hooks/post-receive | 7 + .../hooks/post-receive.d/gitea | 2 + .../hooks/pre-receive | 7 + .../hooks/pre-receive.d/gitea | 2 + .../hooks/proc-receive.d/gitea | 0 .../hooks/update | 7 + .../hooks/update.d/gitea | 2 + .../hooks/post-receive | 7 + .../hooks/post-receive.d/gitea | 2 + .../hooks/pre-receive | 7 + .../hooks/pre-receive.d/gitea | 2 + .../hooks/proc-receive.d/gitea | 0 .../hooks/update | 7 + .../hooks/update.d/gitea | 2 + .../hooks/post-receive | 7 + .../hooks/post-receive.d/gitea | 2 + .../hooks/pre-receive | 7 + .../hooks/pre-receive.d/gitea | 2 + .../hooks/proc-receive.d/gitea | 0 .../hooks/update | 7 + .../hooks/update.d/gitea | 2 + .../hooks/post-receive | 7 + .../hooks/post-receive.d/gitea | 2 + .../hooks/pre-receive | 7 + .../hooks/pre-receive.d/gitea | 2 + .../hooks/proc-receive.d/gitea | 0 .../hooks/update | 7 + .../hooks/update.d/gitea | 2 + .../repo10.git/hooks/proc-receive.d/gitea | 0 .../repo11.git/hooks/proc-receive.d/gitea | 0 .../hooks/post-receive | 7 + .../hooks/post-receive.d/gitea | 2 + .../commits_search_test.git/hooks/pre-receive | 7 + .../hooks/pre-receive.d/gitea | 2 + .../hooks/proc-receive.d/gitea | 0 .../commits_search_test.git/hooks/update | 7 + .../hooks/update.d/gitea | 2 + .../user2/commitsonpr.git/hooks/post-receive | 7 + .../hooks/post-receive.d/gitea | 2 + .../user2/commitsonpr.git/hooks/pre-receive | 7 + .../commitsonpr.git/hooks/pre-receive.d/gitea | 2 + .../hooks/proc-receive.d/gitea | 0 .../user2/commitsonpr.git/hooks/update | 7 + .../commitsonpr.git/hooks/update.d/gitea | 2 + .../hooks/proc-receive.d/gitea | 0 .../user2/glob.git/hooks/post-receive | 7 + .../user2/glob.git/hooks/post-receive.d/gitea | 2 + .../user2/glob.git/hooks/pre-receive | 7 + .../user2/glob.git/hooks/pre-receive.d/gitea | 2 + .../user2/glob.git/hooks/proc-receive.d/gitea | 0 .../user2/glob.git/hooks/update | 7 + .../user2/glob.git/hooks/update.d/gitea | 2 + .../user2/lfs.git/hooks/post-receive | 7 + .../user2/lfs.git/hooks/post-receive.d/gitea | 2 + .../user2/lfs.git/hooks/pre-receive | 7 + .../user2/lfs.git/hooks/pre-receive.d/gitea | 2 + .../user2/lfs.git/hooks/proc-receive.d/gitea | 0 .../user2/lfs.git/hooks/update | 7 + .../user2/lfs.git/hooks/update.d/gitea | 2 + .../user2/readme-test.git/hooks/post-receive | 7 + .../hooks/post-receive.d/gitea | 2 + .../user2/readme-test.git/hooks/pre-receive | 7 + .../readme-test.git/hooks/pre-receive.d/gitea | 2 + .../hooks/proc-receive.d/gitea | 0 .../user2/readme-test.git/hooks/update | 7 + .../readme-test.git/hooks/update.d/gitea | 2 + .../user2/repo-release.git/hooks/post-receive | 7 + .../hooks/post-receive.d/gitea | 2 + .../user2/repo-release.git/hooks/pre-receive | 7 + .../hooks/pre-receive.d/gitea | 2 + .../hooks/proc-receive.d/gitea | 0 .../user2/repo-release.git/hooks/update | 7 + .../repo-release.git/hooks/update.d/gitea | 2 + .../repo1.git/hooks/proc-receive.d/gitea | 0 .../repo15.git/hooks/proc-receive.d/gitea | 0 .../user2/repo16.git/hooks/post-receive | 7 + .../repo16.git/hooks/post-receive.d/gitea | 2 + .../user2/repo16.git/hooks/pre-receive | 7 + .../repo16.git/hooks/pre-receive.d/gitea | 2 + .../repo16.git/hooks/proc-receive.d/gitea | 0 .../user2/repo16.git/hooks/update | 7 + .../user2/repo16.git/hooks/update.d/gitea | 2 + .../user2/repo2.git/hooks/post-receive | 7 + .../repo2.git/hooks/post-receive.d/gitea | 2 + .../user2/repo2.git/hooks/pre-receive | 7 + .../user2/repo2.git/hooks/pre-receive.d/gitea | 2 + .../repo2.git/hooks/proc-receive.d/gitea | 0 .../user2/repo2.git/hooks/update | 7 + .../user2/repo2.git/hooks/update.d/gitea | 2 + .../user2/repo20.git/hooks/post-receive | 20 +- .../user2/repo20.git/hooks/pre-receive | 20 +- .../repo20.git/hooks/proc-receive.d/gitea | 0 .../user2/repo20.git/hooks/update | 19 +- .../user2/utf8.git/hooks/proc-receive.d/gitea | 0 .../user27/repo49.git/hooks/post-receive | 20 +- .../repo49.git/hooks/post-receive.d/gitea | 0 .../user27/repo49.git/hooks/pre-receive | 20 +- .../repo49.git/hooks/pre-receive.d/gitea | 0 .../repo49.git/hooks/proc-receive.d/gitea | 0 .../user27/repo49.git/hooks/update | 19 +- .../user27/repo49.git/hooks/update.d/gitea | 0 .../user27/template1.git/hooks/post-receive | 20 +- .../template1.git/hooks/post-receive.d/gitea | 0 .../user27/template1.git/hooks/pre-receive | 20 +- .../template1.git/hooks/pre-receive.d/gitea | 0 .../template1.git/hooks/proc-receive.d/gitea | 0 .../user27/template1.git/hooks/update | 19 +- .../user27/template1.git/hooks/update.d/gitea | 0 .../repo3.git/hooks/proc-receive.d/gitea | 0 .../repo5.git/hooks/proc-receive.d/gitea | 0 .../user30/renderer.git/hooks/post-receive | 20 +- .../renderer.git/hooks/post-receive.d/gitea | 0 .../user30/renderer.git/hooks/pre-receive | 20 +- .../renderer.git/hooks/pre-receive.d/gitea | 0 .../renderer.git/hooks/proc-receive.d/gitea | 0 .../user30/renderer.git/hooks/update | 19 +- .../user30/renderer.git/hooks/update.d/gitea | 0 .../user5/repo4.git/hooks/post-receive | 7 + .../repo4.git/hooks/post-receive.d/gitea | 2 + .../user5/repo4.git/hooks/pre-receive | 7 + .../user5/repo4.git/hooks/pre-receive.d/gitea | 2 + .../repo4.git/hooks/proc-receive.d/gitea | 0 .../user5/repo4.git/hooks/update | 7 + .../user5/repo4.git/hooks/update.d/gitea | 2 + 221 files changed, 6357 insertions(+), 4835 deletions(-) create mode 100644 models/fixtures/language_stat.yml create mode 100755 tests/gitea-repositories-meta/limited_org/private_repo_on_limited_org.git/hooks/post-receive create mode 100755 tests/gitea-repositories-meta/limited_org/private_repo_on_limited_org.git/hooks/post-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/limited_org/private_repo_on_limited_org.git/hooks/pre-receive create mode 100755 tests/gitea-repositories-meta/limited_org/private_repo_on_limited_org.git/hooks/pre-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/limited_org/private_repo_on_limited_org.git/hooks/proc-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/limited_org/private_repo_on_limited_org.git/hooks/update create mode 100755 tests/gitea-repositories-meta/limited_org/private_repo_on_limited_org.git/hooks/update.d/gitea create mode 100755 tests/gitea-repositories-meta/limited_org/public_repo_on_limited_org.git/hooks/post-receive create mode 100755 tests/gitea-repositories-meta/limited_org/public_repo_on_limited_org.git/hooks/post-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/limited_org/public_repo_on_limited_org.git/hooks/pre-receive create mode 100755 tests/gitea-repositories-meta/limited_org/public_repo_on_limited_org.git/hooks/pre-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/limited_org/public_repo_on_limited_org.git/hooks/proc-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/limited_org/public_repo_on_limited_org.git/hooks/update create mode 100755 tests/gitea-repositories-meta/limited_org/public_repo_on_limited_org.git/hooks/update.d/gitea create mode 100755 tests/gitea-repositories-meta/migration/lfs-test.git/hooks/post-receive create mode 100755 tests/gitea-repositories-meta/migration/lfs-test.git/hooks/post-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/migration/lfs-test.git/hooks/pre-receive create mode 100755 tests/gitea-repositories-meta/migration/lfs-test.git/hooks/pre-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/migration/lfs-test.git/hooks/update create mode 100755 tests/gitea-repositories-meta/migration/lfs-test.git/hooks/update.d/gitea create mode 100755 tests/gitea-repositories-meta/org26/repo_external_tracker.git/hooks/post-receive create mode 100755 tests/gitea-repositories-meta/org26/repo_external_tracker.git/hooks/post-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/org26/repo_external_tracker.git/hooks/pre-receive create mode 100755 tests/gitea-repositories-meta/org26/repo_external_tracker.git/hooks/pre-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/org26/repo_external_tracker.git/hooks/proc-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/org26/repo_external_tracker.git/hooks/update create mode 100755 tests/gitea-repositories-meta/org26/repo_external_tracker.git/hooks/update.d/gitea create mode 100755 tests/gitea-repositories-meta/org26/repo_external_tracker_alpha.git/hooks/post-receive create mode 100755 tests/gitea-repositories-meta/org26/repo_external_tracker_alpha.git/hooks/post-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/org26/repo_external_tracker_alpha.git/hooks/pre-receive create mode 100755 tests/gitea-repositories-meta/org26/repo_external_tracker_alpha.git/hooks/pre-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/org26/repo_external_tracker_alpha.git/hooks/proc-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/org26/repo_external_tracker_alpha.git/hooks/update create mode 100755 tests/gitea-repositories-meta/org26/repo_external_tracker_alpha.git/hooks/update.d/gitea create mode 100755 tests/gitea-repositories-meta/org26/repo_external_tracker_numeric.git/hooks/post-receive create mode 100755 tests/gitea-repositories-meta/org26/repo_external_tracker_numeric.git/hooks/post-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/org26/repo_external_tracker_numeric.git/hooks/pre-receive create mode 100755 tests/gitea-repositories-meta/org26/repo_external_tracker_numeric.git/hooks/pre-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/org26/repo_external_tracker_numeric.git/hooks/proc-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/org26/repo_external_tracker_numeric.git/hooks/update create mode 100755 tests/gitea-repositories-meta/org26/repo_external_tracker_numeric.git/hooks/update.d/gitea create mode 100755 tests/gitea-repositories-meta/privated_org/private_repo_on_private_org.git/hooks/post-receive create mode 100755 tests/gitea-repositories-meta/privated_org/private_repo_on_private_org.git/hooks/post-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/privated_org/private_repo_on_private_org.git/hooks/pre-receive create mode 100755 tests/gitea-repositories-meta/privated_org/private_repo_on_private_org.git/hooks/pre-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/privated_org/private_repo_on_private_org.git/hooks/proc-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/privated_org/private_repo_on_private_org.git/hooks/update create mode 100755 tests/gitea-repositories-meta/privated_org/private_repo_on_private_org.git/hooks/update.d/gitea create mode 100755 tests/gitea-repositories-meta/privated_org/public_repo_on_private_org.git/hooks/post-receive create mode 100755 tests/gitea-repositories-meta/privated_org/public_repo_on_private_org.git/hooks/post-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/privated_org/public_repo_on_private_org.git/hooks/pre-receive create mode 100755 tests/gitea-repositories-meta/privated_org/public_repo_on_private_org.git/hooks/pre-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/privated_org/public_repo_on_private_org.git/hooks/proc-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/privated_org/public_repo_on_private_org.git/hooks/update create mode 100755 tests/gitea-repositories-meta/privated_org/public_repo_on_private_org.git/hooks/update.d/gitea create mode 100755 tests/gitea-repositories-meta/user12/repo10.git/hooks/proc-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/user13/repo11.git/hooks/proc-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/user2/commits_search_test.git/hooks/post-receive create mode 100755 tests/gitea-repositories-meta/user2/commits_search_test.git/hooks/post-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/user2/commits_search_test.git/hooks/pre-receive create mode 100755 tests/gitea-repositories-meta/user2/commits_search_test.git/hooks/pre-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/user2/commits_search_test.git/hooks/proc-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/user2/commits_search_test.git/hooks/update create mode 100755 tests/gitea-repositories-meta/user2/commits_search_test.git/hooks/update.d/gitea create mode 100755 tests/gitea-repositories-meta/user2/commitsonpr.git/hooks/post-receive create mode 100755 tests/gitea-repositories-meta/user2/commitsonpr.git/hooks/post-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/user2/commitsonpr.git/hooks/pre-receive create mode 100755 tests/gitea-repositories-meta/user2/commitsonpr.git/hooks/pre-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/user2/commitsonpr.git/hooks/proc-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/user2/commitsonpr.git/hooks/update create mode 100755 tests/gitea-repositories-meta/user2/commitsonpr.git/hooks/update.d/gitea create mode 100755 tests/gitea-repositories-meta/user2/git_hooks_test.git/hooks/proc-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/user2/glob.git/hooks/post-receive create mode 100755 tests/gitea-repositories-meta/user2/glob.git/hooks/post-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/user2/glob.git/hooks/pre-receive create mode 100755 tests/gitea-repositories-meta/user2/glob.git/hooks/pre-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/user2/glob.git/hooks/proc-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/user2/glob.git/hooks/update create mode 100755 tests/gitea-repositories-meta/user2/glob.git/hooks/update.d/gitea create mode 100755 tests/gitea-repositories-meta/user2/lfs.git/hooks/post-receive create mode 100755 tests/gitea-repositories-meta/user2/lfs.git/hooks/post-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/user2/lfs.git/hooks/pre-receive create mode 100755 tests/gitea-repositories-meta/user2/lfs.git/hooks/pre-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/user2/lfs.git/hooks/proc-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/user2/lfs.git/hooks/update create mode 100755 tests/gitea-repositories-meta/user2/lfs.git/hooks/update.d/gitea create mode 100755 tests/gitea-repositories-meta/user2/readme-test.git/hooks/post-receive create mode 100755 tests/gitea-repositories-meta/user2/readme-test.git/hooks/post-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/user2/readme-test.git/hooks/pre-receive create mode 100755 tests/gitea-repositories-meta/user2/readme-test.git/hooks/pre-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/user2/readme-test.git/hooks/proc-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/user2/readme-test.git/hooks/update create mode 100755 tests/gitea-repositories-meta/user2/readme-test.git/hooks/update.d/gitea create mode 100755 tests/gitea-repositories-meta/user2/repo-release.git/hooks/post-receive create mode 100755 tests/gitea-repositories-meta/user2/repo-release.git/hooks/post-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/user2/repo-release.git/hooks/pre-receive create mode 100755 tests/gitea-repositories-meta/user2/repo-release.git/hooks/pre-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/user2/repo-release.git/hooks/proc-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/user2/repo-release.git/hooks/update create mode 100755 tests/gitea-repositories-meta/user2/repo-release.git/hooks/update.d/gitea create mode 100755 tests/gitea-repositories-meta/user2/repo1.git/hooks/proc-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/user2/repo15.git/hooks/proc-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/user2/repo16.git/hooks/post-receive create mode 100755 tests/gitea-repositories-meta/user2/repo16.git/hooks/post-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/user2/repo16.git/hooks/pre-receive create mode 100755 tests/gitea-repositories-meta/user2/repo16.git/hooks/pre-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/user2/repo16.git/hooks/proc-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/user2/repo16.git/hooks/update create mode 100755 tests/gitea-repositories-meta/user2/repo16.git/hooks/update.d/gitea create mode 100755 tests/gitea-repositories-meta/user2/repo2.git/hooks/post-receive create mode 100755 tests/gitea-repositories-meta/user2/repo2.git/hooks/post-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/user2/repo2.git/hooks/pre-receive create mode 100755 tests/gitea-repositories-meta/user2/repo2.git/hooks/pre-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/user2/repo2.git/hooks/proc-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/user2/repo2.git/hooks/update create mode 100755 tests/gitea-repositories-meta/user2/repo2.git/hooks/update.d/gitea create mode 100755 tests/gitea-repositories-meta/user2/repo20.git/hooks/proc-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/user2/utf8.git/hooks/proc-receive.d/gitea mode change 100644 => 100755 tests/gitea-repositories-meta/user27/repo49.git/hooks/post-receive mode change 100644 => 100755 tests/gitea-repositories-meta/user27/repo49.git/hooks/post-receive.d/gitea mode change 100644 => 100755 tests/gitea-repositories-meta/user27/repo49.git/hooks/pre-receive mode change 100644 => 100755 tests/gitea-repositories-meta/user27/repo49.git/hooks/pre-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/user27/repo49.git/hooks/proc-receive.d/gitea mode change 100644 => 100755 tests/gitea-repositories-meta/user27/repo49.git/hooks/update mode change 100644 => 100755 tests/gitea-repositories-meta/user27/repo49.git/hooks/update.d/gitea mode change 100644 => 100755 tests/gitea-repositories-meta/user27/template1.git/hooks/post-receive mode change 100644 => 100755 tests/gitea-repositories-meta/user27/template1.git/hooks/post-receive.d/gitea mode change 100644 => 100755 tests/gitea-repositories-meta/user27/template1.git/hooks/pre-receive mode change 100644 => 100755 tests/gitea-repositories-meta/user27/template1.git/hooks/pre-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/user27/template1.git/hooks/proc-receive.d/gitea mode change 100644 => 100755 tests/gitea-repositories-meta/user27/template1.git/hooks/update mode change 100644 => 100755 tests/gitea-repositories-meta/user27/template1.git/hooks/update.d/gitea create mode 100755 tests/gitea-repositories-meta/user3/repo3.git/hooks/proc-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/user3/repo5.git/hooks/proc-receive.d/gitea mode change 100644 => 100755 tests/gitea-repositories-meta/user30/renderer.git/hooks/post-receive mode change 100644 => 100755 tests/gitea-repositories-meta/user30/renderer.git/hooks/post-receive.d/gitea mode change 100644 => 100755 tests/gitea-repositories-meta/user30/renderer.git/hooks/pre-receive mode change 100644 => 100755 tests/gitea-repositories-meta/user30/renderer.git/hooks/pre-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/user30/renderer.git/hooks/proc-receive.d/gitea mode change 100644 => 100755 tests/gitea-repositories-meta/user30/renderer.git/hooks/update mode change 100644 => 100755 tests/gitea-repositories-meta/user30/renderer.git/hooks/update.d/gitea create mode 100755 tests/gitea-repositories-meta/user5/repo4.git/hooks/post-receive create mode 100755 tests/gitea-repositories-meta/user5/repo4.git/hooks/post-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/user5/repo4.git/hooks/pre-receive create mode 100755 tests/gitea-repositories-meta/user5/repo4.git/hooks/pre-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/user5/repo4.git/hooks/proc-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/user5/repo4.git/hooks/update create mode 100755 tests/gitea-repositories-meta/user5/repo4.git/hooks/update.d/gitea diff --git a/models/fixtures/access.yml b/models/fixtures/access.yml index 446502843ef48..e9e9271c319dd 100644 --- a/models/fixtures/access.yml +++ b/models/fixtures/access.yml @@ -1,138 +1,92 @@ -- - id: 1 - user_id: 2 - repo_id: 3 +- id: 1 mode: 4 - -- - id: 2 + repo_id: 3 user_id: 2 - repo_id: 5 +- id: 2 mode: 4 - -- - id: 3 + repo_id: 5 user_id: 2 - repo_id: 24 +- id: 3 mode: 2 - -- - id: 4 + repo_id: 24 user_id: 2 - repo_id: 32 +- id: 4 mode: 4 - -- - id: 5 - user_id: 4 - repo_id: 3 + repo_id: 32 + user_id: 2 +- id: 5 mode: 2 - -- - id: 6 + repo_id: 3 user_id: 4 - repo_id: 4 +- id: 6 mode: 2 - -- - id: 7 + repo_id: 4 user_id: 4 +- id: 7 + mode: 2 repo_id: 40 + user_id: 4 +- id: 8 mode: 2 - -- - id: 8 - user_id: 15 repo_id: 21 - mode: 2 - -- - id: 9 user_id: 15 - repo_id: 22 +- id: 9 mode: 2 - -- - id: 10 + repo_id: 22 user_id: 15 - repo_id: 23 +- id: 10 mode: 4 - -- - id: 11 + repo_id: 23 user_id: 15 - repo_id: 24 +- id: 11 mode: 4 - -- - id: 12 + repo_id: 24 user_id: 15 +- id: 12 + mode: 2 repo_id: 32 + user_id: 15 +- id: 13 mode: 2 - -- - id: 13 - user_id: 18 repo_id: 21 - mode: 2 - -- - id: 14 user_id: 18 - repo_id: 22 +- id: 14 mode: 2 - -- - id: 15 + repo_id: 22 user_id: 18 - repo_id: 23 +- id: 15 mode: 4 - -- - id: 16 + repo_id: 23 user_id: 18 - repo_id: 24 +- id: 16 mode: 4 - -- - id: 17 - user_id: 20 repo_id: 24 + user_id: 18 +- id: 17 mode: 1 - -- - id: 18 + repo_id: 24 user_id: 20 - repo_id: 27 +- id: 18 mode: 4 - -- - id: 19 + repo_id: 27 user_id: 20 - repo_id: 28 +- id: 19 mode: 4 - -- - id: 20 - user_id: 29 - repo_id: 4 + repo_id: 28 + user_id: 20 +- id: 20 mode: 2 - -- - id: 21 + repo_id: 4 user_id: 29 - repo_id: 24 +- id: 21 mode: 1 - -- - id: 22 - user_id: 31 - repo_id: 27 + repo_id: 24 + user_id: 29 +- id: 22 mode: 4 - -- - id: 23 + repo_id: 27 user_id: 31 - repo_id: 28 +- id: 23 mode: 4 - + repo_id: 28 + user_id: 31 diff --git a/models/fixtures/access_token.yml b/models/fixtures/access_token.yml index 791b3da1c459f..221fe6822a24c 100644 --- a/models/fixtures/access_token.yml +++ b/models/fixtures/access_token.yml @@ -1,33 +1,27 @@ -- +- created_unix: 946687980 id: 1 - uid: 1 name: Token A - #token: d2c6c1ba3890b309189a8e618c72a162e4efbf36 + scope: null token_hash: 2b3668e11cb82d3af8c6e4524fc7841297668f5008d1626f0ad3417e9fa39af84c268248b78c481daa7e5dc437784003494f - token_salt: QuSiZr1byZ token_last_eight: e4efbf36 - created_unix: 946687980 + token_salt: QuSiZr1byZ + uid: 1 updated_unix: 946687980 - -- +- created_unix: 946687980 id: 2 - uid: 1 name: Token B - #token: 4c6f36e6cf498e2a448662f915d932c09c5a146c + scope: null token_hash: 1a0e32a231ebbd582dc626c1543a42d3c63d4fa76c07c72862721467c55e8f81c923d60700f0528b5f5f443f055559d3a279 - token_salt: Lfwopukrq5 token_last_eight: 9c5a146c - created_unix: 946687980 + token_salt: Lfwopukrq5 + uid: 1 updated_unix: 946687980 - -- +- created_unix: 946687980 id: 3 - uid: 2 name: Token A - #token: 90a18faa671dc43924b795806ffe4fd169d28c91 + scope: null token_hash: d6d404048048812d9e911d93aefbe94fc768d4876fdf75e3bef0bdc67828e0af422846d3056f2f25ec35c51dc92075685ec5 - token_salt: 99ArgXKlQQ token_last_eight: 69d28c91 - created_unix: 946687980 + token_salt: 99ArgXKlQQ + uid: 2 updated_unix: 946687980 -#commented out tokens so you can see what they are in plaintext diff --git a/models/fixtures/action.yml b/models/fixtures/action.yml index af9ce93ba5c5d..1fbbe097a27a0 100644 --- a/models/fixtures/action.yml +++ b/models/fixtures/action.yml @@ -1,75 +1,99 @@ -- +- act_user_id: 2 + comment_id: null + content: null + created_unix: 1603228283 id: 1 + is_deleted: 0 + is_private: 1 + op_type: 12 + ref_name: null + repo_id: 2 user_id: 2 - op_type: 12 # close issue - act_user_id: 2 - repo_id: 2 # private - is_private: true - created_unix: 1603228283 - -- +- act_user_id: 2 + comment_id: null + content: oldRepoName + created_unix: null id: 2 + is_deleted: 0 + is_private: 1 + op_type: 2 + ref_name: null + repo_id: 3 user_id: 3 - op_type: 2 # rename repo - act_user_id: 2 - repo_id: 3 # private - is_private: true - content: oldRepoName - -- +- act_user_id: 11 + comment_id: null + content: null + created_unix: null id: 3 + is_deleted: 0 + is_private: 0 + op_type: 1 + ref_name: null + repo_id: 9 user_id: 11 - op_type: 1 # create repo - act_user_id: 11 - repo_id: 9 # public - is_private: false - -- +- act_user_id: 16 + comment_id: null + content: null + created_unix: 1603267920 id: 4 + is_deleted: 0 + is_private: 1 + op_type: 12 + ref_name: null + repo_id: 22 user_id: 16 - op_type: 12 # close issue - act_user_id: 16 - repo_id: 22 # private - is_private: true - created_unix: 1603267920 - -- id: 5 - user_id: 10 - op_type: 1 # create repo - act_user_id: 10 - repo_id: 6 # private - is_private: true +- act_user_id: 10 + comment_id: null + content: null created_unix: 1603010100 - -- id: 6 + id: 5 + is_deleted: 0 + is_private: 1 + op_type: 1 + ref_name: null + repo_id: 6 user_id: 10 - op_type: 1 # create repo - act_user_id: 10 - repo_id: 7 # private - is_private: true +- act_user_id: 10 + comment_id: null + content: null created_unix: 1603011300 - -- id: 7 + id: 6 + is_deleted: 0 + is_private: 1 + op_type: 1 + ref_name: null + repo_id: 7 user_id: 10 - op_type: 1 # create repo - act_user_id: 10 - repo_id: 8 # public - is_private: false - created_unix: 1603011540 # grouped with id:7 - -- id: 8 - user_id: 1 - op_type: 12 # close issue - act_user_id: 1 - repo_id: 1700 # dangling intentional - is_private: false +- act_user_id: 10 + comment_id: null + content: null + created_unix: 1603011540 + id: 7 + is_deleted: 0 + is_private: 0 + op_type: 1 + ref_name: null + repo_id: 8 + user_id: 10 +- act_user_id: 1 + comment_id: null + content: null created_unix: 1603011541 - -- id: 9 - user_id: 34 - op_type: 12 # close issue - act_user_id: 34 - repo_id: 1 # public - is_private: false + id: 8 + is_deleted: 0 + is_private: 0 + op_type: 12 + ref_name: null + repo_id: 1700 + user_id: 1 +- act_user_id: 34 + comment_id: null + content: 4| created_unix: 1680454039 - content: '4|' # issueId 5 + id: 9 + is_deleted: 0 + is_private: 0 + op_type: 12 + ref_name: null + repo_id: 1 + user_id: 34 diff --git a/models/fixtures/action_run.yml b/models/fixtures/action_run.yml index 2c2151f354af6..1185b5404d472 100644 --- a/models/fixtures/action_run.yml +++ b/models/fixtures/action_run.yml @@ -1,19 +1,20 @@ -- +- approved_by: 0 + commit_sha: c2d72f548424103f01ee1dc02889c1e2bff816b0 + created: 1683636108 + event: push + event_payload: null id: 791 - title: "update actions" - repo_id: 4 - owner_id: 1 - workflow_id: "artifact.yaml" index: 187 - trigger_user_id: 1 - ref: "refs/heads/master" - commit_sha: "c2d72f548424103f01ee1dc02889c1e2bff816b0" - event: "push" is_fork_pull_request: 0 - status: 1 + need_approval: 0 + owner_id: 1 + ref: refs/heads/master + repo_id: 4 started: 1683636528 + status: 1 stopped: 1683636626 - created: 1683636108 + title: update actions + trigger_event: null + trigger_user_id: 1 updated: 1683636626 - need_approval: 0 - approved_by: 0 + workflow_id: artifact.yaml diff --git a/models/fixtures/action_run_job.yml b/models/fixtures/action_run_job.yml index 071998b9796f9..034de0f20ffdf 100644 --- a/models/fixtures/action_run_job.yml +++ b/models/fixtures/action_run_job.yml @@ -1,14 +1,18 @@ -- - id: 192 - run_id: 791 - repo_id: 4 - owner_id: 1 +- attempt: 1 commit_sha: c2d72f548424103f01ee1dc02889c1e2bff816b0 + created: null + id: 192 is_fork_pull_request: 0 - name: job_2 - attempt: 1 job_id: job_2 - task_id: 47 - status: 1 + name: job_2 + needs: null + owner_id: 1 + repo_id: 4 + run_id: 791 + runs_on: null started: 1683636528 + status: 1 stopped: 1683636626 + task_id: 47 + updated: null + workflow_payload: null diff --git a/models/fixtures/action_task.yml b/models/fixtures/action_task.yml index c78fb3c5d6377..027fe7ae8b06b 100644 --- a/models/fixtures/action_task.yml +++ b/models/fixtures/action_task.yml @@ -1,20 +1,22 @@ -- +- attempt: 3 + commit_sha: c2d72f548424103f01ee1dc02889c1e2bff816b0 + created: null id: 47 + is_fork_pull_request: 0 job_id: 192 - attempt: 3 + log_expired: 0 + log_filename: artifact-test2/2f/47.log + log_in_storage: 1 + log_indexes: null + log_length: 707 + log_size: 90179 + owner_id: 1 + repo_id: 4 runner_id: 1 - status: 6 # 6 is the status code for "running", running task can upload artifacts started: 1683636528 + status: 6 stopped: 1683636626 - repo_id: 4 - owner_id: 1 - commit_sha: c2d72f548424103f01ee1dc02889c1e2bff816b0 - is_fork_pull_request: 0 token_hash: 6d8ef48297195edcc8e22c70b3020eaa06c52976db67d39b4260c64a69a2cc1508825121b7b8394e48e00b1bf8718b2a867e - token_salt: jVuKnSPGgy token_last_eight: eeb1a71a - log_filename: artifact-test2/2f/47.log - log_in_storage: 1 - log_length: 707 - log_size: 90179 - log_expired: 0 + token_salt: jVuKnSPGgy + updated: null diff --git a/models/fixtures/attachment.yml b/models/fixtures/attachment.yml index 9ad43fa2b7eb6..1ed6f1f40ddd5 100644 --- a/models/fixtures/attachment.yml +++ b/models/fixtures/attachment.yml @@ -1,142 +1,121 @@ -- +- comment_id: 0 + created_unix: 946684800 + download_count: 0 id: 1 - uuid: a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 - repo_id: 1 issue_id: 1 - release_id: 0 - uploader_id: 0 - comment_id: 0 name: attach1 - download_count: 0 + release_id: 0 + repo_id: 1 size: 0 + uploader_id: 0 + uuid: a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 +- comment_id: 0 created_unix: 946684800 - -- + download_count: 1 id: 2 - uuid: a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 - repo_id: 2 issue_id: 4 - release_id: 0 - uploader_id: 0 - comment_id: 0 name: attach2 - download_count: 1 + release_id: 0 + repo_id: 2 size: 0 + uploader_id: 0 + uuid: a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 +- comment_id: 1 created_unix: 946684800 - -- + download_count: 0 id: 3 - uuid: a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a13 - repo_id: 1 issue_id: 2 - release_id: 0 - uploader_id: 0 - comment_id: 1 name: attach1 - download_count: 0 + release_id: 0 + repo_id: 1 size: 0 + uploader_id: 0 + uuid: a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a13 +- comment_id: 1 created_unix: 946684800 - -- + download_count: 1 id: 4 - uuid: a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a14 - repo_id: 1 issue_id: 3 - release_id: 0 - uploader_id: 0 - comment_id: 1 name: attach2 - download_count: 1 + release_id: 0 + repo_id: 1 size: 0 + uploader_id: 0 + uuid: a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a14 +- comment_id: 0 created_unix: 946684800 - -- + download_count: 0 id: 5 - uuid: a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a15 - repo_id: 2 issue_id: 4 - release_id: 0 - uploader_id: 0 - comment_id: 0 name: attach1 - download_count: 0 + release_id: 0 + repo_id: 2 size: 0 + uploader_id: 0 + uuid: a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a15 +- comment_id: 2 created_unix: 946684800 - -- + download_count: 0 id: 6 - uuid: a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a16 - repo_id: 1 issue_id: 5 - release_id: 0 - uploader_id: 0 - comment_id: 2 name: attach1 - download_count: 0 + release_id: 0 + repo_id: 1 size: 0 + uploader_id: 0 + uuid: a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a16 +- comment_id: 2 created_unix: 946684800 - -- + download_count: 0 id: 7 - uuid: a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a17 - repo_id: 1 issue_id: 5 - release_id: 0 - uploader_id: 0 - comment_id: 2 name: attach1 - download_count: 0 + release_id: 0 + repo_id: 1 size: 0 + uploader_id: 0 + uuid: a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a17 +- comment_id: 0 created_unix: 946684800 - -- + download_count: 0 id: 8 - uuid: a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a18 - repo_id: 3 issue_id: 6 - release_id: 0 - uploader_id: 0 - comment_id: 0 name: attach1 - download_count: 0 + release_id: 0 + repo_id: 3 size: 0 + uploader_id: 0 + uuid: a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a18 +- comment_id: 0 created_unix: 946684800 - -- + download_count: 0 id: 9 - uuid: a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a19 - repo_id: 1 issue_id: 0 - release_id: 1 - uploader_id: 0 - comment_id: 0 name: attach1 - download_count: 0 + release_id: 1 + repo_id: 1 size: 0 + uploader_id: 0 + uuid: a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a19 +- comment_id: 0 created_unix: 946684800 - -- + download_count: 0 id: 10 - uuid: a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a20 - repo_id: 0 # TestGetAttachment/NotLinked issue_id: 0 - release_id: 0 - uploader_id: 8 - comment_id: 0 name: attach1 - download_count: 0 + release_id: 0 + repo_id: 0 size: 0 + uploader_id: 8 + uuid: a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a20 +- comment_id: 0 created_unix: 946684800 - -- + download_count: 0 id: 11 - uuid: a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a21 - repo_id: 40 issue_id: 0 - release_id: 2 - uploader_id: 0 - comment_id: 0 name: attach1 - download_count: 0 + release_id: 2 + repo_id: 40 size: 0 - created_unix: 946684800 + uploader_id: 0 + uuid: a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a21 diff --git a/models/fixtures/branch.yml b/models/fixtures/branch.yml index 93003049c67fb..59912ed41738f 100644 --- a/models/fixtures/branch.yml +++ b/models/fixtures/branch.yml @@ -1,47 +1,48 @@ -- - id: 1 - repo_id: 1 - name: 'foo' - commit_id: '65f1bf27bc3bf70f64657658635e66094edbcb4d' - commit_message: 'first commit' +- commit_id: 65f1bf27bc3bf70f64657658635e66094edbcb4d + commit_message: first commit commit_time: 978307100 - pusher_id: 1 - is_deleted: true + created_unix: null deleted_by_id: 1 deleted_unix: 978307200 - -- - id: 2 + id: 1 + is_deleted: 1 + name: foo + pusher_id: 1 repo_id: 1 - name: 'bar' - commit_id: '62fb502a7172d4453f0322a2cc85bddffa57f07a' - commit_message: 'second commit' + updated_unix: null +- commit_id: 62fb502a7172d4453f0322a2cc85bddffa57f07a + commit_message: second commit commit_time: 978307100 - pusher_id: 1 - is_deleted: true + created_unix: null deleted_by_id: 99 deleted_unix: 978307200 - -- - id: 3 + id: 2 + is_deleted: 1 + name: bar + pusher_id: 1 repo_id: 1 - name: 'branch2' - commit_id: '985f0301dba5e7b34be866819cd15ad3d8f508ee' - commit_message: 'make pull5 outdated' + updated_unix: null +- commit_id: 985f0301dba5e7b34be866819cd15ad3d8f508ee + commit_message: make pull5 outdated commit_time: 1579166279 - pusher_id: 1 - is_deleted: false + created_unix: null deleted_by_id: 0 deleted_unix: 0 - -- - id: 4 + id: 3 + is_deleted: 0 + name: branch2 + pusher_id: 1 repo_id: 1 - name: 'master' - commit_id: '65f1bf27bc3bf70f64657658635e66094edbcb4d' - commit_message: 'Initial commit' + updated_unix: null +- commit_id: 65f1bf27bc3bf70f64657658635e66094edbcb4d + commit_message: Initial commit commit_time: 1489927679 - pusher_id: 1 - is_deleted: false + created_unix: null deleted_by_id: 0 deleted_unix: 0 + id: 4 + is_deleted: 0 + name: master + pusher_id: 1 + repo_id: 1 + updated_unix: null diff --git a/models/fixtures/collaboration.yml b/models/fixtures/collaboration.yml index ef77d22b24950..3029ccce1e9cf 100644 --- a/models/fixtures/collaboration.yml +++ b/models/fixtures/collaboration.yml @@ -1,47 +1,48 @@ -- +- created_unix: null id: 1 + mode: 2 repo_id: 3 + updated_unix: null user_id: 2 - mode: 2 # write - -- +- created_unix: null id: 2 + mode: 2 repo_id: 4 + updated_unix: null user_id: 4 - mode: 2 # write - -- +- created_unix: null id: 3 + mode: 2 repo_id: 40 + updated_unix: null user_id: 4 - mode: 2 # write - -- +- created_unix: null id: 4 + mode: 2 repo_id: 4 + updated_unix: null user_id: 29 - mode: 2 # write - -- +- created_unix: null id: 5 + mode: 2 repo_id: 21 + updated_unix: null user_id: 15 - mode: 2 # write - -- +- created_unix: null id: 6 + mode: 2 repo_id: 21 + updated_unix: null user_id: 18 - mode: 2 # write - -- +- created_unix: null id: 7 + mode: 2 repo_id: 22 + updated_unix: null user_id: 15 - mode: 2 # write - -- +- created_unix: null id: 8 + mode: 2 repo_id: 22 + updated_unix: null user_id: 18 - mode: 2 # write diff --git a/models/fixtures/comment.yml b/models/fixtures/comment.yml index bd64680c8c787..0b1b0b2c889ab 100644 --- a/models/fixtures/comment.yml +++ b/models/fixtures/comment.yml @@ -1,68 +1,252 @@ -- - id: 1 - type: 7 # label - poster_id: 2 - issue_id: 1 # in repo_id 1 - label_id: 1 +- assignee_id: null + assignee_team_id: 0 + commit_id: null + commit_sha: null content: "1" created_unix: 946684810 -- - id: 2 - type: 0 # comment - poster_id: 3 # user not watching (see watch.yml) - issue_id: 1 # in repo_id 1 - content: "good work!" + dependent_issue_id: null + id: 1 + invalidated: null + issue_id: 1 + label_id: 1 + line: null + milestone_id: null + new_ref: null + new_title: null + old_milestone_id: null + old_project_id: null + old_ref: null + old_title: null + original_author: null + original_author_id: null + patch: null + poster_id: 2 + project_id: null + ref_action: null + ref_comment_id: null + ref_is_pull: null + ref_issue_id: null + ref_repo_id: null + removed_assignee: null + resolve_doer_id: null + review_id: null + time_id: null + tree_path: null + type: 7 + updated_unix: null +- assignee_id: null + assignee_team_id: 0 + commit_id: null + commit_sha: null + content: good work! created_unix: 946684811 + dependent_issue_id: null + id: 2 + invalidated: null + issue_id: 1 + label_id: null + line: null + milestone_id: null + new_ref: null + new_title: null + old_milestone_id: null + old_project_id: null + old_ref: null + old_title: null + original_author: null + original_author_id: null + patch: null + poster_id: 3 + project_id: null + ref_action: null + ref_comment_id: null + ref_is_pull: null + ref_issue_id: null + ref_repo_id: null + removed_assignee: null + resolve_doer_id: null + review_id: null + time_id: null + tree_path: null + type: 0 updated_unix: 946684811 -- - id: 3 - type: 0 # comment - poster_id: 5 # user not watching (see watch.yml) - issue_id: 1 # in repo_id 1 - content: "meh..." +- assignee_id: null + assignee_team_id: 0 + commit_id: null + commit_sha: null + content: meh... created_unix: 946684812 + dependent_issue_id: null + id: 3 + invalidated: null + issue_id: 1 + label_id: null + line: null + milestone_id: null + new_ref: null + new_title: null + old_milestone_id: null + old_project_id: null + old_ref: null + old_title: null + original_author: null + original_author_id: null + patch: null + poster_id: 5 + project_id: null + ref_action: null + ref_comment_id: null + ref_is_pull: null + ref_issue_id: null + ref_repo_id: null + removed_assignee: null + resolve_doer_id: null + review_id: null + time_id: null + tree_path: null + type: 0 updated_unix: 946684812 -- +- assignee_id: null + assignee_team_id: 0 + commit_id: null + commit_sha: null + content: meh... + created_unix: 946684812 + dependent_issue_id: null id: 4 - type: 21 # code comment - poster_id: 1 + invalidated: 0 issue_id: 2 - content: "meh..." - review_id: 4 + label_id: null line: 4 - tree_path: "README.md" + milestone_id: null + new_ref: null + new_title: null + old_milestone_id: null + old_project_id: null + old_ref: null + old_title: null + original_author: null + original_author_id: null + patch: null + poster_id: 1 + project_id: null + ref_action: null + ref_comment_id: null + ref_is_pull: null + ref_issue_id: null + ref_repo_id: null + removed_assignee: null + resolve_doer_id: null + review_id: 4 + time_id: null + tree_path: README.md + type: 21 + updated_unix: null +- assignee_id: null + assignee_team_id: 0 + commit_id: null + commit_sha: null + content: meh... created_unix: 946684812 - invalidated: false -- + dependent_issue_id: null id: 5 - type: 21 # code comment - poster_id: 1 + invalidated: 0 issue_id: 2 - content: "meh..." + label_id: null line: -4 - tree_path: "README.md" + milestone_id: null + new_ref: null + new_title: null + old_milestone_id: null + old_project_id: null + old_ref: null + old_title: null + original_author: null + original_author_id: null + patch: null + poster_id: 1 + project_id: null + ref_action: null + ref_comment_id: null + ref_is_pull: null + ref_issue_id: null + ref_repo_id: null + removed_assignee: null + resolve_doer_id: null + review_id: null + time_id: null + tree_path: README.md + type: 21 + updated_unix: null +- assignee_id: null + assignee_team_id: 0 + commit_id: null + commit_sha: null + content: it's already invalidated. boring... created_unix: 946684812 - invalidated: false - -- + dependent_issue_id: null id: 6 - type: 21 # code comment - poster_id: 1 + invalidated: 1 issue_id: 2 - content: "it's already invalidated. boring..." + label_id: null line: -4 - tree_path: "README.md" + milestone_id: null + new_ref: null + new_title: null + old_milestone_id: null + old_project_id: null + old_ref: null + old_title: null + original_author: null + original_author_id: null + patch: null + poster_id: 1 + project_id: null + ref_action: null + ref_comment_id: null + ref_is_pull: null + ref_issue_id: null + ref_repo_id: null + removed_assignee: null + resolve_doer_id: null + review_id: null + time_id: null + tree_path: README.md + type: 21 + updated_unix: null +- assignee_id: null + assignee_team_id: 0 + commit_id: null + commit_sha: null + content: a review from a deleted user created_unix: 946684812 - invalidated: true - -- + dependent_issue_id: null id: 7 - type: 21 # code comment - poster_id: 100 + invalidated: 1 issue_id: 3 - content: "a review from a deleted user" + label_id: null line: -4 + milestone_id: null + new_ref: null + new_title: null + old_milestone_id: null + old_project_id: null + old_ref: null + old_title: null + original_author: null + original_author_id: null + patch: null + poster_id: 100 + project_id: null + ref_action: null + ref_comment_id: null + ref_is_pull: null + ref_issue_id: null + ref_repo_id: null + removed_assignee: null + resolve_doer_id: null review_id: 10 - tree_path: "README.md" - created_unix: 946684812 - invalidated: true + time_id: null + tree_path: README.md + type: 21 + updated_unix: null diff --git a/models/fixtures/commit_status.yml b/models/fixtures/commit_status.yml index 20d57975ef40d..d7d3eee5fdfdf 100644 --- a/models/fixtures/commit_status.yml +++ b/models/fixtures/commit_status.yml @@ -1,54 +1,60 @@ -- +- context: ci/awesomeness + context_hash: null + created_unix: null + creator_id: 2 + description: My awesome CI-service id: 1 index: 1 repo_id: 1 - state: "pending" sha: "1234123412341234123412341234123412341234" + state: pending target_url: https://example.com/builds/ - description: My awesome CI-service - context: ci/awesomeness + updated_unix: null +- context: cov/awesomeness + context_hash: null + created_unix: null creator_id: 2 - -- + description: My awesome Coverage service id: 2 index: 2 repo_id: 1 - state: "warning" sha: "1234123412341234123412341234123412341234" + state: warning target_url: https://example.com/converage/ - description: My awesome Coverage service - context: cov/awesomeness + updated_unix: null +- context: cov/awesomeness + context_hash: null + created_unix: null creator_id: 2 - -- + description: My awesome Coverage service id: 3 index: 3 repo_id: 1 - state: "success" sha: "1234123412341234123412341234123412341234" + state: success target_url: https://example.com/converage/ - description: My awesome Coverage service - context: cov/awesomeness + updated_unix: null +- context: ci/awesomeness + context_hash: null + created_unix: null creator_id: 2 - -- + description: My awesome CI-service id: 4 index: 4 repo_id: 1 - state: "failure" sha: "1234123412341234123412341234123412341234" + state: failure target_url: https://example.com/builds/ - description: My awesome CI-service - context: ci/awesomeness + updated_unix: null +- context: deploy/awesomeness + context_hash: null + created_unix: null creator_id: 2 - -- + description: My awesome deploy service id: 5 index: 5 repo_id: 1 - state: "error" sha: "1234123412341234123412341234123412341234" + state: error target_url: https://example.com/builds/ - description: My awesome deploy service - context: deploy/awesomeness - creator_id: 2 + updated_unix: null diff --git a/models/fixtures/commit_status_index.yml b/models/fixtures/commit_status_index.yml index 3f252e87ef092..56f783a92e36f 100644 --- a/models/fixtures/commit_status_index.yml +++ b/models/fixtures/commit_status_index.yml @@ -1,5 +1,4 @@ -- - id: 1 +- id: 1 + max_index: 5 repo_id: 1 sha: "1234123412341234123412341234123412341234" - max_index: 5 \ No newline at end of file diff --git a/models/fixtures/deploy_key.yml b/models/fixtures/deploy_key.yml index ca780a73aa0c1..fe51488c7066f 100644 --- a/models/fixtures/deploy_key.yml +++ b/models/fixtures/deploy_key.yml @@ -1 +1 @@ -[] # empty +[] diff --git a/models/fixtures/email_address.yml b/models/fixtures/email_address.yml index e7df5fdc5f01c..5049fd2dd6828 100644 --- a/models/fixtures/email_address.yml +++ b/models/fixtures/email_address.yml @@ -1,279 +1,210 @@ -- +- email: user11@example.com id: 1 - uid: 11 - email: user11@example.com + is_activated: 0 + is_primary: 1 lower_email: user11@example.com - is_activated: false - is_primary: true - -- + uid: 11 +- email: user12@example.com id: 2 - uid: 12 - email: user12@example.com + is_activated: 1 + is_primary: 1 lower_email: user12@example.com - is_activated: true - is_primary: true - -- + uid: 12 +- email: user2@example.com id: 3 - uid: 2 - email: user2@example.com + is_activated: 1 + is_primary: 1 lower_email: user2@example.com - is_activated: true - is_primary: true - -- + uid: 2 +- email: user21@example.com id: 4 - uid: 21 - email: user21@example.com + is_activated: 1 + is_primary: 1 lower_email: user21@example.com - is_activated: true - is_primary: true - -- + uid: 21 +- email: user9999999@example.com id: 5 - uid: 9999999 - email: user9999999@example.com + is_activated: 1 + is_primary: 0 lower_email: user9999999@example.com - is_activated: true - is_primary: false - -- + uid: 9999999 +- email: user10@example.com id: 6 - uid: 10 - email: user10@example.com + is_activated: 1 + is_primary: 1 lower_email: user10@example.com - is_activated: true - is_primary: true - -- - id: 7 uid: 10 - email: user101@example.com +- email: user101@example.com + id: 7 + is_activated: 1 + is_primary: 0 lower_email: user101@example.com - is_activated: true - is_primary: false - -- + uid: 10 +- email: user9@example.com id: 8 - uid: 9 - email: user9@example.com + is_activated: 0 + is_primary: 1 lower_email: user9@example.com - is_activated: false - is_primary: true - -- + uid: 9 +- email: user1@example.com id: 9 - uid: 1 - email: user1@example.com + is_activated: 1 + is_primary: 1 lower_email: user1@example.com - is_activated: true - is_primary: true - -- + uid: 1 +- email: user3@example.com id: 10 - uid: 3 - email: user3@example.com + is_activated: 1 + is_primary: 1 lower_email: user3@example.com - is_activated: true - is_primary: true - -- + uid: 3 +- email: user4@example.com id: 11 - uid: 4 - email: user4@example.com + is_activated: 1 + is_primary: 1 lower_email: user4@example.com - is_activated: true - is_primary: true - -- + uid: 4 +- email: user5@example.com id: 12 - uid: 5 - email: user5@example.com + is_activated: 1 + is_primary: 1 lower_email: user5@example.com - is_activated: true - is_primary: true - -- + uid: 5 +- email: user6@example.com id: 13 - uid: 6 - email: user6@example.com + is_activated: 1 + is_primary: 1 lower_email: user6@example.com - is_activated: true - is_primary: true - -- + uid: 6 +- email: user7@example.com id: 14 - uid: 7 - email: user7@example.com + is_activated: 1 + is_primary: 1 lower_email: user7@example.com - is_activated: true - is_primary: true - -- + uid: 7 +- email: user8@example.com id: 15 - uid: 8 - email: user8@example.com + is_activated: 1 + is_primary: 1 lower_email: user8@example.com - is_activated: true - is_primary: true - -- + uid: 8 +- email: user13@example.com id: 16 - uid: 13 - email: user13@example.com + is_activated: 1 + is_primary: 1 lower_email: user13@example.com - is_activated: true - is_primary: true - -- + uid: 13 +- email: user14@example.com id: 17 - uid: 14 - email: user14@example.com + is_activated: 1 + is_primary: 1 lower_email: user14@example.com - is_activated: true - is_primary: true - -- + uid: 14 +- email: user15@example.com id: 18 - uid: 15 - email: user15@example.com + is_activated: 1 + is_primary: 1 lower_email: user15@example.com - is_activated: true - is_primary: true - -- + uid: 15 +- email: user16@example.com id: 19 - uid: 16 - email: user16@example.com + is_activated: 1 + is_primary: 1 lower_email: user16@example.com - is_activated: true - is_primary: true - -- + uid: 16 +- email: user17@example.com id: 20 - uid: 17 - email: user17@example.com + is_activated: 1 + is_primary: 1 lower_email: user17@example.com - is_activated: true - is_primary: true - -- + uid: 17 +- email: user18@example.com id: 21 - uid: 18 - email: user18@example.com + is_activated: 1 + is_primary: 1 lower_email: user18@example.com - is_activated: true - is_primary: true - -- + uid: 18 +- email: user19@example.com id: 22 - uid: 19 - email: user19@example.com + is_activated: 1 + is_primary: 1 lower_email: user19@example.com - is_activated: true - is_primary: true - -- + uid: 19 +- email: user20@example.com id: 23 - uid: 20 - email: user20@example.com + is_activated: 1 + is_primary: 1 lower_email: user20@example.com - is_activated: true - is_primary: true - -- + uid: 20 +- email: limited_org@example.com id: 24 - uid: 22 - email: limited_org@example.com + is_activated: 1 + is_primary: 1 lower_email: limited_org@example.com - is_activated: true - is_primary: true - -- + uid: 22 +- email: privated_org@example.com id: 25 - uid: 23 - email: privated_org@example.com + is_activated: 1 + is_primary: 1 lower_email: privated_org@example.com - is_activated: true - is_primary: true - -- + uid: 23 +- email: user24@example.com id: 26 - uid: 24 - email: user24@example.com + is_activated: 1 + is_primary: 1 lower_email: user24@example.com - is_activated: true - is_primary: true - -- + uid: 24 +- email: org25@example.com id: 27 - uid: 25 - email: org25@example.com + is_activated: 1 + is_primary: 1 lower_email: org25@example.com - is_activated: true - is_primary: true - -- + uid: 25 +- email: org26@example.com id: 28 - uid: 26 - email: org26@example.com + is_activated: 1 + is_primary: 1 lower_email: org26@example.com - is_activated: true - is_primary: true - -- + uid: 26 +- email: user27@example.com id: 29 - uid: 27 - email: user27@example.com + is_activated: 1 + is_primary: 1 lower_email: user27@example.com - is_activated: true - is_primary: true - -- + uid: 27 +- email: user28@example.com id: 30 - uid: 28 - email: user28@example.com + is_activated: 1 + is_primary: 1 lower_email: user28@example.com - is_activated: true - is_primary: true - -- + uid: 28 +- email: user29@example.com id: 31 - uid: 29 - email: user29@example.com + is_activated: 1 + is_primary: 1 lower_email: user29@example.com - is_activated: true - is_primary: true - -- + uid: 29 +- email: user30@example.com id: 32 - uid: 30 - email: user30@example.com + is_activated: 1 + is_primary: 1 lower_email: user30@example.com - is_activated: true - is_primary: true - -- + uid: 30 +- email: user1-2@example.com id: 33 - uid: 1 - email: user1-2@example.com + is_activated: 1 + is_primary: 0 lower_email: user1-2@example.com - is_activated: true - is_primary: false - -- - id: 34 uid: 1 - email: user1-3@example.com +- email: user1-3@example.com + id: 34 + is_activated: 1 + is_primary: 0 lower_email: user1-3@example.com - is_activated: true - is_primary: false - -- + uid: 1 +- email: user2-2@example.com id: 35 - uid: 2 - email: user2-2@example.com + is_activated: 0 + is_primary: 0 lower_email: user2-2@example.com - is_activated: false - is_primary: false \ No newline at end of file + uid: 2 diff --git a/models/fixtures/external_login_user.yml b/models/fixtures/external_login_user.yml index ca780a73aa0c1..fe51488c7066f 100644 --- a/models/fixtures/external_login_user.yml +++ b/models/fixtures/external_login_user.yml @@ -1 +1 @@ -[] # empty +[] diff --git a/models/fixtures/follow.yml b/models/fixtures/follow.yml index b8d35828bf170..7d51035d9e533 100644 --- a/models/fixtures/follow.yml +++ b/models/fixtures/follow.yml @@ -1,19 +1,16 @@ -- +- created_unix: null + follow_id: 2 id: 1 user_id: 4 +- created_unix: null follow_id: 2 - -- id: 2 user_id: 8 - follow_id: 2 - -- +- created_unix: null + follow_id: 8 id: 3 user_id: 2 - follow_id: 8 - -- +- created_unix: null + follow_id: 33 id: 4 user_id: 31 - follow_id: 33 diff --git a/models/fixtures/gpg_key.yml b/models/fixtures/gpg_key.yml index ca780a73aa0c1..fe51488c7066f 100644 --- a/models/fixtures/gpg_key.yml +++ b/models/fixtures/gpg_key.yml @@ -1 +1 @@ -[] # empty +[] diff --git a/models/fixtures/gpg_key_import.yml b/models/fixtures/gpg_key_import.yml index ca780a73aa0c1..fe51488c7066f 100644 --- a/models/fixtures/gpg_key_import.yml +++ b/models/fixtures/gpg_key_import.yml @@ -1 +1 @@ -[] # empty +[] diff --git a/models/fixtures/hook_task.yml b/models/fixtures/hook_task.yml index 6dbb10151abf8..1d4f5748bec2c 100644 --- a/models/fixtures/hook_task.yml +++ b/models/fixtures/hook_task.yml @@ -1,5 +1,10 @@ -- - id: 1 +- delivered: null + event_type: null hook_id: 1 + id: 1 + is_delivered: 1 + is_succeed: null + payload_content: null + request_content: null + response_content: null uuid: uuid1 - is_delivered: true diff --git a/models/fixtures/issue.yml b/models/fixtures/issue.yml index fa72f9b647da0..471f206b0c335 100644 --- a/models/fixtures/issue.yml +++ b/models/fixtures/issue.yml @@ -1,323 +1,380 @@ -- +- closed_unix: null + content: content for the first issue + created_unix: 946684800 + deadline_unix: null id: 1 - repo_id: 1 index: 1 - poster_id: 1 - original_author_id: 0 - name: issue1 - content: content for the first issue + is_closed: 0 + is_locked: 0 + is_pull: 0 milestone_id: 0 - priority: 0 - is_closed: false - is_pull: false + name: issue1 num_comments: 2 - created_unix: 946684800 + original_author: null + original_author_id: 0 + pin_order: 0 + poster_id: 1 + priority: 0 + ref: null + repo_id: 1 updated_unix: 978307200 - is_locked: false - -- +- closed_unix: null + content: content for the second issue + created_unix: 946684810 + deadline_unix: null id: 2 - repo_id: 1 index: 2 - poster_id: 1 - original_author_id: 0 - name: issue2 - content: content for the second issue + is_closed: 0 + is_locked: 0 + is_pull: 1 milestone_id: 1 - priority: 0 - is_closed: false - is_pull: true + name: issue2 num_comments: 0 - created_unix: 946684810 + original_author: null + original_author_id: 0 + pin_order: 0 + poster_id: 1 + priority: 0 + ref: null + repo_id: 1 updated_unix: 978307190 - is_locked: false - -- +- closed_unix: null + content: content for the third issue + created_unix: 946684820 + deadline_unix: null id: 3 - repo_id: 1 index: 3 - poster_id: 1 - original_author_id: 0 - name: issue3 - content: content for the third issue + is_closed: 0 + is_locked: 0 + is_pull: 1 milestone_id: 3 - priority: 0 - is_closed: false - is_pull: true + name: issue3 num_comments: 0 - created_unix: 946684820 + original_author: null + original_author_id: 0 + pin_order: 0 + poster_id: 1 + priority: 0 + ref: null + repo_id: 1 updated_unix: 978307180 - is_locked: false - -- +- closed_unix: null + content: content for the fourth issue + created_unix: 946684830 + deadline_unix: null id: 4 - repo_id: 2 index: 1 - poster_id: 2 - original_author_id: 0 - name: issue4 - content: content for the fourth issue + is_closed: 1 + is_locked: 0 + is_pull: 0 milestone_id: 0 - priority: 0 - is_closed: true - is_pull: false + name: issue4 num_comments: 0 - created_unix: 946684830 + original_author: null + original_author_id: 0 + pin_order: 0 + poster_id: 2 + priority: 0 + ref: null + repo_id: 2 updated_unix: 978307200 - is_locked: false - -- +- closed_unix: null + content: content for the fifth issue + created_unix: 946684840 + deadline_unix: null id: 5 - repo_id: 1 index: 4 - poster_id: 2 - original_author_id: 0 - name: issue5 - content: content for the fifth issue + is_closed: 1 + is_locked: 0 + is_pull: 0 milestone_id: 0 - priority: 0 - is_closed: true - is_pull: false + name: issue5 num_comments: 0 - created_unix: 946684840 + original_author: null + original_author_id: 0 + pin_order: 0 + poster_id: 2 + priority: 0 + ref: null + repo_id: 1 updated_unix: 978307200 - is_locked: false - -- +- closed_unix: null + content: content6 + created_unix: 946684850 + deadline_unix: null id: 6 - repo_id: 3 index: 1 - poster_id: 1 - original_author_id: 0 - name: issue6 - content: content6 + is_closed: 0 + is_locked: 0 + is_pull: 0 milestone_id: 0 - priority: 0 - is_closed: false - is_pull: false + name: issue6 num_comments: 0 - created_unix: 946684850 + original_author: null + original_author_id: 0 + pin_order: 0 + poster_id: 1 + priority: 0 + ref: null + repo_id: 3 updated_unix: 978307200 - is_locked: false - -- +- closed_unix: null + content: content for the seventh issue + created_unix: 946684830 + deadline_unix: null id: 7 - repo_id: 2 index: 2 - poster_id: 2 - original_author_id: 0 - name: issue7 - content: content for the seventh issue + is_closed: 0 + is_locked: 0 + is_pull: 0 milestone_id: 0 - priority: 0 - is_closed: false - is_pull: false + name: issue7 num_comments: 0 - created_unix: 946684830 + original_author: null + original_author_id: 0 + pin_order: 0 + poster_id: 2 + priority: 0 + ref: null + repo_id: 2 updated_unix: 978307200 - is_locked: false - -- +- closed_unix: null + content: a pull request + created_unix: 946684820 + deadline_unix: null id: 8 - repo_id: 10 index: 1 - poster_id: 11 - original_author_id: 0 - name: pr2 - content: a pull request + is_closed: 0 + is_locked: 0 + is_pull: 1 milestone_id: 0 - priority: 0 - is_closed: false - is_pull: true + name: pr2 num_comments: 0 - created_unix: 946684820 + original_author: null + original_author_id: 0 + pin_order: 0 + poster_id: 11 + priority: 0 + ref: null + repo_id: 10 updated_unix: 978307180 - is_locked: false - -- +- closed_unix: null + content: a pull request + created_unix: 946684820 + deadline_unix: null id: 9 - repo_id: 48 index: 1 - poster_id: 11 - original_author_id: 0 - name: pr1 - content: a pull request + is_closed: 0 + is_locked: 0 + is_pull: 1 milestone_id: 0 - priority: 0 - is_closed: false - is_pull: true + name: pr1 num_comments: 0 - created_unix: 946684820 + original_author: null + original_author_id: 0 + pin_order: 0 + poster_id: 11 + priority: 0 + ref: null + repo_id: 48 updated_unix: 978307180 - is_locked: false - -- +- closed_unix: null + content: content from deleted account + created_unix: 946684830 + deadline_unix: 1019307200 id: 10 - repo_id: 42 index: 1 - poster_id: 500 - original_author_id: 0 - name: issue from deleted account - content: content from deleted account + is_closed: 0 + is_locked: 0 + is_pull: 0 milestone_id: 0 - priority: 0 - is_closed: false - is_pull: false + name: issue from deleted account num_comments: 0 - deadline_unix: 1019307200 - created_unix: 946684830 + original_author: null + original_author_id: 0 + pin_order: 0 + poster_id: 500 + priority: 0 + ref: null + repo_id: 42 updated_unix: 999307200 - is_locked: false - -- +- closed_unix: null + content: content for the a pull request + created_unix: 1579194806 + deadline_unix: null id: 11 - repo_id: 1 index: 5 - poster_id: 1 - original_author_id: 0 - name: pull5 - content: content for the a pull request + is_closed: 0 + is_locked: 0 + is_pull: 1 milestone_id: 0 - priority: 0 - is_closed: false - is_pull: true + name: pull5 num_comments: 0 - created_unix: 1579194806 + original_author: null + original_author_id: 0 + pin_order: 0 + poster_id: 1 + priority: 0 + ref: null + repo_id: 1 updated_unix: 1579194806 - is_locked: false - -- +- closed_unix: null + content: content for the a pull request + created_unix: 1602935696 + deadline_unix: null id: 12 - repo_id: 3 index: 2 - poster_id: 2 - original_author_id: 0 - name: pull6 - content: content for the a pull request + is_closed: 0 + is_locked: 0 + is_pull: 1 milestone_id: 0 - priority: 0 - is_closed: false - is_pull: true + name: pull6 num_comments: 0 - created_unix: 1602935696 + original_author: null + original_author_id: 0 + pin_order: 0 + poster_id: 2 + priority: 0 + ref: null + repo_id: 3 updated_unix: 1602935696 - is_locked: false - -- +- closed_unix: null + content: we'll be testing github issue 13171 with this. + created_unix: 1602935696 + deadline_unix: null id: 13 - repo_id: 50 index: 1 - poster_id: 2 - original_author_id: 0 - name: issue in active repo - content: we'll be testing github issue 13171 with this. + is_closed: 0 + is_locked: 0 + is_pull: 0 milestone_id: 0 - priority: 0 - is_closed: false - is_pull: false + name: issue in active repo num_comments: 0 - created_unix: 1602935696 + original_author: null + original_author_id: 0 + pin_order: 0 + poster_id: 2 + priority: 0 + ref: null + repo_id: 50 updated_unix: 1602935696 - is_locked: false - -- +- closed_unix: null + content: we'll be testing github issue 13171 with this. + created_unix: 1602935696 + deadline_unix: null id: 14 - repo_id: 51 index: 1 - poster_id: 2 - original_author_id: 0 - name: issue in archived repo - content: we'll be testing github issue 13171 with this. + is_closed: 0 + is_locked: 0 + is_pull: 0 milestone_id: 0 - priority: 0 - is_closed: false - is_pull: false + name: issue in archived repo num_comments: 0 - created_unix: 1602935696 + original_author: null + original_author_id: 0 + pin_order: 0 + poster_id: 2 + priority: 0 + ref: null + repo_id: 51 updated_unix: 1602935696 - is_locked: false - -- +- closed_unix: null + content: content + created_unix: 1602935696 + deadline_unix: null id: 15 - repo_id: 5 index: 1 - poster_id: 2 - original_author_id: 0 - name: issue in repo not linked to team1 - content: content + is_closed: 0 + is_locked: 0 + is_pull: 0 milestone_id: 0 - priority: 0 - is_closed: false - is_pull: false + name: issue in repo not linked to team1 num_comments: 0 - created_unix: 1602935696 + original_author: null + original_author_id: 0 + pin_order: 0 + poster_id: 2 + priority: 0 + ref: null + repo_id: 5 updated_unix: 1602935696 - is_locked: false - -- +- closed_unix: null + content: content + created_unix: 1602935696 + deadline_unix: null id: 16 - repo_id: 32 index: 1 - poster_id: 2 - original_author_id: 0 - name: just a normal issue - content: content + is_closed: 0 + is_locked: 0 + is_pull: 0 milestone_id: 0 - priority: 0 - is_closed: false - is_pull: false + name: just a normal issue num_comments: 0 - created_unix: 1602935696 + original_author: null + original_author_id: 0 + pin_order: 0 + poster_id: 2 + priority: 0 + ref: null + repo_id: 32 updated_unix: 1602935696 - is_locked: false - -- +- closed_unix: null + content: content + created_unix: 1602935696 + deadline_unix: null id: 17 - repo_id: 32 index: 2 - poster_id: 15 - original_author_id: 0 - name: a issue with a assignment - content: content + is_closed: 0 + is_locked: 0 + is_pull: 0 milestone_id: 0 - priority: 0 - is_closed: false - is_pull: false + name: a issue with a assignment num_comments: 0 - created_unix: 1602935696 + original_author: null + original_author_id: 0 + pin_order: 0 + poster_id: 15 + priority: 0 + ref: null + repo_id: 32 updated_unix: 1602935696 - is_locked: false - -- +- closed_unix: null + content: content + created_unix: 946684830 + deadline_unix: null id: 18 - repo_id: 55 index: 1 - poster_id: 2 - original_author_id: 0 - name: issue for scoped labels - content: content + is_closed: 0 + is_locked: 0 + is_pull: 0 milestone_id: 0 - priority: 0 - is_closed: false - is_pull: false + name: issue for scoped labels num_comments: 0 - created_unix: 946684830 + original_author: null + original_author_id: 0 + pin_order: 0 + poster_id: 2 + priority: 0 + ref: null + repo_id: 55 updated_unix: 978307200 - is_locked: false - -- +- closed_unix: null + content: content + created_unix: 946684830 + deadline_unix: null id: 19 - repo_id: 58 index: 1 - poster_id: 2 - original_author_id: 0 - name: issue for pr - content: content + is_closed: 0 + is_locked: 0 + is_pull: 1 milestone_id: 0 - priority: 0 - is_closed: false - is_pull: true + name: issue for pr num_comments: 0 - created_unix: 946684830 + original_author: null + original_author_id: 0 + pin_order: 0 + poster_id: 2 + priority: 0 + ref: null + repo_id: 58 updated_unix: 978307200 - is_locked: false diff --git a/models/fixtures/issue_assignees.yml b/models/fixtures/issue_assignees.yml index e5d36f921a7e0..64ec7b521b1aa 100644 --- a/models/fixtures/issue_assignees.yml +++ b/models/fixtures/issue_assignees.yml @@ -1,16 +1,12 @@ -- +- assignee_id: 1 id: 1 - assignee_id: 1 issue_id: 1 -- +- assignee_id: 1 id: 2 - assignee_id: 1 issue_id: 6 -- +- assignee_id: 2 id: 3 - assignee_id: 2 issue_id: 6 -- +- assignee_id: 2 id: 4 - assignee_id: 2 issue_id: 17 diff --git a/models/fixtures/issue_index.yml b/models/fixtures/issue_index.yml index de6e955804ab6..03a30f98523e3 100644 --- a/models/fixtures/issue_index.yml +++ b/models/fixtures/issue_index.yml @@ -1,27 +1,18 @@ -- - group_id: 1 +- group_id: 1 max_index: 5 -- - group_id: 2 +- group_id: 2 max_index: 2 -- - group_id: 3 +- group_id: 3 max_index: 2 -- - group_id: 10 +- group_id: 10 max_index: 1 -- - group_id: 32 +- group_id: 32 max_index: 2 -- - group_id: 48 +- group_id: 42 max_index: 1 -- - group_id: 42 +- group_id: 48 max_index: 1 -- - group_id: 50 +- group_id: 50 max_index: 1 -- - group_id: 51 +- group_id: 51 max_index: 1 diff --git a/models/fixtures/issue_label.yml b/models/fixtures/issue_label.yml index f4ecb1f923232..2878e41181a98 100644 --- a/models/fixtures/issue_label.yml +++ b/models/fixtures/issue_label.yml @@ -1,19 +1,12 @@ -- - id: 1 +- id: 1 issue_id: 1 label_id: 1 - -- - id: 2 +- id: 2 issue_id: 5 label_id: 2 - -- - id: 3 +- id: 3 issue_id: 2 label_id: 1 - -- - id: 4 +- id: 4 issue_id: 2 label_id: 4 diff --git a/models/fixtures/issue_user.yml b/models/fixtures/issue_user.yml index 64824316ea275..ea321d121ff04 100644 --- a/models/fixtures/issue_user.yml +++ b/models/fixtures/issue_user.yml @@ -1,20 +1,15 @@ -- - id: 1 +- id: 1 + is_mentioned: 0 + is_read: 1 + issue_id: 1 uid: 1 +- id: 2 + is_mentioned: 0 + is_read: 1 issue_id: 1 - is_read: true - is_mentioned: false - -- - id: 2 uid: 2 +- id: 3 + is_mentioned: 1 + is_read: 0 issue_id: 1 - is_read: true - is_mentioned: false - -- - id: 3 uid: 4 - issue_id: 1 - is_read: false - is_mentioned: true diff --git a/models/fixtures/issue_watch.yml b/models/fixtures/issue_watch.yml index 4bc3ff1b8b987..91d551b9dd680 100644 --- a/models/fixtures/issue_watch.yml +++ b/models/fixtures/issue_watch.yml @@ -1,31 +1,24 @@ -- +- created_unix: 946684800 id: 1 - user_id: 9 + is_watching: 1 issue_id: 1 - is_watching: true - created_unix: 946684800 updated_unix: 946684800 - -- + user_id: 9 +- created_unix: 946684800 id: 2 - user_id: 2 + is_watching: 0 issue_id: 2 - is_watching: false - created_unix: 946684800 updated_unix: 946684800 - -- - id: 3 user_id: 2 +- created_unix: 946684800 + id: 3 + is_watching: 1 issue_id: 7 - is_watching: true - created_unix: 946684800 updated_unix: 946684800 - -- + user_id: 2 +- created_unix: 946684800 id: 4 - user_id: 1 + is_watching: 0 issue_id: 7 - is_watching: false - created_unix: 946684800 updated_unix: 946684800 + user_id: 1 diff --git a/models/fixtures/label.yml b/models/fixtures/label.yml index 2242b90dcdc23..87b4cfa04d922 100644 --- a/models/fixtures/label.yml +++ b/models/fixtures/label.yml @@ -1,98 +1,108 @@ -- +- archived_unix: 0 + color: '#abcdef' + created_unix: null + description: null + exclusive: 0 id: 1 - repo_id: 1 - org_id: 0 name: label1 - color: '#abcdef' - exclusive: false - num_issues: 2 num_closed_issues: 0 - archived_unix: 0 - -- - id: 2 - repo_id: 1 + num_issues: 2 org_id: 0 - name: label2 + repo_id: 1 + updated_unix: null +- archived_unix: 0 color: '#000000' - exclusive: false - num_issues: 1 + created_unix: null + description: null + exclusive: 0 + id: 2 + name: label2 num_closed_issues: 1 - archived_unix: 0 - -- + num_issues: 1 + org_id: 0 + repo_id: 1 + updated_unix: null +- archived_unix: 0 + color: '#abcdef' + created_unix: null + description: null + exclusive: 0 id: 3 - repo_id: 0 - org_id: 3 name: orglabel3 - color: '#abcdef' - exclusive: false - num_issues: 0 num_closed_issues: 0 - archived_unix: 0 - -- - id: 4 - repo_id: 0 + num_issues: 0 org_id: 3 - name: orglabel4 + repo_id: 0 + updated_unix: null +- archived_unix: 0 color: '#000000' - exclusive: false - num_issues: 1 + created_unix: null + description: null + exclusive: 0 + id: 4 + name: orglabel4 num_closed_issues: 0 - archived_unix: 0 - -- + num_issues: 1 + org_id: 3 + repo_id: 0 + updated_unix: null +- archived_unix: 0 + color: '#000000' + created_unix: null + description: null + exclusive: 0 id: 5 - repo_id: 10 - org_id: 0 name: pull-test-label - color: '#000000' - exclusive: false - num_issues: 0 num_closed_issues: 0 - archived_unix: 0 - -- - id: 6 - repo_id: 55 + num_issues: 0 org_id: 0 - name: unscoped_label + repo_id: 10 + updated_unix: null +- archived_unix: 0 color: '#000000' - exclusive: false - num_issues: 0 + created_unix: null + description: null + exclusive: 0 + id: 6 + name: unscoped_label num_closed_issues: 0 - archived_unix: 0 - -- - id: 7 - repo_id: 55 + num_issues: 0 org_id: 0 - name: scope/label1 + repo_id: 55 + updated_unix: null +- archived_unix: 0 color: '#000000' - exclusive: true - num_issues: 0 + created_unix: null + description: null + exclusive: 1 + id: 7 + name: scope/label1 num_closed_issues: 0 - archived_unix: 0 - -- - id: 8 - repo_id: 55 + num_issues: 0 org_id: 0 - name: scope/label2 + repo_id: 55 + updated_unix: null +- archived_unix: 0 color: '#000000' - exclusive: true - num_issues: 0 + created_unix: null + description: null + exclusive: 1 + id: 8 + name: scope/label2 num_closed_issues: 0 - archived_unix: 0 - -- - id: 9 - repo_id: 55 + num_issues: 0 org_id: 0 - name: scope/subscope/label2 + repo_id: 55 + updated_unix: null +- archived_unix: 0 color: '#000000' - exclusive: true - num_issues: 0 + created_unix: null + description: null + exclusive: 1 + id: 9 + name: scope/subscope/label2 num_closed_issues: 0 - archived_unix: 0 + num_issues: 0 + org_id: 0 + repo_id: 55 + updated_unix: null diff --git a/models/fixtures/language_stat.yml b/models/fixtures/language_stat.yml new file mode 100644 index 0000000000000..5e3b68884691f --- /dev/null +++ b/models/fixtures/language_stat.yml @@ -0,0 +1,28 @@ +- commit_id: aacbdfe9e1c4b47f60abe81849045fa4e96f1d75 + created_unix: 1692437698 + id: 1 + is_primary: 1 + language: Text + repo_id: 49 + size: 14 +- commit_id: 2a83b349fa234131fc5db6f2a0498d3f4d3d6038 + created_unix: 1692437699 + id: 2 + is_primary: 1 + language: Text + repo_id: 44 + size: 14 +- commit_id: ef6b814b610d8e7717aa0f71fbe5842bcf814697 + created_unix: 1692437699 + id: 3 + is_primary: 1 + language: Text + repo_id: 42 + size: 36 +- commit_id: 1032bbf17fbc0d9c95bb5418dabe8f8c99278700 + created_unix: 1692437700 + id: 4 + is_primary: 1 + language: Markdown + repo_id: 2 + size: 36 diff --git a/models/fixtures/lfs_meta_object.yml b/models/fixtures/lfs_meta_object.yml index 1c29e02d44da6..95c08209589cd 100644 --- a/models/fixtures/lfs_meta_object.yml +++ b/models/fixtures/lfs_meta_object.yml @@ -1,32 +1,24 @@ -# These are the LFS objects in user2/lfs.git -- - +- created_unix: 1671607299 id: 1 oid: 0b8d8b5f15046343fd32f451df93acc2bdd9e6373be478b968e4cad6b6647351 - size: 107 repository_id: 54 - created_unix: 1671607299 - -- - + size: 107 + updated_unix: null +- created_unix: 1671607299 id: 2 oid: 2eccdb43825d2a49d99d542daa20075cff1d97d9d2349a8977efe9c03661737c - size: 107 repository_id: 54 - created_unix: 1671607299 - -- - + size: 107 + updated_unix: null +- created_unix: 1671607299 id: 3 oid: 7b6b2c88dba9f760a1a58469b67fee2b698ef7e9399c4ca4f34a14ccbe39f623 - size: 27 repository_id: 54 - created_unix: 1671607299 - -- - + size: 27 + updated_unix: null +- created_unix: 1671607299 id: 4 oid: 9d172e5c64b4f0024b9901ec6afe9ea052f3c9b6ff9f4b07956d8c48c86fca82 - size: 25 repository_id: 54 - created_unix: 1671607299 + size: 25 + updated_unix: null diff --git a/models/fixtures/login_source.yml b/models/fixtures/login_source.yml index ca780a73aa0c1..fe51488c7066f 100644 --- a/models/fixtures/login_source.yml +++ b/models/fixtures/login_source.yml @@ -1 +1 @@ -[] # empty +[] diff --git a/models/fixtures/milestone.yml b/models/fixtures/milestone.yml index 87c30cc96c4ac..f09018230eb82 100644 --- a/models/fixtures/milestone.yml +++ b/models/fixtures/milestone.yml @@ -1,54 +1,60 @@ -- +- closed_date_unix: null + completeness: 0 + content: content1 + created_unix: null + deadline_unix: 253370764800 id: 1 - repo_id: 1 + is_closed: 0 name: milestone1 - content: content1 - is_closed: false - num_issues: 1 num_closed_issues: 0 + num_issues: 1 + repo_id: 1 + updated_unix: null +- closed_date_unix: null completeness: 0 + content: content2 + created_unix: null deadline_unix: 253370764800 - -- id: 2 - repo_id: 1 + is_closed: 0 name: milestone2 - content: content2 - is_closed: false - num_issues: 0 num_closed_issues: 0 + num_issues: 0 + repo_id: 1 + updated_unix: null +- closed_date_unix: null completeness: 0 + content: content3 + created_unix: null deadline_unix: 253370764800 - -- id: 3 - repo_id: 1 + is_closed: 1 name: milestone3 - content: content3 - is_closed: true - num_issues: 1 num_closed_issues: 0 + num_issues: 1 + repo_id: 1 + updated_unix: null +- closed_date_unix: null completeness: 0 + content: content random + created_unix: null deadline_unix: 253370764800 - -- id: 4 - repo_id: 42 + is_closed: 0 name: milestone of repo42 - content: content random - is_closed: false - num_issues: 0 num_closed_issues: 0 + num_issues: 0 + repo_id: 42 + updated_unix: null +- closed_date_unix: null completeness: 0 + content: for testing with PRs + created_unix: null deadline_unix: 253370764800 - -- id: 5 - repo_id: 10 + is_closed: 0 name: milestone of repo 10 - content: for testing with PRs - is_closed: false - num_issues: 0 num_closed_issues: 0 - completeness: 0 - deadline_unix: 253370764800 + num_issues: 0 + repo_id: 10 + updated_unix: null diff --git a/models/fixtures/mirror.yml b/models/fixtures/mirror.yml index 97bc4ae60dda2..b895d1ec86db4 100644 --- a/models/fixtures/mirror.yml +++ b/models/fixtures/mirror.yml @@ -1,49 +1,40 @@ -- +- enable_prune: 0 id: 1 - repo_id: 5 interval: 3600 - enable_prune: false - updated_unix: 0 - next_update_unix: 0 - lfs_enabled: false + lfs_enabled: 0 lfs_endpoint: "" - -- + next_update_unix: 0 + repo_id: 5 + updated_unix: 0 +- enable_prune: 0 id: 2 - repo_id: 25 interval: 3600 - enable_prune: false - updated_unix: 0 - next_update_unix: 0 - lfs_enabled: false + lfs_enabled: 0 lfs_endpoint: "" - -- + next_update_unix: 0 + repo_id: 25 + updated_unix: 0 +- enable_prune: 0 id: 3 - repo_id: 26 interval: 3600 - enable_prune: false - updated_unix: 0 - next_update_unix: 0 - lfs_enabled: false + lfs_enabled: 0 lfs_endpoint: "" - -- + next_update_unix: 0 + repo_id: 26 + updated_unix: 0 +- enable_prune: 0 id: 4 - repo_id: 27 interval: 3600 - enable_prune: false - updated_unix: 0 - next_update_unix: 0 - lfs_enabled: false + lfs_enabled: 0 lfs_endpoint: "" - -- + next_update_unix: 0 + repo_id: 27 + updated_unix: 0 +- enable_prune: 0 id: 5 - repo_id: 28 interval: 3600 - enable_prune: false - updated_unix: 0 - next_update_unix: 0 - lfs_enabled: false + lfs_enabled: 0 lfs_endpoint: "" + next_update_unix: 0 + repo_id: 28 + updated_unix: 0 diff --git a/models/fixtures/notice.yml b/models/fixtures/notice.yml index af08f07bfa137..1887a061760fb 100644 --- a/models/fixtures/notice.yml +++ b/models/fixtures/notice.yml @@ -1,14 +1,12 @@ -- - id: 1 - type: 1 # NoticeRepository +- created_unix: null description: description1 - -- - id: 2 - type: 1 # NoticeRepository + id: 1 + type: 1 +- created_unix: null description: description2 - -- - id: 3 - type: 1 # NoticeRepository + id: 2 + type: 1 +- created_unix: null description: description3 + id: 3 + type: 1 diff --git a/models/fixtures/notification.yml b/models/fixtures/notification.yml index bd279d4bb284c..148de38f0e835 100644 --- a/models/fixtures/notification.yml +++ b/models/fixtures/notification.yml @@ -1,54 +1,55 @@ -- +- comment_id: null + commit_id: null + created_unix: 946684800 id: 1 - user_id: 1 + issue_id: 1 repo_id: 1 - status: 1 # unread - source: 1 # issue + source: 1 + status: 1 updated_by: 2 - issue_id: 1 - created_unix: 946684800 updated_unix: 946684820 - -- + user_id: 1 +- comment_id: null + commit_id: null + created_unix: 946685800 id: 2 - user_id: 2 + issue_id: 2 repo_id: 1 - status: 2 # read - source: 1 # issue + source: 1 + status: 2 updated_by: 1 - issue_id: 2 - created_unix: 946685800 updated_unix: 946685820 - -- - id: 3 user_id: 2 +- comment_id: null + commit_id: null + created_unix: 946686800 + id: 3 + issue_id: 3 repo_id: 1 - status: 3 # pinned - source: 1 # issue + source: 1 + status: 3 updated_by: 1 - issue_id: 3 - created_unix: 946686800 updated_unix: 946686800 - -- - id: 4 user_id: 2 +- comment_id: null + commit_id: null + created_unix: 946687800 + id: 4 + issue_id: 5 repo_id: 1 - status: 1 # unread - source: 1 # issue + source: 1 + status: 1 updated_by: 1 - issue_id: 5 - created_unix: 946687800 updated_unix: 946687800 - -- - id: 5 user_id: 2 +- comment_id: null + commit_id: null + created_unix: 946688800 + id: 5 + issue_id: 4 repo_id: 2 - status: 1 # unread - source: 1 # issue + source: 1 + status: 1 updated_by: 5 - issue_id: 4 - created_unix: 946688800 updated_unix: 946688820 + user_id: 2 diff --git a/models/fixtures/oauth2_application.yml b/models/fixtures/oauth2_application.yml index 2f38cb58b6169..a2b4aa81ca8cc 100644 --- a/models/fixtures/oauth2_application.yml +++ b/models/fixtures/oauth2_application.yml @@ -1,20 +1,18 @@ -- +- client_id: da7da3ba-9a13-4167-856f-3899de0b0138 + client_secret: $2a$10$UYRgUSgekzBp6hYe8pAdc.cgB4Gn06QRKsORUnIYTYQADs.YR/uvi + confidential_client: 1 + created_unix: 1546869730 id: 1 - uid: 1 - name: "Test" - client_id: "da7da3ba-9a13-4167-856f-3899de0b0138" - client_secret: "$2a$10$UYRgUSgekzBp6hYe8pAdc.cgB4Gn06QRKsORUnIYTYQADs.YR/uvi" # bcrypt of "4MK8Na6R55smdCY0WuCCumZ6hjRPnGY5saWVRHHjJiA= + name: Test redirect_uris: '["a", "https://example.com/xyzzy"]' - created_unix: 1546869730 + uid: 1 updated_unix: 1546869730 - confidential_client: true -- +- client_id: ce5a1322-42a7-11ed-b878-0242ac120002 + client_secret: $2a$10$UYRgUSgekzBp6hYe8pAdc.cgB4Gn06QRKsORUnIYTYQADs.YR/uvi + confidential_client: 0 + created_unix: 1546869730 id: 2 - uid: 2 - name: "Test native app" - client_id: "ce5a1322-42a7-11ed-b878-0242ac120002" - client_secret: "$2a$10$UYRgUSgekzBp6hYe8pAdc.cgB4Gn06QRKsORUnIYTYQADs.YR/uvi" # bcrypt of "4MK8Na6R55smdCY0WuCCumZ6hjRPnGY5saWVRHHjJiA= + name: Test native app redirect_uris: '["http://127.0.0.1"]' - created_unix: 1546869730 + uid: 2 updated_unix: 1546869730 - confidential_client: false diff --git a/models/fixtures/oauth2_authorization_code.yml b/models/fixtures/oauth2_authorization_code.yml index d29502164e67f..129d04f059a70 100644 --- a/models/fixtures/oauth2_authorization_code.yml +++ b/models/fixtures/oauth2_authorization_code.yml @@ -1,15 +1,14 @@ -- id: 1 +- code: authcode + code_challenge: CjvyTLSdR47G5zYenDA-eDWW4lRrO8yvjcWwbD_deOg + code_challenge_method: S256 grant_id: 1 - code: "authcode" - code_challenge: "CjvyTLSdR47G5zYenDA-eDWW4lRrO8yvjcWwbD_deOg" # Code Verifier: N1Zo9-8Rfwhkt68r1r29ty8YwIraXR8eh_1Qwxg7yQXsonBt - code_challenge_method: "S256" - redirect_uri: "a" + id: 1 + redirect_uri: a valid_until: 3546869730 - -- id: 2 +- code: authcodepublic + code_challenge: CjvyTLSdR47G5zYenDA-eDWW4lRrO8yvjcWwbD_deOg + code_challenge_method: S256 grant_id: 4 - code: "authcodepublic" - code_challenge: "CjvyTLSdR47G5zYenDA-eDWW4lRrO8yvjcWwbD_deOg" # Code Verifier: N1Zo9-8Rfwhkt68r1r29ty8YwIraXR8eh_1Qwxg7yQXsonBt - code_challenge_method: "S256" - redirect_uri: "http://127.0.0.1/" + id: 2 + redirect_uri: http://127.0.0.1/ valid_until: 3546869730 diff --git a/models/fixtures/oauth2_grant.yml b/models/fixtures/oauth2_grant.yml index e63286878b20f..658319503f199 100644 --- a/models/fixtures/oauth2_grant.yml +++ b/models/fixtures/oauth2_grant.yml @@ -1,31 +1,32 @@ -- id: 1 +- application_id: 1 + counter: 1 + created_unix: 1546869730 + id: 1 + nonce: null + scope: openid profile + updated_unix: 1546869730 user_id: 1 - application_id: 1 +- application_id: 1 counter: 1 - scope: "openid profile" created_unix: 1546869730 + id: 2 + nonce: null + scope: openid updated_unix: 1546869730 - -- id: 2 user_id: 3 - application_id: 1 +- application_id: 1 counter: 1 - scope: "openid" created_unix: 1546869730 + id: 3 + nonce: null + scope: openid profile email updated_unix: 1546869730 - -- id: 3 user_id: 5 - application_id: 1 +- application_id: 2 counter: 1 - scope: "openid profile email" created_unix: 1546869730 + id: 4 + nonce: null + scope: whatever updated_unix: 1546869730 - -- id: 4 user_id: 99 - application_id: 2 - counter: 1 - scope: "whatever" - created_unix: 1546869730 - updated_unix: 1546869730 diff --git a/models/fixtures/org_user.yml b/models/fixtures/org_user.yml index 8d58169a32f17..f713c4a53bab2 100644 --- a/models/fixtures/org_user.yml +++ b/models/fixtures/org_user.yml @@ -1,101 +1,68 @@ -- - id: 1 +- id: 1 + is_public: 1 + org_id: 3 uid: 2 +- id: 2 + is_public: 0 org_id: 3 - is_public: true - -- - id: 2 uid: 4 - org_id: 3 - is_public: false - -- - id: 3 - uid: 5 +- id: 3 + is_public: 1 org_id: 6 - is_public: true - -- - id: 4 uid: 5 +- id: 4 + is_public: 0 org_id: 7 - is_public: false - -- - id: 5 + uid: 5 +- id: 5 + is_public: 1 + org_id: 17 uid: 15 +- id: 6 + is_public: 0 org_id: 17 - is_public: true - -- - id: 6 uid: 18 - org_id: 17 - is_public: false - -- - id: 7 - uid: 20 +- id: 7 + is_public: 1 org_id: 19 - is_public: true - -- - id: 8 - uid: 24 + uid: 20 +- id: 8 + is_public: 1 org_id: 25 - is_public: true - -- - id: 9 - uid: 28 + uid: 24 +- id: 9 + is_public: 1 org_id: 3 - is_public: true - -- - id: 10 uid: 28 +- id: 10 + is_public: 1 org_id: 6 - is_public: true - -- - id: 11 + uid: 28 +- id: 11 + is_public: 1 + org_id: 17 uid: 29 +- id: 12 + is_public: 1 org_id: 17 - is_public: true - -- - id: 12 uid: 2 - org_id: 17 - is_public: true - -- - id: 13 - uid: 31 +- id: 13 + is_public: 1 org_id: 19 - is_public: true - -- - id: 14 - uid: 5 + uid: 31 +- id: 14 + is_public: 0 org_id: 23 - is_public: false - -- - id: 15 - uid: 1 + uid: 5 +- id: 15 + is_public: 1 org_id: 35 - is_public: true - -- - id: 16 uid: 1 +- id: 16 + is_public: 1 org_id: 36 - is_public: true - -- - id: 17 - uid: 5 + uid: 1 +- id: 17 + is_public: 1 org_id: 36 - is_public: true + uid: 5 diff --git a/models/fixtures/project.yml b/models/fixtures/project.yml index 1bf8030f6aa57..e40c3c0c622be 100644 --- a/models/fixtures/project.yml +++ b/models/fixtures/project.yml @@ -1,47 +1,52 @@ -- +- board_type: 1 + card_type: null + closed_date_unix: null + created_unix: 1688973030 + creator_id: 2 + description: null id: 1 - title: First project + is_closed: 0 owner_id: 0 repo_id: 1 - is_closed: false - creator_id: 2 - board_type: 1 + title: First project type: 2 - created_unix: 1688973030 updated_unix: 1688973030 - -- +- board_type: 1 + card_type: null + closed_date_unix: null + created_unix: 1688973010 + creator_id: 3 + description: null id: 2 - title: second project + is_closed: 0 owner_id: 0 repo_id: 3 - is_closed: false - creator_id: 3 - board_type: 1 + title: second project type: 2 - created_unix: 1688973010 updated_unix: 1688973010 - -- +- board_type: 1 + card_type: null + closed_date_unix: null + created_unix: 1688973020 + creator_id: 5 + description: null id: 3 - title: project on repo with disabled project + is_closed: 1 owner_id: 0 repo_id: 4 - is_closed: true - creator_id: 5 - board_type: 1 + title: project on repo with disabled project type: 2 - created_unix: 1688973020 updated_unix: 1688973020 - -- +- board_type: 1 + card_type: null + closed_date_unix: null + created_unix: 1688973000 + creator_id: 2 + description: null id: 4 - title: project on user2 + is_closed: 0 owner_id: 2 repo_id: 0 - is_closed: false - creator_id: 2 - board_type: 1 + title: project on user2 type: 2 - created_unix: 1688973000 updated_unix: 1688973000 diff --git a/models/fixtures/project_board.yml b/models/fixtures/project_board.yml index dc4f9cf565d7d..abff5b809ecf4 100644 --- a/models/fixtures/project_board.yml +++ b/models/fixtures/project_board.yml @@ -1,31 +1,36 @@ -- +- color: null + created_unix: 1588117528 + creator_id: 2 + default: 0 id: 1 project_id: 1 + sorting: 0 title: To Do - creator_id: 2 - created_unix: 1588117528 updated_unix: 1588117528 - -- +- color: null + created_unix: 1588117528 + creator_id: 2 + default: 0 id: 2 project_id: 1 + sorting: 0 title: In Progress - creator_id: 2 - created_unix: 1588117528 updated_unix: 1588117528 - -- +- color: null + created_unix: 1588117528 + creator_id: 2 + default: 0 id: 3 project_id: 1 + sorting: 0 title: Done - creator_id: 2 - created_unix: 1588117528 updated_unix: 1588117528 - -- +- color: null + created_unix: 1588117528 + creator_id: 2 + default: 0 id: 4 project_id: 4 + sorting: 0 title: Done - creator_id: 2 - created_unix: 1588117528 updated_unix: 1588117528 diff --git a/models/fixtures/project_issue.yml b/models/fixtures/project_issue.yml index b1af05908aafb..75af43595528e 100644 --- a/models/fixtures/project_issue.yml +++ b/models/fixtures/project_issue.yml @@ -1,23 +1,20 @@ -- - id: 1 +- id: 1 issue_id: 1 - project_id: 1 project_board_id: 1 - -- - id: 2 + project_id: 1 + sorting: 0 +- id: 2 issue_id: 2 + project_board_id: 0 project_id: 1 - project_board_id: 0 # no board assigned - -- - id: 3 + sorting: 0 +- id: 3 issue_id: 3 - project_id: 1 project_board_id: 2 - -- - id: 4 - issue_id: 5 project_id: 1 + sorting: 0 +- id: 4 + issue_id: 5 project_board_id: 3 + project_id: 1 + sorting: 0 diff --git a/models/fixtures/protected_branch.yml b/models/fixtures/protected_branch.yml index ca780a73aa0c1..fe51488c7066f 100644 --- a/models/fixtures/protected_branch.yml +++ b/models/fixtures/protected_branch.yml @@ -1 +1 @@ -[] # empty +[] diff --git a/models/fixtures/public_key.yml b/models/fixtures/public_key.yml index 08f5c349a7b3d..3d925503da00d 100644 --- a/models/fixtures/public_key.yml +++ b/models/fixtures/public_key.yml @@ -1,11 +1,11 @@ -- +- content: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDWVj0fQ5N8wNc0LVNA41wDLYJ89ZIbejrPfg/avyj3u/ZohAKsQclxG4Ju0VirduBFF9EOiuxoiFBRr3xRpqzpsZtnMPkWVWb+akZwBFAx8p+jKdy4QXR/SZqbVobrGwip2UjSrri1CtBxpJikojRIZfCnDaMOyd9Jp6KkujvniFzUWdLmCPxUE9zhTaPu0JsEP7MW0m6yx7ZUhHyfss+NtqmFTaDO+QlMR7L2QkDliN2Jl3Xa3PhuWnKJfWhdAq1Cw4oraKUOmIgXLkuiuxVQ6mD3AiFupkmfqdHq6h+uHHmyQqv3gU+/sD8GbGAhf6ftqhTsXjnv1Aj4R8NoDf9BS6KRkzkeun5UisSzgtfQzjOMEiJtmrep2ZQrMGahrXa+q4VKr0aKJfm+KlLfwm/JztfsBcqQWNcTURiCFqz+fgZw0Ey/de0eyMzldYTdXXNRYCKjs9bvBK+6SSXRM7AhftfQ0ZuoW5+gtinPrnmoOaSCEJbAiEiTO/BzOHgowiM= user2@localhost + created_unix: 1559593109 + fingerprint: SHA256:M3iiFbqQKgLxi+WAoRa38ZVQ9ktdfau2sOu9xuPb9ew id: 1 - owner_id: 2 - name: user2@localhost - fingerprint: "SHA256:M3iiFbqQKgLxi+WAoRa38ZVQ9ktdfau2sOu9xuPb9ew" - content: "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDWVj0fQ5N8wNc0LVNA41wDLYJ89ZIbejrPfg/avyj3u/ZohAKsQclxG4Ju0VirduBFF9EOiuxoiFBRr3xRpqzpsZtnMPkWVWb+akZwBFAx8p+jKdy4QXR/SZqbVobrGwip2UjSrri1CtBxpJikojRIZfCnDaMOyd9Jp6KkujvniFzUWdLmCPxUE9zhTaPu0JsEP7MW0m6yx7ZUhHyfss+NtqmFTaDO+QlMR7L2QkDliN2Jl3Xa3PhuWnKJfWhdAq1Cw4oraKUOmIgXLkuiuxVQ6mD3AiFupkmfqdHq6h+uHHmyQqv3gU+/sD8GbGAhf6ftqhTsXjnv1Aj4R8NoDf9BS6KRkzkeun5UisSzgtfQzjOMEiJtmrep2ZQrMGahrXa+q4VKr0aKJfm+KlLfwm/JztfsBcqQWNcTURiCFqz+fgZw0Ey/de0eyMzldYTdXXNRYCKjs9bvBK+6SSXRM7AhftfQ0ZuoW5+gtinPrnmoOaSCEJbAiEiTO/BzOHgowiM= user2@localhost" + login_source_id: 0 mode: 2 + name: user2@localhost + owner_id: 2 type: 1 - created_unix: 1559593109 updated_unix: 1565224552 - login_source_id: 0 \ No newline at end of file + verified: 0 diff --git a/models/fixtures/pull_request.yml b/models/fixtures/pull_request.yml index e5589ac703d77..101deeebca562 100644 --- a/models/fixtures/pull_request.yml +++ b/models/fixtures/pull_request.yml @@ -1,91 +1,140 @@ -- - id: 1 - type: 0 # gitea pull request - status: 2 # mergable - issue_id: 2 - index: 2 - head_repo_id: 1 +- allow_maintainer_edit: 0 + base_branch: master base_repo_id: 1 + changed_protected_files: null + commits_ahead: null + commits_behind: null + conflicted_files: null + flow: 0 + has_merged: 1 head_branch: branch1 - base_branch: master + head_repo_id: 1 + id: 1 + index: 2 + issue_id: 2 merge_base: 4a357436d925b5c974181ff12a994538ddc5a269 - has_merged: true + merged_commit_id: null + merged_unix: null merger_id: 2 - -- - id: 2 - type: 0 # gitea pull request - status: 2 # mergable - issue_id: 3 - index: 3 - head_repo_id: 1 + status: 2 + type: 0 +- allow_maintainer_edit: 0 + base_branch: master base_repo_id: 1 + changed_protected_files: null + commits_ahead: null + commits_behind: null + conflicted_files: null + flow: 0 + has_merged: 0 head_branch: branch2 - base_branch: master + head_repo_id: 1 + id: 2 + index: 3 + issue_id: 3 merge_base: 4a357436d925b5c974181ff12a994538ddc5a269 - has_merged: false - -- - id: 3 - type: 0 # gitea pull request - status: 2 # mergable - issue_id: 8 - index: 1 - head_repo_id: 11 + merged_commit_id: null + merged_unix: null + merger_id: null + status: 2 + type: 0 +- allow_maintainer_edit: 0 + base_branch: master base_repo_id: 10 + changed_protected_files: null + commits_ahead: null + commits_behind: null + conflicted_files: null + flow: 0 + has_merged: 0 head_branch: branch2 - base_branch: master - merge_base: 0abcb056019adb83 - has_merged: false - -- - id: 4 - type: 0 # gitea pull request - status: 2 # mergable - issue_id: 9 + head_repo_id: 11 + id: 3 index: 1 - head_repo_id: 48 + issue_id: 8 + merge_base: 0abcb056019adb83 + merged_commit_id: null + merged_unix: null + merger_id: null + status: 2 + type: 0 +- allow_maintainer_edit: 0 + base_branch: master base_repo_id: 48 + changed_protected_files: null + commits_ahead: null + commits_behind: null + conflicted_files: null + flow: 0 + has_merged: 0 head_branch: branch1 - base_branch: master + head_repo_id: 48 + id: 4 + index: 1 + issue_id: 9 merge_base: abcdef1234567890 - has_merged: false - -- - id: 5 # this PR is outdated (one commit behind branch1 ) - type: 0 # gitea pull request - status: 2 # mergable - issue_id: 11 - index: 5 - head_repo_id: 1 + merged_commit_id: null + merged_unix: null + merger_id: null + status: 2 + type: 0 +- allow_maintainer_edit: 0 + base_branch: branch2 base_repo_id: 1 + changed_protected_files: null + commits_ahead: null + commits_behind: null + conflicted_files: null + flow: 0 + has_merged: 0 head_branch: pr-to-update - base_branch: branch2 + head_repo_id: 1 + id: 5 + index: 5 + issue_id: 11 merge_base: 985f0301dba5e7b34be866819cd15ad3d8f508ee - has_merged: false - -- - id: 6 - type: 0 # gitea pull request - status: 2 # mergable - issue_id: 12 - index: 2 - head_repo_id: 3 + merged_commit_id: null + merged_unix: null + merger_id: null + status: 2 + type: 0 +- allow_maintainer_edit: 0 + base_branch: master base_repo_id: 3 + changed_protected_files: null + commits_ahead: null + commits_behind: null + conflicted_files: null + flow: 0 + has_merged: 0 head_branch: test_branch - base_branch: master + head_repo_id: 3 + id: 6 + index: 2 + issue_id: 12 merge_base: 2a47ca4b614a9f5a - has_merged: false - -- - id: 7 - type: 0 # gitea pull request - status: 2 # mergable - issue_id: 19 - index: 1 - head_repo_id: 58 + merged_commit_id: null + merged_unix: null + merger_id: null + status: 2 + type: 0 +- allow_maintainer_edit: 0 + base_branch: main base_repo_id: 58 + changed_protected_files: null + commits_ahead: null + commits_behind: null + conflicted_files: null + flow: 0 + has_merged: 0 head_branch: branch1 - base_branch: main + head_repo_id: 58 + id: 7 + index: 1 + issue_id: 19 merge_base: cbff181af4c9c7fee3cf6c106699e07d9a3f54e6 - has_merged: false + merged_commit_id: null + merged_unix: null + merger_id: null + status: 2 + type: 0 diff --git a/models/fixtures/reaction.yml b/models/fixtures/reaction.yml index 4925935fe6fe6..150772af2cc09 100644 --- a/models/fixtures/reaction.yml +++ b/models/fixtures/reaction.yml @@ -1,39 +1,40 @@ -- - id: 1 #issue reaction - type: zzz # not allowed reaction (added before allowed reaction list has changed) - issue_id: 1 - comment_id: 0 - user_id: 2 +- comment_id: 0 created_unix: 1573248001 - -- - id: 2 #issue reaction - type: zzz # not allowed reaction (added before allowed reaction list has changed) + id: 1 issue_id: 1 - comment_id: 0 - user_id: 1 + original_author: null + original_author_id: 0 + type: zzz + user_id: 2 +- comment_id: 0 created_unix: 1573248002 - -- - id: 3 #issue reaction - type: eyes # allowed reaction + id: 2 issue_id: 1 - comment_id: 0 - user_id: 2 + original_author: null + original_author_id: 0 + type: zzz + user_id: 1 +- comment_id: 0 created_unix: 1573248003 - -- - id: 4 #comment reaction - type: laugh # allowed reaction + id: 3 issue_id: 1 - comment_id: 2 + original_author: null + original_author_id: 0 + type: eyes user_id: 2 +- comment_id: 2 created_unix: 1573248004 - -- - id: 5 #comment reaction - type: laugh # allowed reaction + id: 4 issue_id: 1 - comment_id: 2 - user_id: 1 + original_author: null + original_author_id: 0 + type: laugh + user_id: 2 +- comment_id: 2 created_unix: 1573248005 + id: 5 + issue_id: 1 + original_author: null + original_author_id: 0 + type: laugh + user_id: 1 diff --git a/models/fixtures/release.yml b/models/fixtures/release.yml index 4ed7df440dbd3..79fcb054b2b48 100644 --- a/models/fixtures/release.yml +++ b/models/fixtures/release.yml @@ -1,138 +1,160 @@ -- id: 1 - repo_id: 1 - publisher_id: 2 - tag_name: "v1.1" - lower_tag_name: "v1.1" - target: "master" - title: "testing-release" - sha1: "65f1bf27bc3bf70f64657658635e66094edbcb4d" +- created_unix: 946684800 + id: 1 + is_draft: 0 + is_prerelease: 0 + is_tag: 0 + lower_tag_name: v1.1 + note: null num_commits: 10 - is_draft: false - is_prerelease: false - is_tag: false - created_unix: 946684800 - -- id: 2 - repo_id: 40 + original_author: null + original_author_id: null publisher_id: 2 - tag_name: "v1.1" - lower_tag_name: "v1.1" - target: "master" - title: "testing-release" - sha1: "65f1bf27bc3bf70f64657658635e66094edbcb4d" - num_commits: 10 - is_draft: false - is_prerelease: false - is_tag: false - created_unix: 946684800 - -- id: 3 repo_id: 1 + sha1: 65f1bf27bc3bf70f64657658635e66094edbcb4d + tag_name: v1.1 + target: master + title: testing-release +- created_unix: 946684800 + id: 2 + is_draft: 0 + is_prerelease: 0 + is_tag: 0 + lower_tag_name: v1.1 + note: null + num_commits: 10 + original_author: null + original_author_id: null publisher_id: 2 - tag_name: "delete-tag" - lower_tag_name: "delete-tag" - target: "master" - title: "delete-tag" - sha1: "65f1bf27bc3bf70f64657658635e66094edbcb4d" + repo_id: 40 + sha1: 65f1bf27bc3bf70f64657658635e66094edbcb4d + tag_name: v1.1 + target: master + title: testing-release +- created_unix: 946684800 + id: 3 + is_draft: 0 + is_prerelease: 0 + is_tag: 1 + lower_tag_name: delete-tag + note: null num_commits: 10 - is_draft: false - is_prerelease: false - is_tag: true - created_unix: 946684800 - -- id: 4 - repo_id: 1 + original_author: null + original_author_id: null publisher_id: 2 - tag_name: "draft-release" - lower_tag_name: "draft-release" - target: "master" - title: "draft-release" - is_draft: true - is_prerelease: false - is_tag: false - created_unix: 1619524806 - -- id: 5 repo_id: 1 + sha1: 65f1bf27bc3bf70f64657658635e66094edbcb4d + tag_name: delete-tag + target: master + title: delete-tag +- created_unix: 1619524806 + id: 4 + is_draft: 1 + is_prerelease: 0 + is_tag: 0 + lower_tag_name: draft-release + note: null + num_commits: null + original_author: null + original_author_id: null publisher_id: 2 - tag_name: "v1.0" - lower_tag_name: "v1.0" - target: "master" - title: "pre-release" - note: "some text for a pre release" - sha1: "65f1bf27bc3bf70f64657658635e66094edbcb4d" + repo_id: 1 + sha1: null + tag_name: draft-release + target: master + title: draft-release +- created_unix: 946684800 + id: 5 + is_draft: 0 + is_prerelease: 1 + is_tag: 0 + lower_tag_name: v1.0 + note: some text for a pre release num_commits: 1 - is_draft: false - is_prerelease: true - is_tag: false - created_unix: 946684800 - -- id: 6 - repo_id: 57 + original_author: null + original_author_id: null publisher_id: 2 - tag_name: "v1.0" - lower_tag_name: "v1.0" - target: "main" - title: "v1.0" - sha1: "a8a700e8c644c783ba2c6e742bb81bf91e244bff" + repo_id: 1 + sha1: 65f1bf27bc3bf70f64657658635e66094edbcb4d + tag_name: v1.0 + target: master + title: pre-release +- created_unix: 946684801 + id: 6 + is_draft: 0 + is_prerelease: 0 + is_tag: 0 + lower_tag_name: v1.0 + note: null num_commits: 3 - is_draft: false - is_prerelease: false - is_tag: false - created_unix: 946684801 - -- id: 7 - repo_id: 57 + original_author: null + original_author_id: null publisher_id: 2 - tag_name: "v1.1" - lower_tag_name: "v1.1" - target: "main" - title: "v1.1" - sha1: "cef06e48f2642cd0dc9597b4bea09f4b3f74aad6" - num_commits: 5 - is_draft: false - is_prerelease: false - is_tag: false - created_unix: 946684802 - -- id: 8 repo_id: 57 + sha1: a8a700e8c644c783ba2c6e742bb81bf91e244bff + tag_name: v1.0 + target: main + title: v1.0 +- created_unix: 946684802 + id: 7 + is_draft: 0 + is_prerelease: 0 + is_tag: 0 + lower_tag_name: v1.1 + note: null + num_commits: 5 + original_author: null + original_author_id: null publisher_id: 2 - tag_name: "v2.0" - lower_tag_name: "v2.0" - target: "main" - title: "v2.0" - sha1: "7197b56fdc75b453f47c9110938cb46a303579fd" - num_commits: 6 - is_draft: false - is_prerelease: false - is_tag: false - created_unix: 946684803 - -- id: 9 repo_id: 57 + sha1: cef06e48f2642cd0dc9597b4bea09f4b3f74aad6 + tag_name: v1.1 + target: main + title: v1.1 +- created_unix: 946684803 + id: 8 + is_draft: 0 + is_prerelease: 0 + is_tag: 0 + lower_tag_name: v2.0 + note: null + num_commits: 6 + original_author: null + original_author_id: null publisher_id: 2 - tag_name: "non-existing-target-branch" - lower_tag_name: "non-existing-target-branch" - target: "non-existing" - title: "non-existing-target-branch" - sha1: "cef06e48f2642cd0dc9597b4bea09f4b3f74aad6" + repo_id: 57 + sha1: 7197b56fdc75b453f47c9110938cb46a303579fd + tag_name: v2.0 + target: main + title: v2.0 +- created_unix: 946684803 + id: 9 + is_draft: 0 + is_prerelease: 0 + is_tag: 0 + lower_tag_name: non-existing-target-branch + note: null num_commits: 5 - is_draft: false - is_prerelease: false - is_tag: false - created_unix: 946684803 - -- id: 10 + original_author: null + original_author_id: null + publisher_id: 2 repo_id: 57 + sha1: cef06e48f2642cd0dc9597b4bea09f4b3f74aad6 + tag_name: non-existing-target-branch + target: non-existing + title: non-existing-target-branch +- created_unix: 946684803 + id: 10 + is_draft: 0 + is_prerelease: 0 + is_tag: 0 + lower_tag_name: empty-target-branch + note: null + num_commits: 5 + original_author: null + original_author_id: null publisher_id: 2 - tag_name: "empty-target-branch" - lower_tag_name: "empty-target-branch" + repo_id: 57 + sha1: cef06e48f2642cd0dc9597b4bea09f4b3f74aad6 + tag_name: empty-target-branch target: "" - title: "empty-target-branch" - sha1: "cef06e48f2642cd0dc9597b4bea09f4b3f74aad6" - num_commits: 5 - is_draft: false - is_prerelease: false - is_tag: false - created_unix: 946684803 + title: empty-target-branch diff --git a/models/fixtures/renamed_branch.yml b/models/fixtures/renamed_branch.yml index efa5130a2b9e9..6366f0978ca72 100644 --- a/models/fixtures/renamed_branch.yml +++ b/models/fixtures/renamed_branch.yml @@ -1,5 +1,5 @@ -- +- created_unix: null + from: dev id: 1 repo_id: 1 - from: dev to: master diff --git a/models/fixtures/repo_archiver.yml b/models/fixtures/repo_archiver.yml index ca780a73aa0c1..fe51488c7066f 100644 --- a/models/fixtures/repo_archiver.yml +++ b/models/fixtures/repo_archiver.yml @@ -1 +1 @@ -[] # empty +[] diff --git a/models/fixtures/repo_indexer_status.yml b/models/fixtures/repo_indexer_status.yml index ca780a73aa0c1..7b3f19175f7a1 100644 --- a/models/fixtures/repo_indexer_status.yml +++ b/models/fixtures/repo_indexer_status.yml @@ -1 +1,84 @@ -[] # empty +- commit_sha: aacbdfe9e1c4b47f60abe81849045fa4e96f1d75 + id: 5 + indexer_type: 1 + repo_id: 49 +- commit_sha: cdaca8cf1d36e1e4e508a940f6e157e239beccfa + id: 6 + indexer_type: 1 + repo_id: 48 +- commit_sha: cdaca8cf1d36e1e4e508a940f6e157e239beccfa + id: 7 + indexer_type: 1 + repo_id: 47 +- commit_sha: cdaca8cf1d36e1e4e508a940f6e157e239beccfa + id: 8 + indexer_type: 1 + repo_id: 46 +- commit_sha: 2a83b349fa234131fc5db6f2a0498d3f4d3d6038 + id: 9 + indexer_type: 1 + repo_id: 44 +- commit_sha: ef6b814b610d8e7717aa0f71fbe5842bcf814697 + id: 10 + indexer_type: 1 + repo_id: 42 +- commit_sha: 6e75c9f89da9a9b93f4f36e61ed092f7a1625ba0 + id: 11 + indexer_type: 1 + repo_id: 41 +- commit_sha: bf19fd4707acb403c4aca44f126ab69142ac59ce + id: 12 + indexer_type: 1 + repo_id: 40 +- commit_sha: b895782bd271fdd266dd06e5880ea4abdc3a0dc7 + id: 13 + indexer_type: 1 + repo_id: 39 +- commit_sha: 90e402c3937a4639725fcc59ca1f529e7dc8506f + id: 14 + indexer_type: 1 + repo_id: 38 +- commit_sha: 65f1bf27bc3bf70f64657658635e66094edbcb4d + id: 15 + indexer_type: 1 + repo_id: 37 +- commit_sha: 9800fe78cabf4fe774fcf376f97fa2a0ed06987b + id: 16 + indexer_type: 1 + repo_id: 36 +- commit_sha: 3aa73c3499bff049a352b4e265575373e964b89a + id: 17 + indexer_type: 1 + repo_id: 33 +- commit_sha: 808038d2f71b0ab020991439cffd24309c7bc530 + id: 18 + indexer_type: 1 + repo_id: 31 +- commit_sha: 69554a64c1e6030f051e5c3f94bfbd773cd6a324 + id: 19 + indexer_type: 1 + repo_id: 16 +- commit_sha: 65f1bf27bc3bf70f64657658635e66094edbcb4d + id: 20 + indexer_type: 1 + repo_id: 11 +- commit_sha: 65f1bf27bc3bf70f64657658635e66094edbcb4d + id: 21 + indexer_type: 1 + repo_id: 10 +- commit_sha: c7cd3cd144e6d23c9d6f3d07e52b2c1a956e0338 + id: 22 + indexer_type: 1 + repo_id: 4 +- commit_sha: 2a47ca4b614a9f5a43abbd5ad851a54a616ffee6 + id: 23 + indexer_type: 1 + repo_id: 3 +- commit_sha: 1032bbf17fbc0d9c95bb5418dabe8f8c99278700 + id: 24 + indexer_type: 1 + repo_id: 2 +- commit_sha: 65f1bf27bc3bf70f64657658635e66094edbcb4d + id: 25 + indexer_type: 1 + repo_id: 1 diff --git a/models/fixtures/repo_redirect.yml b/models/fixtures/repo_redirect.yml index 8850c8d780b70..e1e1335a87f4c 100644 --- a/models/fixtures/repo_redirect.yml +++ b/models/fixtures/repo_redirect.yml @@ -1,5 +1,4 @@ -- - id: 1 - owner_id: 2 +- id: 1 lower_name: oldrepo1 + owner_id: 2 redirect_repo_id: 1 diff --git a/models/fixtures/repo_topic.yml b/models/fixtures/repo_topic.yml index f166faccc1d8f..a0988f3a733c6 100644 --- a/models/fixtures/repo_topic.yml +++ b/models/fixtures/repo_topic.yml @@ -1,27 +1,14 @@ -- - repo_id: 1 +- repo_id: 1 topic_id: 1 - -- - repo_id: 1 +- repo_id: 1 topic_id: 2 - -- - repo_id: 1 +- repo_id: 1 topic_id: 3 - -- - repo_id: 33 +- repo_id: 33 topic_id: 1 - -- - repo_id: 33 +- repo_id: 33 topic_id: 4 - -- - repo_id: 2 +- repo_id: 2 topic_id: 5 - -- - repo_id: 2 +- repo_id: 2 topic_id: 6 diff --git a/models/fixtures/repo_transfer.yml b/models/fixtures/repo_transfer.yml index b841b5e983a1b..b59b61d9c7aa7 100644 --- a/models/fixtures/repo_transfer.yml +++ b/models/fixtures/repo_transfer.yml @@ -1,7 +1,7 @@ -- - id: 1 +- created_unix: 1553610671 doer_id: 3 + id: 1 recipient_id: 1 repo_id: 3 - created_unix: 1553610671 + team_i_ds: null updated_unix: 1553610671 diff --git a/models/fixtures/repo_unit.yml b/models/fixtures/repo_unit.yml index c22eb8c2a2f08..902c823c12363 100644 --- a/models/fixtures/repo_unit.yml +++ b/models/fixtures/repo_unit.yml @@ -1,651 +1,485 @@ -# See models/unit/unit.go for the meaning of the type -- +- config: '{}' + created_unix: 946684810 id: 1 repo_id: 1 type: 4 - config: "{}" +- config: '{}' created_unix: 946684810 - -- id: 2 repo_id: 1 type: 5 - config: "{}" +- config: '{}' created_unix: 946684810 - -- id: 3 repo_id: 1 type: 1 - config: "{}" +- config: '{"EnableTimetracker":true,"AllowOnlyContributorsToTrackTime":true}' created_unix: 946684810 - -- id: 4 repo_id: 1 type: 2 - config: "{\"EnableTimetracker\":true,\"AllowOnlyContributorsToTrackTime\":true}" +- config: '{"IgnoreWhitespaceConflicts":false,"AllowMerge":true,"AllowRebase":true,"AllowRebaseMerge":true,"AllowSquash":true}' created_unix: 946684810 - -- id: 5 repo_id: 1 type: 3 - config: "{\"IgnoreWhitespaceConflicts\":false,\"AllowMerge\":true,\"AllowRebase\":true,\"AllowRebaseMerge\":true,\"AllowSquash\":true}" +- config: '{}' created_unix: 946684810 - -- id: 6 repo_id: 3 type: 1 - config: "{}" +- config: '{"EnableTimetracker":false,"AllowOnlyContributorsToTrackTime":false}' created_unix: 946684810 - -- id: 7 repo_id: 3 type: 2 - config: "{\"EnableTimetracker\":false,\"AllowOnlyContributorsToTrackTime\":false}" +- config: '{"IgnoreWhitespaceConflicts":true,"AllowMerge":true,"AllowRebase":false,"AllowRebaseMerge":true,"AllowSquash":false}' created_unix: 946684810 - -- id: 8 repo_id: 3 type: 3 - config: "{\"IgnoreWhitespaceConflicts\":true,\"AllowMerge\":true,\"AllowRebase\":false,\"AllowRebaseMerge\":true,\"AllowSquash\":false}" +- config: '{}' created_unix: 946684810 - -- id: 9 repo_id: 3 type: 4 - config: "{}" +- config: '{}' created_unix: 946684810 - -- id: 10 repo_id: 3 type: 5 - config: "{}" - created_unix: 946684810 - -- +- config: '{}' + created_unix: 1524304355 id: 11 repo_id: 31 type: 1 - config: "{}" - created_unix: 1524304355 - -- +- config: '{}' + created_unix: 1535593231 id: 12 repo_id: 33 type: 1 - config: "{}" +- config: '{"EnableTimetracker":true,"AllowOnlyContributorsToTrackTime":true}' created_unix: 1535593231 - -- id: 13 repo_id: 33 type: 2 - config: "{\"EnableTimetracker\":true,\"AllowOnlyContributorsToTrackTime\":true}" +- config: '{"IgnoreWhitespaceConflicts":false,"AllowMerge":true,"AllowRebase":true,"AllowSquash":true}' created_unix: 1535593231 - -- id: 14 repo_id: 33 type: 3 - config: "{\"IgnoreWhitespaceConflicts\":false,\"AllowMerge\":true,\"AllowRebase\":true,\"AllowSquash\":true}" +- config: '{}' created_unix: 1535593231 - -- id: 15 repo_id: 33 type: 4 - config: "{}" +- config: '{}' created_unix: 1535593231 - -- id: 16 repo_id: 33 type: 5 - config: "{}" - created_unix: 1535593231 - -- +- config: '{}' + created_unix: 946684810 id: 17 repo_id: 4 type: 4 - config: "{}" +- config: '{}' created_unix: 946684810 - -- id: 18 repo_id: 4 type: 5 - config: "{}" +- config: '{}' created_unix: 946684810 - -- id: 19 repo_id: 4 type: 1 - config: "{}" +- config: '{"EnableTimetracker":true,"AllowOnlyContributorsToTrackTime":true}' created_unix: 946684810 - -- id: 20 repo_id: 4 type: 2 - config: "{\"EnableTimetracker\":true,\"AllowOnlyContributorsToTrackTime\":true}" +- config: '{"IgnoreWhitespaceConflicts":false,"AllowMerge":true,"AllowRebase":true,"AllowSquash":true}' created_unix: 946684810 - -- id: 21 repo_id: 4 type: 3 - config: "{\"IgnoreWhitespaceConflicts\":false,\"AllowMerge\":true,\"AllowRebase\":true,\"AllowSquash\":true}" +- config: '{}' created_unix: 946684810 - -- id: 22 repo_id: 2 type: 4 - config: "{}" +- config: '{}' created_unix: 946684810 - -- id: 23 repo_id: 2 type: 5 - config: "{}" +- config: '{}' created_unix: 946684810 - -- id: 24 repo_id: 2 type: 1 - config: "{}" - created_unix: 946684810 - -- +- config: '{}' + created_unix: 1524304355 id: 25 repo_id: 32 type: 1 - config: "{}" +- config: '{}' created_unix: 1524304355 - -- id: 26 repo_id: 32 type: 2 - config: "{}" +- config: '{}' created_unix: 1524304355 - -- id: 27 repo_id: 24 type: 1 - config: "{}" +- config: '{}' created_unix: 1524304355 - -- id: 28 repo_id: 24 type: 2 - config: "{}" +- config: '{}' created_unix: 1524304355 - -- id: 29 repo_id: 16 type: 1 - config: "{}" +- config: '{}' created_unix: 1524304355 - -- id: 30 repo_id: 23 type: 1 - config: "{}" +- config: '{}' created_unix: 1524304355 - -- id: 31 repo_id: 27 type: 1 - config: "{}" +- config: '{}' created_unix: 1524304355 - -- id: 32 repo_id: 28 type: 1 - config: "{}" +- config: '{}' created_unix: 1524304355 - -- id: 33 repo_id: 36 type: 4 - config: "{}" +- config: '{}' created_unix: 1524304355 - -- id: 34 repo_id: 36 type: 5 - config: "{}" +- config: '{}' created_unix: 1524304355 - -- id: 35 repo_id: 36 type: 1 - config: "{}" +- config: '{"EnableTimetracker":true,"AllowOnlyContributorsToTrackTime":true}' created_unix: 1524304355 - -- id: 36 repo_id: 36 type: 2 - config: "{\"EnableTimetracker\":true,\"AllowOnlyContributorsToTrackTime\":true}" +- config: '{"IgnoreWhitespaceConflicts":false,"AllowMerge":true,"AllowRebase":true,"AllowRebaseMerge":true,"AllowSquash":true}' created_unix: 1524304355 - -- id: 37 repo_id: 36 type: 3 - config: "{\"IgnoreWhitespaceConflicts\":false,\"AllowMerge\":true,\"AllowRebase\":true,\"AllowRebaseMerge\":true,\"AllowSquash\":true}" - created_unix: 1524304355 - -- +- config: '{}' + created_unix: 946684810 id: 38 repo_id: 37 type: 4 - config: "{}" +- config: '{}' created_unix: 946684810 - -- id: 39 repo_id: 37 type: 5 - config: "{}" +- config: '{}' created_unix: 946684810 - -- id: 40 repo_id: 37 type: 1 - config: "{}" +- config: '{"EnableTimetracker":true,"AllowOnlyContributorsToTrackTime":true}' created_unix: 946684810 - -- id: 41 repo_id: 37 type: 2 - config: "{\"EnableTimetracker\":true,\"AllowOnlyContributorsToTrackTime\":true}" +- config: '{"IgnoreWhitespaceConflicts":false,"AllowMerge":true,"AllowRebase":true,"AllowRebaseMerge":true,"AllowSquash":true}' created_unix: 946684810 - -- id: 42 repo_id: 37 type: 3 - config: "{\"IgnoreWhitespaceConflicts\":false,\"AllowMerge\":true,\"AllowRebase\":true,\"AllowRebaseMerge\":true,\"AllowSquash\":true}" +- config: '{}' created_unix: 946684810 - -- id: 43 repo_id: 38 type: 1 - config: "{}" +- config: '{"EnableTimetracker":true,"AllowOnlyContributorsToTrackTime":true}' created_unix: 946684810 - -- id: 44 repo_id: 38 type: 2 - config: "{\"EnableTimetracker\":true,\"AllowOnlyContributorsToTrackTime\":true}" +- config: '{"IgnoreWhitespaceConflicts":false,"AllowMerge":true,"AllowRebase":true,"AllowRebaseMerge":true,"AllowSquash":true}' created_unix: 946684810 - -- id: 45 repo_id: 38 type: 3 - config: "{\"IgnoreWhitespaceConflicts\":false,\"AllowMerge\":true,\"AllowRebase\":true,\"AllowRebaseMerge\":true,\"AllowSquash\":true}" +- config: '{}' created_unix: 946684810 - -- id: 46 repo_id: 39 type: 1 - config: "{}" +- config: '{"EnableTimetracker":true,"AllowOnlyContributorsToTrackTime":true}' created_unix: 946684810 - -- id: 47 repo_id: 39 type: 2 - config: "{\"EnableTimetracker\":true,\"AllowOnlyContributorsToTrackTime\":true}" +- config: '{"IgnoreWhitespaceConflicts":false,"AllowMerge":true,"AllowRebase":true,"AllowRebaseMerge":true,"AllowSquash":true}' created_unix: 946684810 - -- id: 48 repo_id: 39 type: 3 - config: "{\"IgnoreWhitespaceConflicts\":false,\"AllowMerge\":true,\"AllowRebase\":true,\"AllowRebaseMerge\":true,\"AllowSquash\":true}" +- config: '{}' created_unix: 946684810 - -- id: 49 repo_id: 40 type: 1 - config: "{}" +- config: '{"EnableTimetracker":true,"AllowOnlyContributorsToTrackTime":true}' created_unix: 946684810 - -- id: 50 repo_id: 40 type: 2 - config: "{\"EnableTimetracker\":true,\"AllowOnlyContributorsToTrackTime\":true}" +- config: '{"IgnoreWhitespaceConflicts":false,"AllowMerge":true,"AllowRebase":true,"AllowRebaseMerge":true,"AllowSquash":true}' created_unix: 946684810 - -- id: 51 repo_id: 40 type: 3 - config: "{\"IgnoreWhitespaceConflicts\":false,\"AllowMerge\":true,\"AllowRebase\":true,\"AllowRebaseMerge\":true,\"AllowSquash\":true}" +- config: '{}' created_unix: 946684810 - -- id: 52 repo_id: 41 type: 1 - config: "{}" +- config: '{"EnableTimetracker":true,"AllowOnlyContributorsToTrackTime":true}' created_unix: 946684810 - -- id: 53 repo_id: 41 type: 2 - config: "{\"EnableTimetracker\":true,\"AllowOnlyContributorsToTrackTime\":true}" +- config: '{"IgnoreWhitespaceConflicts":false,"AllowMerge":true,"AllowRebase":true,"AllowRebaseMerge":true,"AllowSquash":true}' created_unix: 946684810 - -- id: 54 repo_id: 41 type: 3 - config: "{\"IgnoreWhitespaceConflicts\":false,\"AllowMerge\":true,\"AllowRebase\":true,\"AllowRebaseMerge\":true,\"AllowSquash\":true}" +- config: '{}' created_unix: 946684810 - -- id: 55 repo_id: 10 type: 1 - config: "{}" +- config: '{"EnableTimetracker":true,"AllowOnlyContributorsToTrackTime":true}' created_unix: 946684810 - -- id: 56 repo_id: 10 type: 2 - config: "{\"EnableTimetracker\":true,\"AllowOnlyContributorsToTrackTime\":true}" +- config: '{"IgnoreWhitespaceConflicts":false,"AllowMerge":true,"AllowRebase":true,"AllowRebaseMerge":true,"AllowSquash":true}' created_unix: 946684810 - -- id: 57 repo_id: 10 type: 3 - config: "{\"IgnoreWhitespaceConflicts\":false,\"AllowMerge\":true,\"AllowRebase\":true,\"AllowRebaseMerge\":true,\"AllowSquash\":true}" +- config: '{}' created_unix: 946684810 - -- id: 58 repo_id: 11 type: 1 - config: "{}" +- config: '{}' created_unix: 946684810 - -- id: 59 repo_id: 42 type: 1 - config: "{}" +- config: '{}' created_unix: 946684810 - -- id: 60 repo_id: 42 type: 4 - config: "{}" +- config: '{}' created_unix: 946684810 - -- id: 61 repo_id: 42 type: 5 - config: "{}" +- config: '{"EnableTimetracker":true,"AllowOnlyContributorsToTrackTime":true}' created_unix: 946684810 - -- id: 62 repo_id: 42 type: 2 - config: "{\"EnableTimetracker\":true,\"AllowOnlyContributorsToTrackTime\":true}" +- config: '{"IgnoreWhitespaceConflicts":false,"AllowMerge":true,"AllowRebase":true,"AllowRebaseMerge":true,"AllowSquash":true}' created_unix: 946684810 - -- id: 63 repo_id: 42 type: 3 - config: "{\"IgnoreWhitespaceConflicts\":false,\"AllowMerge\":true,\"AllowRebase\":true,\"AllowRebaseMerge\":true,\"AllowSquash\":true}" +- config: '{}' created_unix: 946684810 - -- id: 64 repo_id: 44 type: 1 - config: "{}" +- config: '{}' created_unix: 946684810 - -- id: 65 repo_id: 45 type: 1 - config: "{}" +- config: '{"ExternalTrackerURL":"https://tracker.com","ExternalTrackerFormat":"https://tracker.com/{user}/{repo}/issues/{index}","ExternalTrackerStyle":""}' created_unix: 946684810 - -- id: 66 repo_id: 46 type: 7 - config: "{\"ExternalTrackerURL\":\"https://tracker.com\",\"ExternalTrackerFormat\":\"https://tracker.com/{user}/{repo}/issues/{index}\",\"ExternalTrackerStyle\":\"\"}" +- config: '{"ExternalTrackerURL":"https://tracker.com","ExternalTrackerFormat":"https://tracker.com/{user}/{repo}/issues/{index}","ExternalTrackerStyle":"numeric"}' created_unix: 946684810 - -- id: 67 repo_id: 47 type: 7 - config: "{\"ExternalTrackerURL\":\"https://tracker.com\",\"ExternalTrackerFormat\":\"https://tracker.com/{user}/{repo}/issues/{index}\",\"ExternalTrackerStyle\":\"numeric\"}" +- config: '{"ExternalTrackerURL":"https://tracker.com","ExternalTrackerFormat":"https://tracker.com/{user}/{repo}/issues/{index}","ExternalTrackerStyle":"alphanumeric"}' created_unix: 946684810 - -- id: 68 repo_id: 48 type: 7 - config: "{\"ExternalTrackerURL\":\"https://tracker.com\",\"ExternalTrackerFormat\":\"https://tracker.com/{user}/{repo}/issues/{index}\",\"ExternalTrackerStyle\":\"alphanumeric\"}" +- config: '{}' created_unix: 946684810 -- id: 69 repo_id: 2 type: 2 - config: "{}" +- config: '{}' created_unix: 946684810 - -- id: 70 repo_id: 5 type: 4 - config: "{}" +- config: '{}' created_unix: 946684810 - -- id: 71 repo_id: 5 type: 5 - config: "{}" +- config: '{}' created_unix: 946684810 - -- id: 72 repo_id: 5 type: 1 - config: "{}" +- config: '{"EnableTimetracker":true,"AllowOnlyContributorsToTrackTime":true}' created_unix: 946684810 - -- id: 73 repo_id: 5 type: 2 - config: "{\"EnableTimetracker\":true,\"AllowOnlyContributorsToTrackTime\":true}" +- config: '{"IgnoreWhitespaceConflicts":false,"AllowMerge":true,"AllowRebase":true,"AllowRebaseMerge":true,"AllowSquash":true}' created_unix: 946684810 - -- id: 74 repo_id: 5 type: 3 - config: "{\"IgnoreWhitespaceConflicts\":false,\"AllowMerge\":true,\"AllowRebase\":true,\"AllowRebaseMerge\":true,\"AllowSquash\":true}" +- config: null created_unix: 946684810 - -- id: 75 repo_id: 1 type: 8 +- config: null created_unix: 946684810 - -- id: 76 repo_id: 2 type: 8 +- config: null created_unix: 946684810 - -- id: 77 repo_id: 3 type: 8 +- config: null created_unix: 946684810 - -- id: 78 repo_id: 50 type: 2 +- config: null created_unix: 946684810 - -- id: 79 repo_id: 51 type: 2 +- config: null created_unix: 946684810 - -- id: 80 repo_id: 53 type: 1 +- config: null created_unix: 946684810 - -- id: 81 repo_id: 54 type: 1 +- config: null created_unix: 946684810 - -- id: 82 repo_id: 31 type: 1 +- config: '{"IgnoreWhitespaceConflicts":false,"AllowMerge":true,"AllowRebase":true,"AllowRebaseMerge":true,"AllowSquash":true}' created_unix: 946684810 - -- id: 83 repo_id: 31 type: 3 - config: "{\"IgnoreWhitespaceConflicts\":false,\"AllowMerge\":true,\"AllowRebase\":true,\"AllowRebaseMerge\":true,\"AllowSquash\":true}" +- config: null created_unix: 946684810 - -- id: 84 repo_id: 56 type: 1 +- config: null created_unix: 946684810 -- id: 85 repo_id: 57 type: 1 +- config: null created_unix: 946684810 -- id: 86 repo_id: 57 type: 2 +- config: null created_unix: 946684810 -- id: 87 repo_id: 57 type: 3 +- config: null created_unix: 946684810 -- id: 88 repo_id: 57 type: 4 +- config: null created_unix: 946684810 -- id: 89 repo_id: 57 type: 5 +- config: null created_unix: 946684810 - -- id: 90 repo_id: 52 type: 1 +- config: null created_unix: 946684810 - -- id: 91 repo_id: 58 type: 1 +- config: null created_unix: 946684810 - -- id: 92 repo_id: 58 type: 2 +- config: null created_unix: 946684810 - -- id: 93 repo_id: 58 type: 3 +- config: null created_unix: 946684810 - -- id: 94 repo_id: 58 type: 4 +- config: null created_unix: 946684810 - -- id: 95 repo_id: 58 type: 5 +- config: null created_unix: 946684810 - -- id: 96 repo_id: 49 type: 1 +- config: null created_unix: 946684810 - -- id: 97 repo_id: 49 type: 2 - created_unix: 946684810 diff --git a/models/fixtures/repository.yml b/models/fixtures/repository.yml index 15668e6caed68..1100c53fc6539 100644 --- a/models/fixtures/repository.yml +++ b/models/fixtures/repository.yml @@ -1,1695 +1,2494 @@ -# don't forget to add fixtures in repo_unit.yml -- +- archived_unix: 0 + avatar: null + close_issues_via_commit_in_any_branch: 0 + created_unix: null + default_branch: master + description: null + fork_id: 0 + git_size: 0 id: 1 - owner_id: 2 - owner_name: user2 + is_archived: 0 + is_empty: 0 + is_fork: 0 + is_fsck_enabled: 1 + is_mirror: 0 + is_private: 0 + is_template: 0 + lfs_size: 0 lower_name: repo1 name: repo1 - default_branch: master - num_watches: 4 - num_stars: 0 - num_forks: 0 - num_issues: 2 + num_action_runs: 0 + num_closed_action_runs: 0 num_closed_issues: 1 - num_pulls: 3 + num_closed_milestones: 1 + num_closed_projects: 0 num_closed_pulls: 0 + num_forks: 0 + num_issues: 2 num_milestones: 3 - num_closed_milestones: 1 num_projects: 1 - num_closed_projects: 0 - is_private: false - is_empty: false - is_archived: false - is_mirror: false + num_pulls: 3 + num_stars: 0 + num_watches: 4 + original_service_type: null + original_url: null + owner_id: 2 + owner_name: user2 + size: 7320 status: 0 - is_fork: false - fork_id: 0 - is_template: false template_id: 0 - size: 7320 - is_fsck_enabled: true - close_issues_via_commit_in_any_branch: false - -- + topics: null + trust_model: null + updated_unix: null + website: null +- archived_unix: 0 + avatar: null + close_issues_via_commit_in_any_branch: 1 + created_unix: null + default_branch: master + description: null + fork_id: 0 + git_size: 0 id: 2 - owner_id: 2 - owner_name: user2 + is_archived: 0 + is_empty: 0 + is_fork: 0 + is_fsck_enabled: 1 + is_mirror: 0 + is_private: 1 + is_template: 0 + lfs_size: 0 lower_name: repo2 name: repo2 - default_branch: master - num_watches: 0 - num_stars: 1 - num_forks: 0 - num_issues: 2 + num_action_runs: 0 + num_closed_action_runs: 0 num_closed_issues: 1 - num_pulls: 0 + num_closed_milestones: 0 + num_closed_projects: 0 num_closed_pulls: 0 + num_forks: 0 + num_issues: 2 num_milestones: 0 - num_closed_milestones: 0 num_projects: 0 - num_closed_projects: 0 - is_private: true - is_empty: false - is_archived: false - is_mirror: false + num_pulls: 0 + num_stars: 1 + num_watches: 0 + original_service_type: null + original_url: null + owner_id: 2 + owner_name: user2 + size: 0 status: 0 - is_fork: false - fork_id: 0 - is_template: false template_id: 0 - size: 0 - is_fsck_enabled: true - close_issues_via_commit_in_any_branch: true - -- + topics: null + trust_model: null + updated_unix: null + website: null +- archived_unix: 0 + avatar: null + close_issues_via_commit_in_any_branch: 0 + created_unix: null + default_branch: master + description: null + fork_id: 0 + git_size: 0 id: 3 - owner_id: 3 - owner_name: user3 + is_archived: 0 + is_empty: 0 + is_fork: 0 + is_fsck_enabled: 1 + is_mirror: 0 + is_private: 1 + is_template: 0 + lfs_size: 0 lower_name: repo3 name: repo3 - default_branch: master - num_watches: 0 - num_stars: 0 - num_forks: 0 - num_issues: 1 + num_action_runs: 0 + num_closed_action_runs: 0 num_closed_issues: 0 - num_pulls: 1 + num_closed_milestones: 0 + num_closed_projects: 0 num_closed_pulls: 0 + num_forks: 0 + num_issues: 1 num_milestones: 0 - num_closed_milestones: 0 num_projects: 1 - num_closed_projects: 0 - is_private: true - is_empty: false - is_archived: false - is_mirror: false + num_pulls: 1 + num_stars: 0 + num_watches: 0 + original_service_type: null + original_url: null + owner_id: 3 + owner_name: user3 + size: 0 status: 0 - is_fork: false - fork_id: 0 - is_template: false template_id: 0 - size: 0 - is_fsck_enabled: true - close_issues_via_commit_in_any_branch: false - -- + topics: null + trust_model: null + updated_unix: null + website: null +- archived_unix: 0 + avatar: null + close_issues_via_commit_in_any_branch: 0 + created_unix: null + default_branch: master + description: null + fork_id: 0 + git_size: 0 id: 4 - owner_id: 5 - owner_name: user5 + is_archived: 0 + is_empty: 0 + is_fork: 0 + is_fsck_enabled: 1 + is_mirror: 0 + is_private: 0 + is_template: 0 + lfs_size: 0 lower_name: repo4 name: repo4 - default_branch: master - num_watches: 0 - num_stars: 1 - num_forks: 0 - num_issues: 0 + num_action_runs: 0 + num_closed_action_runs: 0 num_closed_issues: 0 - num_pulls: 0 + num_closed_milestones: 0 + num_closed_projects: 1 num_closed_pulls: 0 + num_forks: 0 + num_issues: 0 num_milestones: 0 - num_closed_milestones: 0 num_projects: 0 - num_closed_projects: 1 - is_private: false - is_empty: false - is_archived: false - is_mirror: false + num_pulls: 0 + num_stars: 1 + num_watches: 0 + original_service_type: null + original_url: null + owner_id: 5 + owner_name: user5 + size: 0 status: 0 - is_fork: false - fork_id: 0 - is_template: false template_id: 0 - size: 0 - is_fsck_enabled: true - close_issues_via_commit_in_any_branch: false - -- + topics: null + trust_model: null + updated_unix: null + website: null +- archived_unix: 0 + avatar: null + close_issues_via_commit_in_any_branch: 0 + created_unix: null + default_branch: null + description: null + fork_id: 0 + git_size: 0 id: 5 - owner_id: 3 - owner_name: user3 + is_archived: 0 + is_empty: 0 + is_fork: 0 + is_fsck_enabled: 1 + is_mirror: 1 + is_private: 1 + is_template: 0 + lfs_size: 0 lower_name: repo5 name: repo5 - num_watches: 0 - num_stars: 0 - num_forks: 0 - num_issues: 1 + num_action_runs: 0 + num_closed_action_runs: 0 num_closed_issues: 0 - num_pulls: 0 + num_closed_milestones: 0 + num_closed_projects: 0 num_closed_pulls: 0 + num_forks: 0 + num_issues: 1 num_milestones: 0 - num_closed_milestones: 0 num_projects: 0 - num_closed_projects: 0 - is_private: true - is_empty: false - is_archived: false - is_mirror: true + num_pulls: 0 + num_stars: 0 + num_watches: 0 + original_service_type: null + original_url: null + owner_id: 3 + owner_name: user3 + size: 0 status: 0 - is_fork: false - fork_id: 0 - is_template: false template_id: 0 - size: 0 - is_fsck_enabled: true - close_issues_via_commit_in_any_branch: false - -- + topics: null + trust_model: null + updated_unix: null + website: null +- archived_unix: 0 + avatar: null + close_issues_via_commit_in_any_branch: 0 + created_unix: null + default_branch: null + description: null + fork_id: 0 + git_size: 0 id: 6 - owner_id: 10 - owner_name: user10 + is_archived: 0 + is_empty: 1 + is_fork: 0 + is_fsck_enabled: 1 + is_mirror: 0 + is_private: 1 + is_template: 0 + lfs_size: 0 lower_name: repo6 name: repo6 - num_watches: 0 - num_stars: 0 - num_forks: 0 - num_issues: 0 + num_action_runs: 0 + num_closed_action_runs: 0 num_closed_issues: 0 - num_pulls: 0 + num_closed_milestones: 0 + num_closed_projects: 0 num_closed_pulls: 0 + num_forks: 0 + num_issues: 0 num_milestones: 0 - num_closed_milestones: 0 num_projects: 0 - num_closed_projects: 0 - is_private: true - is_empty: true - is_archived: false - is_mirror: false + num_pulls: 0 + num_stars: 0 + num_watches: 0 + original_service_type: null + original_url: null + owner_id: 10 + owner_name: user10 + size: 0 status: 0 - is_fork: false - fork_id: 0 - is_template: false template_id: 0 - size: 0 - is_fsck_enabled: true - close_issues_via_commit_in_any_branch: false - -- + topics: null + trust_model: null + updated_unix: null + website: null +- archived_unix: 0 + avatar: null + close_issues_via_commit_in_any_branch: 0 + created_unix: null + default_branch: null + description: null + fork_id: 0 + git_size: 0 id: 7 - owner_id: 10 - owner_name: user10 + is_archived: 0 + is_empty: 1 + is_fork: 0 + is_fsck_enabled: 1 + is_mirror: 0 + is_private: 1 + is_template: 0 + lfs_size: 0 lower_name: repo7 name: repo7 - num_watches: 0 - num_stars: 0 - num_forks: 0 - num_issues: 0 + num_action_runs: 0 + num_closed_action_runs: 0 num_closed_issues: 0 - num_pulls: 0 + num_closed_milestones: 0 + num_closed_projects: 0 num_closed_pulls: 0 + num_forks: 0 + num_issues: 0 num_milestones: 0 - num_closed_milestones: 0 num_projects: 0 - num_closed_projects: 0 - is_private: true - is_empty: true - is_archived: false - is_mirror: false + num_pulls: 0 + num_stars: 0 + num_watches: 0 + original_service_type: null + original_url: null + owner_id: 10 + owner_name: user10 + size: 0 status: 0 - is_fork: false - fork_id: 0 - is_template: false template_id: 0 - size: 0 - is_fsck_enabled: true - close_issues_via_commit_in_any_branch: false - -- + topics: null + trust_model: null + updated_unix: null + website: null +- archived_unix: 0 + avatar: null + close_issues_via_commit_in_any_branch: 0 + created_unix: null + default_branch: null + description: null + fork_id: 0 + git_size: 0 id: 8 - owner_id: 10 - owner_name: user10 + is_archived: 0 + is_empty: 1 + is_fork: 0 + is_fsck_enabled: 1 + is_mirror: 0 + is_private: 0 + is_template: 0 + lfs_size: 0 lower_name: repo8 name: repo8 - num_watches: 0 - num_stars: 0 - num_forks: 0 - num_issues: 0 + num_action_runs: 0 + num_closed_action_runs: 0 num_closed_issues: 0 - num_pulls: 0 + num_closed_milestones: 0 + num_closed_projects: 0 num_closed_pulls: 0 + num_forks: 0 + num_issues: 0 num_milestones: 0 - num_closed_milestones: 0 num_projects: 0 - num_closed_projects: 0 - is_private: false - is_empty: true - is_archived: false - is_mirror: false + num_pulls: 0 + num_stars: 0 + num_watches: 0 + original_service_type: null + original_url: null + owner_id: 10 + owner_name: user10 + size: 0 status: 0 - is_fork: false - fork_id: 0 - is_template: false template_id: 0 - size: 0 - is_fsck_enabled: true - close_issues_via_commit_in_any_branch: false - -- + topics: null + trust_model: null + updated_unix: null + website: null +- archived_unix: 0 + avatar: null + close_issues_via_commit_in_any_branch: 0 + created_unix: null + default_branch: null + description: null + fork_id: 0 + git_size: 0 id: 9 - owner_id: 11 - owner_name: user11 + is_archived: 0 + is_empty: 1 + is_fork: 0 + is_fsck_enabled: 1 + is_mirror: 0 + is_private: 0 + is_template: 0 + lfs_size: 0 lower_name: repo9 name: repo9 - num_watches: 0 - num_stars: 0 - num_forks: 0 - num_issues: 0 + num_action_runs: 0 + num_closed_action_runs: 0 num_closed_issues: 0 - num_pulls: 0 + num_closed_milestones: 0 + num_closed_projects: 0 num_closed_pulls: 0 + num_forks: 0 + num_issues: 0 num_milestones: 0 - num_closed_milestones: 0 num_projects: 0 - num_closed_projects: 0 - is_private: false - is_empty: true - is_archived: false - is_mirror: false + num_pulls: 0 + num_stars: 0 + num_watches: 0 + original_service_type: null + original_url: null + owner_id: 11 + owner_name: user11 + size: 0 status: 0 - is_fork: false - fork_id: 0 - is_template: false template_id: 0 - size: 0 - is_fsck_enabled: true - close_issues_via_commit_in_any_branch: false - -- + topics: null + trust_model: null + updated_unix: null + website: null +- archived_unix: 0 + avatar: null + close_issues_via_commit_in_any_branch: 0 + created_unix: null + default_branch: master + description: null + fork_id: 0 + git_size: 0 id: 10 - owner_id: 12 - owner_name: user12 + is_archived: 0 + is_empty: 0 + is_fork: 0 + is_fsck_enabled: 1 + is_mirror: 0 + is_private: 0 + is_template: 0 + lfs_size: 0 lower_name: repo10 name: repo10 - default_branch: master - num_watches: 0 - num_stars: 0 - num_forks: 1 - num_issues: 0 + num_action_runs: 0 + num_closed_action_runs: 0 num_closed_issues: 0 - num_pulls: 1 + num_closed_milestones: 0 + num_closed_projects: 0 num_closed_pulls: 0 + num_forks: 1 + num_issues: 0 num_milestones: 1 - num_closed_milestones: 0 num_projects: 0 - num_closed_projects: 0 - is_private: false - is_empty: false - is_archived: false - is_mirror: false + num_pulls: 1 + num_stars: 0 + num_watches: 0 + original_service_type: null + original_url: null + owner_id: 12 + owner_name: user12 + size: 0 status: 0 - is_fork: false - fork_id: 0 - is_template: false template_id: 0 - size: 0 - is_fsck_enabled: true - close_issues_via_commit_in_any_branch: false - -- + topics: null + trust_model: null + updated_unix: null + website: null +- archived_unix: 0 + avatar: null + close_issues_via_commit_in_any_branch: 0 + created_unix: null + default_branch: master + description: null + fork_id: 10 + git_size: 0 id: 11 - owner_id: 13 - owner_name: user13 + is_archived: 0 + is_empty: 0 + is_fork: 0 + is_fsck_enabled: 1 + is_mirror: 0 + is_private: 0 + is_template: 0 + lfs_size: 0 lower_name: repo11 name: repo11 - default_branch: master - num_watches: 0 - num_stars: 0 - num_forks: 0 - num_issues: 0 + num_action_runs: 0 + num_closed_action_runs: 0 num_closed_issues: 0 - num_pulls: 0 + num_closed_milestones: 0 + num_closed_projects: 0 num_closed_pulls: 0 + num_forks: 0 + num_issues: 0 num_milestones: 0 - num_closed_milestones: 0 num_projects: 0 - num_closed_projects: 0 - is_private: false - is_empty: false - is_archived: false - is_mirror: false + num_pulls: 0 + num_stars: 0 + num_watches: 0 + original_service_type: null + original_url: null + owner_id: 13 + owner_name: user13 + size: 0 status: 0 - is_fork: false - fork_id: 10 - is_template: false template_id: 0 - size: 0 - is_fsck_enabled: true - close_issues_via_commit_in_any_branch: false - -- + topics: null + trust_model: null + updated_unix: null + website: null +- archived_unix: 0 + avatar: null + close_issues_via_commit_in_any_branch: 0 + created_unix: null + default_branch: null + description: null + fork_id: 0 + git_size: 0 id: 12 - owner_id: 14 - owner_name: user14 + is_archived: 0 + is_empty: 1 + is_fork: 0 + is_fsck_enabled: 1 + is_mirror: 0 + is_private: 0 + is_template: 0 + lfs_size: 0 lower_name: test_repo_12 name: test_repo_12 - num_watches: 0 - num_stars: 0 - num_forks: 0 - num_issues: 0 + num_action_runs: 0 + num_closed_action_runs: 0 num_closed_issues: 0 - num_pulls: 0 + num_closed_milestones: 0 + num_closed_projects: 0 num_closed_pulls: 0 + num_forks: 0 + num_issues: 0 num_milestones: 0 - num_closed_milestones: 0 num_projects: 0 - num_closed_projects: 0 - is_private: false - is_empty: true - is_archived: false - is_mirror: false + num_pulls: 0 + num_stars: 0 + num_watches: 0 + original_service_type: null + original_url: null + owner_id: 14 + owner_name: user14 + size: 0 status: 0 - is_fork: false - fork_id: 0 - is_template: false template_id: 0 - size: 0 - is_fsck_enabled: true - close_issues_via_commit_in_any_branch: false - -- + topics: null + trust_model: null + updated_unix: null + website: null +- archived_unix: 0 + avatar: null + close_issues_via_commit_in_any_branch: 0 + created_unix: null + default_branch: null + description: null + fork_id: 0 + git_size: 0 id: 13 - owner_id: 14 - owner_name: user14 + is_archived: 0 + is_empty: 1 + is_fork: 0 + is_fsck_enabled: 1 + is_mirror: 0 + is_private: 1 + is_template: 0 + lfs_size: 0 lower_name: test_repo_13 name: test_repo_13 - num_watches: 0 - num_stars: 0 - num_forks: 0 - num_issues: 0 + num_action_runs: 0 + num_closed_action_runs: 0 num_closed_issues: 0 - num_pulls: 0 + num_closed_milestones: 0 + num_closed_projects: 0 num_closed_pulls: 0 + num_forks: 0 + num_issues: 0 num_milestones: 0 - num_closed_milestones: 0 num_projects: 0 - num_closed_projects: 0 - is_private: true - is_empty: true - is_archived: false - is_mirror: false + num_pulls: 0 + num_stars: 0 + num_watches: 0 + original_service_type: null + original_url: null + owner_id: 14 + owner_name: user14 + size: 0 status: 0 - is_fork: false - fork_id: 0 - is_template: false template_id: 0 - size: 0 - is_fsck_enabled: true - close_issues_via_commit_in_any_branch: false - -- + topics: null + trust_model: null + updated_unix: null + website: null +- archived_unix: 0 + avatar: null + close_issues_via_commit_in_any_branch: 0 + created_unix: null + default_branch: null + description: test_description_14 + fork_id: 0 + git_size: 0 id: 14 - owner_id: 14 - owner_name: user14 + is_archived: 0 + is_empty: 1 + is_fork: 0 + is_fsck_enabled: 1 + is_mirror: 0 + is_private: 0 + is_template: 0 + lfs_size: 0 lower_name: test_repo_14 name: test_repo_14 - description: test_description_14 - num_watches: 0 - num_stars: 0 - num_forks: 0 - num_issues: 0 + num_action_runs: 0 + num_closed_action_runs: 0 num_closed_issues: 0 - num_pulls: 0 + num_closed_milestones: 0 + num_closed_projects: 0 num_closed_pulls: 0 + num_forks: 0 + num_issues: 0 num_milestones: 0 - num_closed_milestones: 0 num_projects: 0 - num_closed_projects: 0 - is_private: false - is_empty: true - is_archived: false - is_mirror: false + num_pulls: 0 + num_stars: 0 + num_watches: 0 + original_service_type: null + original_url: null + owner_id: 14 + owner_name: user14 + size: 0 status: 0 - is_fork: false - fork_id: 0 - is_template: false template_id: 0 - size: 0 - is_fsck_enabled: true - close_issues_via_commit_in_any_branch: false - -- + topics: null + trust_model: null + updated_unix: null + website: null +- archived_unix: 0 + avatar: null + close_issues_via_commit_in_any_branch: 0 + created_unix: null + default_branch: master + description: null + fork_id: 0 + git_size: 0 id: 15 - owner_id: 2 - owner_name: user2 + is_archived: 0 + is_empty: 0 + is_fork: 0 + is_fsck_enabled: 1 + is_mirror: 0 + is_private: 1 + is_template: 0 + lfs_size: 0 lower_name: repo15 name: repo15 - default_branch: master - num_watches: 0 - num_stars: 0 - num_forks: 0 - num_issues: 0 + num_action_runs: 0 + num_closed_action_runs: 0 num_closed_issues: 0 - num_pulls: 0 + num_closed_milestones: 0 + num_closed_projects: 0 num_closed_pulls: 0 + num_forks: 0 + num_issues: 0 num_milestones: 0 - num_closed_milestones: 0 num_projects: 0 - num_closed_projects: 0 - is_private: true - is_empty: false - is_archived: false - is_mirror: false + num_pulls: 0 + num_stars: 0 + num_watches: 0 + original_service_type: null + original_url: null + owner_id: 2 + owner_name: user2 + size: 0 status: 0 - is_fork: false - fork_id: 0 - is_template: false template_id: 0 - size: 0 - is_fsck_enabled: true - close_issues_via_commit_in_any_branch: false - -- + topics: null + trust_model: null + updated_unix: null + website: null +- archived_unix: 0 + avatar: null + close_issues_via_commit_in_any_branch: 0 + created_unix: null + default_branch: master + description: null + fork_id: 0 + git_size: 0 id: 16 - owner_id: 2 - owner_name: user2 + is_archived: 0 + is_empty: 0 + is_fork: 0 + is_fsck_enabled: 1 + is_mirror: 0 + is_private: 1 + is_template: 0 + lfs_size: 0 lower_name: repo16 name: repo16 - default_branch: master - num_watches: 0 - num_stars: 0 - num_forks: 0 - num_issues: 0 + num_action_runs: 0 + num_closed_action_runs: 0 num_closed_issues: 0 - num_pulls: 0 + num_closed_milestones: 0 + num_closed_projects: 0 num_closed_pulls: 0 + num_forks: 0 + num_issues: 0 num_milestones: 0 - num_closed_milestones: 0 num_projects: 0 - num_closed_projects: 0 - is_private: true - is_empty: false - is_archived: false - is_mirror: false + num_pulls: 0 + num_stars: 0 + num_watches: 0 + original_service_type: null + original_url: null + owner_id: 2 + owner_name: user2 + size: 0 status: 0 - is_fork: false - fork_id: 0 - is_template: false template_id: 0 - size: 0 - is_fsck_enabled: true - close_issues_via_commit_in_any_branch: false - -- + topics: null + trust_model: null + updated_unix: null + website: null +- archived_unix: 0 + avatar: null + close_issues_via_commit_in_any_branch: 0 + created_unix: null + default_branch: null + description: null + fork_id: 0 + git_size: 0 id: 17 - owner_id: 15 - owner_name: user15 + is_archived: 0 + is_empty: 1 + is_fork: 0 + is_fsck_enabled: 1 + is_mirror: 0 + is_private: 0 + is_template: 0 + lfs_size: 0 lower_name: big_test_public_1 name: big_test_public_1 - num_watches: 0 - num_stars: 0 - num_forks: 0 - num_issues: 0 + num_action_runs: 0 + num_closed_action_runs: 0 num_closed_issues: 0 - num_pulls: 0 + num_closed_milestones: 0 + num_closed_projects: 0 num_closed_pulls: 0 + num_forks: 0 + num_issues: 0 num_milestones: 0 - num_closed_milestones: 0 num_projects: 0 - num_closed_projects: 0 - is_private: false - is_empty: true - is_archived: false - is_mirror: false + num_pulls: 0 + num_stars: 0 + num_watches: 0 + original_service_type: null + original_url: null + owner_id: 15 + owner_name: user15 + size: 0 status: 0 - is_fork: false - fork_id: 0 - is_template: false template_id: 0 - size: 0 - is_fsck_enabled: true - close_issues_via_commit_in_any_branch: false - -- + topics: null + trust_model: null + updated_unix: null + website: null +- archived_unix: 0 + avatar: null + close_issues_via_commit_in_any_branch: 0 + created_unix: null + default_branch: null + description: null + fork_id: 0 + git_size: 0 id: 18 - owner_id: 15 - owner_name: user15 + is_archived: 0 + is_empty: 1 + is_fork: 0 + is_fsck_enabled: 1 + is_mirror: 0 + is_private: 0 + is_template: 0 + lfs_size: 0 lower_name: big_test_public_2 name: big_test_public_2 - num_watches: 0 - num_stars: 0 - num_forks: 0 - num_issues: 0 + num_action_runs: 0 + num_closed_action_runs: 0 num_closed_issues: 0 - num_pulls: 0 + num_closed_milestones: 0 + num_closed_projects: 0 num_closed_pulls: 0 + num_forks: 0 + num_issues: 0 num_milestones: 0 - num_closed_milestones: 0 num_projects: 0 - num_closed_projects: 0 - is_private: false - is_empty: true - is_archived: false - is_mirror: false + num_pulls: 0 + num_stars: 0 + num_watches: 0 + original_service_type: null + original_url: null + owner_id: 15 + owner_name: user15 + size: 0 status: 0 - is_fork: false - fork_id: 0 - is_template: false template_id: 0 - size: 0 - is_fsck_enabled: true - close_issues_via_commit_in_any_branch: false - -- + topics: null + trust_model: null + updated_unix: null + website: null +- archived_unix: 0 + avatar: null + close_issues_via_commit_in_any_branch: 0 + created_unix: null + default_branch: null + description: null + fork_id: 0 + git_size: 0 id: 19 - owner_id: 15 - owner_name: user15 + is_archived: 0 + is_empty: 1 + is_fork: 0 + is_fsck_enabled: 1 + is_mirror: 0 + is_private: 1 + is_template: 0 + lfs_size: 0 lower_name: big_test_private_1 name: big_test_private_1 - num_watches: 0 - num_stars: 0 - num_forks: 0 - num_issues: 0 + num_action_runs: 0 + num_closed_action_runs: 0 num_closed_issues: 0 - num_pulls: 0 + num_closed_milestones: 0 + num_closed_projects: 0 num_closed_pulls: 0 + num_forks: 0 + num_issues: 0 num_milestones: 0 - num_closed_milestones: 0 num_projects: 0 - num_closed_projects: 0 - is_private: true - is_empty: true - is_archived: false - is_mirror: false + num_pulls: 0 + num_stars: 0 + num_watches: 0 + original_service_type: null + original_url: null + owner_id: 15 + owner_name: user15 + size: 0 status: 0 - is_fork: false - fork_id: 0 - is_template: false template_id: 0 - size: 0 - is_fsck_enabled: true - close_issues_via_commit_in_any_branch: false - -- + topics: null + trust_model: null + updated_unix: null + website: null +- archived_unix: 0 + avatar: null + close_issues_via_commit_in_any_branch: 0 + created_unix: null + default_branch: null + description: null + fork_id: 0 + git_size: 0 id: 20 - owner_id: 15 - owner_name: user15 + is_archived: 0 + is_empty: 1 + is_fork: 0 + is_fsck_enabled: 1 + is_mirror: 0 + is_private: 1 + is_template: 0 + lfs_size: 0 lower_name: big_test_private_2 name: big_test_private_2 - num_watches: 0 - num_stars: 0 - num_forks: 0 - num_issues: 0 + num_action_runs: 0 + num_closed_action_runs: 0 num_closed_issues: 0 - num_pulls: 0 + num_closed_milestones: 0 + num_closed_projects: 0 num_closed_pulls: 0 + num_forks: 0 + num_issues: 0 num_milestones: 0 - num_closed_milestones: 0 num_projects: 0 - num_closed_projects: 0 - is_private: true - is_empty: true - is_archived: false - is_mirror: false + num_pulls: 0 + num_stars: 0 + num_watches: 0 + original_service_type: null + original_url: null + owner_id: 15 + owner_name: user15 + size: 0 status: 0 - is_fork: false - fork_id: 0 - is_template: false template_id: 0 - size: 0 - is_fsck_enabled: true - close_issues_via_commit_in_any_branch: false - -- + topics: null + trust_model: null + updated_unix: null + website: null +- archived_unix: 0 + avatar: null + close_issues_via_commit_in_any_branch: 0 + created_unix: null + default_branch: null + description: null + fork_id: 0 + git_size: 0 id: 21 - owner_id: 16 - owner_name: user16 + is_archived: 0 + is_empty: 1 + is_fork: 0 + is_fsck_enabled: 1 + is_mirror: 0 + is_private: 0 + is_template: 0 + lfs_size: 0 lower_name: big_test_public_3 name: big_test_public_3 - num_watches: 0 - num_stars: 0 - num_forks: 0 - num_issues: 0 + num_action_runs: 0 + num_closed_action_runs: 0 num_closed_issues: 0 - num_pulls: 0 + num_closed_milestones: 0 + num_closed_projects: 0 num_closed_pulls: 0 + num_forks: 0 + num_issues: 0 num_milestones: 0 - num_closed_milestones: 0 num_projects: 0 - num_closed_projects: 0 - is_private: false - is_empty: true - is_archived: false - is_mirror: false + num_pulls: 0 + num_stars: 0 + num_watches: 0 + original_service_type: null + original_url: null + owner_id: 16 + owner_name: user16 + size: 0 status: 0 - is_fork: false - fork_id: 0 - is_template: false template_id: 0 - size: 0 - is_fsck_enabled: true - close_issues_via_commit_in_any_branch: false - -- + topics: null + trust_model: null + updated_unix: null + website: null +- archived_unix: 0 + avatar: null + close_issues_via_commit_in_any_branch: 0 + created_unix: null + default_branch: null + description: null + fork_id: 0 + git_size: 0 id: 22 - owner_id: 16 - owner_name: user16 + is_archived: 0 + is_empty: 1 + is_fork: 0 + is_fsck_enabled: 1 + is_mirror: 0 + is_private: 1 + is_template: 0 + lfs_size: 0 lower_name: big_test_private_3 name: big_test_private_3 - num_watches: 0 - num_stars: 0 - num_forks: 0 - num_issues: 0 + num_action_runs: 0 + num_closed_action_runs: 0 num_closed_issues: 0 - num_pulls: 0 + num_closed_milestones: 0 + num_closed_projects: 0 num_closed_pulls: 0 + num_forks: 0 + num_issues: 0 num_milestones: 0 - num_closed_milestones: 0 num_projects: 0 - num_closed_projects: 0 - is_private: true - is_empty: true - is_archived: false - is_mirror: false + num_pulls: 0 + num_stars: 0 + num_watches: 0 + original_service_type: null + original_url: null + owner_id: 16 + owner_name: user16 + size: 0 status: 0 - is_fork: false - fork_id: 0 - is_template: false template_id: 0 - size: 0 - is_fsck_enabled: true - close_issues_via_commit_in_any_branch: false - -- + topics: null + trust_model: null + updated_unix: null + website: null +- archived_unix: 0 + avatar: null + close_issues_via_commit_in_any_branch: 0 + created_unix: null + default_branch: null + description: null + fork_id: 0 + git_size: 0 id: 23 - owner_id: 17 - owner_name: user17 + is_archived: 0 + is_empty: 1 + is_fork: 0 + is_fsck_enabled: 1 + is_mirror: 0 + is_private: 0 + is_template: 0 + lfs_size: 0 lower_name: big_test_public_4 name: big_test_public_4 - num_watches: 0 - num_stars: 0 - num_forks: 0 - num_issues: 0 + num_action_runs: 0 + num_closed_action_runs: 0 num_closed_issues: 0 - num_pulls: 0 - num_closed_pulls: 0 - num_milestones: 0 num_closed_milestones: 0 - num_projects: 0 num_closed_projects: 0 - is_private: false - is_empty: true - is_archived: false - is_mirror: false + num_closed_pulls: 0 + num_forks: 0 + num_issues: 0 + num_milestones: 0 + num_projects: 0 + num_pulls: 0 + num_stars: 0 + num_watches: 0 + original_service_type: null + original_url: null + owner_id: 17 + owner_name: user17 + size: 0 status: 0 - is_fork: false - fork_id: 0 - is_template: false template_id: 0 - size: 0 - is_fsck_enabled: true - close_issues_via_commit_in_any_branch: false - -- + topics: null + trust_model: null + updated_unix: null + website: null +- archived_unix: 0 + avatar: null + close_issues_via_commit_in_any_branch: 0 + created_unix: null + default_branch: null + description: null + fork_id: 0 + git_size: 0 id: 24 - owner_id: 17 - owner_name: user17 + is_archived: 0 + is_empty: 1 + is_fork: 0 + is_fsck_enabled: 1 + is_mirror: 0 + is_private: 1 + is_template: 0 + lfs_size: 0 lower_name: big_test_private_4 name: big_test_private_4 - num_watches: 0 - num_stars: 0 - num_forks: 0 - num_issues: 0 + num_action_runs: 0 + num_closed_action_runs: 0 num_closed_issues: 0 - num_pulls: 0 + num_closed_milestones: 0 + num_closed_projects: 0 num_closed_pulls: 0 + num_forks: 0 + num_issues: 0 num_milestones: 0 - num_closed_milestones: 0 num_projects: 0 - num_closed_projects: 0 - is_private: true - is_empty: true - is_archived: false - is_mirror: false + num_pulls: 0 + num_stars: 0 + num_watches: 0 + original_service_type: null + original_url: null + owner_id: 17 + owner_name: user17 + size: 0 status: 0 - is_fork: false - fork_id: 0 - is_template: false template_id: 0 - size: 0 - is_fsck_enabled: true - close_issues_via_commit_in_any_branch: false - -- + topics: null + trust_model: null + updated_unix: null + website: null +- archived_unix: 0 + avatar: null + close_issues_via_commit_in_any_branch: 0 + created_unix: null + default_branch: null + description: null + fork_id: 0 + git_size: 0 id: 25 - owner_id: 20 - owner_name: user20 + is_archived: 0 + is_empty: 1 + is_fork: 0 + is_fsck_enabled: 1 + is_mirror: 1 + is_private: 0 + is_template: 0 + lfs_size: 0 lower_name: big_test_public_mirror_5 name: big_test_public_mirror_5 - num_watches: 0 - num_stars: 0 - num_forks: 0 - num_issues: 0 + num_action_runs: 0 + num_closed_action_runs: 0 num_closed_issues: 0 - num_pulls: 0 + num_closed_milestones: 0 + num_closed_projects: 0 num_closed_pulls: 0 + num_forks: 0 + num_issues: 0 num_milestones: 0 - num_closed_milestones: 0 num_projects: 0 - num_closed_projects: 0 - is_private: false - is_empty: true - is_archived: false - is_mirror: true + num_pulls: 0 + num_stars: 0 + num_watches: 0 + original_service_type: null + original_url: null + owner_id: 20 + owner_name: user20 + size: 0 status: 0 - is_fork: false - fork_id: 0 - is_template: false template_id: 0 - size: 0 - is_fsck_enabled: true - close_issues_via_commit_in_any_branch: false - -- + topics: null + trust_model: null + updated_unix: null + website: null +- archived_unix: 0 + avatar: null + close_issues_via_commit_in_any_branch: 0 + created_unix: null + default_branch: null + description: null + fork_id: 0 + git_size: 0 id: 26 - owner_id: 20 - owner_name: user20 + is_archived: 0 + is_empty: 1 + is_fork: 0 + is_fsck_enabled: 1 + is_mirror: 1 + is_private: 1 + is_template: 0 + lfs_size: 0 lower_name: big_test_private_mirror_5 name: big_test_private_mirror_5 - num_watches: 0 - num_stars: 0 - num_forks: 0 - num_issues: 0 + num_action_runs: 0 + num_closed_action_runs: 0 num_closed_issues: 0 - num_pulls: 0 + num_closed_milestones: 0 + num_closed_projects: 0 num_closed_pulls: 0 + num_forks: 0 + num_issues: 0 num_milestones: 0 - num_closed_milestones: 0 num_projects: 0 - num_closed_projects: 0 - is_private: true - is_empty: true - is_archived: false - is_mirror: true + num_pulls: 0 + num_stars: 0 + num_watches: 0 + original_service_type: null + original_url: null + owner_id: 20 + owner_name: user20 + size: 0 status: 0 - is_fork: false - fork_id: 0 - is_template: false template_id: 0 - size: 0 - is_fsck_enabled: true - close_issues_via_commit_in_any_branch: false - -- + topics: null + trust_model: null + updated_unix: null + website: null +- archived_unix: 0 + avatar: null + close_issues_via_commit_in_any_branch: 0 + created_unix: null + default_branch: null + description: null + fork_id: 0 + git_size: 0 id: 27 - owner_id: 19 - owner_name: user19 + is_archived: 0 + is_empty: 1 + is_fork: 0 + is_fsck_enabled: 1 + is_mirror: 1 + is_private: 0 + is_template: 0 + lfs_size: 0 lower_name: big_test_public_mirror_6 name: big_test_public_mirror_6 - num_watches: 0 - num_stars: 0 - num_forks: 1 - num_issues: 0 + num_action_runs: 0 + num_closed_action_runs: 0 num_closed_issues: 0 - num_pulls: 0 + num_closed_milestones: 0 + num_closed_projects: 0 num_closed_pulls: 0 + num_forks: 1 + num_issues: 0 num_milestones: 0 - num_closed_milestones: 0 num_projects: 0 - num_closed_projects: 0 - is_private: false - is_empty: true - is_archived: false - is_mirror: true + num_pulls: 0 + num_stars: 0 + num_watches: 0 + original_service_type: null + original_url: null + owner_id: 19 + owner_name: user19 + size: 0 status: 0 - is_fork: false - fork_id: 0 - is_template: false template_id: 0 - size: 0 - is_fsck_enabled: true - close_issues_via_commit_in_any_branch: false - -- + topics: null + trust_model: null + updated_unix: null + website: null +- archived_unix: 0 + avatar: null + close_issues_via_commit_in_any_branch: 0 + created_unix: null + default_branch: null + description: null + fork_id: 0 + git_size: 0 id: 28 - owner_id: 19 - owner_name: user19 + is_archived: 0 + is_empty: 1 + is_fork: 0 + is_fsck_enabled: 1 + is_mirror: 1 + is_private: 1 + is_template: 0 + lfs_size: 0 lower_name: big_test_private_mirror_6 name: big_test_private_mirror_6 - num_watches: 0 - num_stars: 0 - num_forks: 1 - num_issues: 0 + num_action_runs: 0 + num_closed_action_runs: 0 num_closed_issues: 0 - num_pulls: 0 + num_closed_milestones: 0 + num_closed_projects: 0 num_closed_pulls: 0 + num_forks: 1 + num_issues: 0 num_milestones: 0 - num_closed_milestones: 0 num_projects: 0 - num_closed_projects: 0 - is_private: true - is_empty: true - is_archived: false - is_mirror: true + num_pulls: 0 + num_stars: 0 + num_watches: 0 + original_service_type: null + original_url: null + owner_id: 19 + owner_name: user19 + size: 0 status: 0 - is_fork: false - fork_id: 0 - is_template: false template_id: 0 - size: 0 - is_fsck_enabled: true - close_issues_via_commit_in_any_branch: false - -- + topics: null + trust_model: null + updated_unix: null + website: null +- archived_unix: 0 + avatar: null + close_issues_via_commit_in_any_branch: 0 + created_unix: null + default_branch: null + description: null + fork_id: 27 + git_size: 0 id: 29 - owner_id: 20 - owner_name: user20 + is_archived: 0 + is_empty: 1 + is_fork: 1 + is_fsck_enabled: 1 + is_mirror: 0 + is_private: 0 + is_template: 0 + lfs_size: 0 lower_name: big_test_public_fork_7 name: big_test_public_fork_7 - num_watches: 0 - num_stars: 0 - num_forks: 0 - num_issues: 0 + num_action_runs: 0 + num_closed_action_runs: 0 num_closed_issues: 0 - num_pulls: 0 + num_closed_milestones: 0 + num_closed_projects: 0 num_closed_pulls: 0 + num_forks: 0 + num_issues: 0 num_milestones: 0 - num_closed_milestones: 0 num_projects: 0 - num_closed_projects: 0 - is_private: false - is_empty: true - is_archived: false - is_mirror: false + num_pulls: 0 + num_stars: 0 + num_watches: 0 + original_service_type: null + original_url: null + owner_id: 20 + owner_name: user20 + size: 0 status: 0 - is_fork: true - fork_id: 27 - is_template: false template_id: 0 - size: 0 - is_fsck_enabled: true - close_issues_via_commit_in_any_branch: false - -- + topics: null + trust_model: null + updated_unix: null + website: null +- archived_unix: 0 + avatar: null + close_issues_via_commit_in_any_branch: 0 + created_unix: null + default_branch: null + description: null + fork_id: 28 + git_size: 0 id: 30 - owner_id: 20 - owner_name: user20 + is_archived: 0 + is_empty: 1 + is_fork: 1 + is_fsck_enabled: 1 + is_mirror: 0 + is_private: 1 + is_template: 0 + lfs_size: 0 lower_name: big_test_private_fork_7 name: big_test_private_fork_7 - num_watches: 0 - num_stars: 0 - num_forks: 0 - num_issues: 0 + num_action_runs: 0 + num_closed_action_runs: 0 num_closed_issues: 0 - num_pulls: 0 + num_closed_milestones: 0 + num_closed_projects: 0 num_closed_pulls: 0 + num_forks: 0 + num_issues: 0 num_milestones: 0 - num_closed_milestones: 0 num_projects: 0 - num_closed_projects: 0 - is_private: true - is_empty: true - is_archived: false - is_mirror: false + num_pulls: 0 + num_stars: 0 + num_watches: 0 + original_service_type: null + original_url: null + owner_id: 20 + owner_name: user20 + size: 0 status: 0 - is_fork: true - fork_id: 28 - is_template: false template_id: 0 - size: 0 - is_fsck_enabled: true - close_issues_via_commit_in_any_branch: false - -- + topics: null + trust_model: null + updated_unix: null + website: null +- archived_unix: 0 + avatar: null + close_issues_via_commit_in_any_branch: 0 + created_unix: null + default_branch: master + description: null + fork_id: 0 + git_size: 0 id: 31 - owner_id: 2 - owner_name: user2 + is_archived: 0 + is_empty: 0 + is_fork: 0 + is_fsck_enabled: 1 + is_mirror: 0 + is_private: 1 + is_template: 0 + lfs_size: 0 lower_name: repo20 name: repo20 - default_branch: master - num_watches: 0 - num_stars: 0 - num_forks: 0 - num_issues: 0 + num_action_runs: 0 + num_closed_action_runs: 0 num_closed_issues: 0 - num_pulls: 0 + num_closed_milestones: 0 + num_closed_projects: 0 num_closed_pulls: 0 + num_forks: 0 + num_issues: 0 num_milestones: 0 - num_closed_milestones: 0 num_projects: 0 - num_closed_projects: 0 - is_private: true - is_empty: false - is_archived: false - is_mirror: false + num_pulls: 0 + num_stars: 0 + num_watches: 0 + original_service_type: null + original_url: null + owner_id: 2 + owner_name: user2 + size: 0 status: 0 - is_fork: false - fork_id: 0 - is_template: false template_id: 0 - size: 0 - is_fsck_enabled: true - close_issues_via_commit_in_any_branch: false - -- - id: 32 # org public repo - owner_id: 3 - owner_name: user3 + topics: null + trust_model: null + updated_unix: null + website: null +- archived_unix: 0 + avatar: null + close_issues_via_commit_in_any_branch: 0 + created_unix: null + default_branch: null + description: null + fork_id: 0 + git_size: 0 + id: 32 + is_archived: 0 + is_empty: 1 + is_fork: 0 + is_fsck_enabled: 1 + is_mirror: 0 + is_private: 0 + is_template: 0 + lfs_size: 0 lower_name: repo21 name: repo21 - num_watches: 0 - num_stars: 0 - num_forks: 0 - num_issues: 2 + num_action_runs: 0 + num_closed_action_runs: 0 num_closed_issues: 0 - num_pulls: 0 + num_closed_milestones: 0 + num_closed_projects: 0 num_closed_pulls: 0 + num_forks: 0 + num_issues: 2 num_milestones: 0 - num_closed_milestones: 0 num_projects: 0 - num_closed_projects: 0 - is_private: false - is_empty: true - is_archived: false - is_mirror: false + num_pulls: 0 + num_stars: 0 + num_watches: 0 + original_service_type: null + original_url: null + owner_id: 3 + owner_name: user3 + size: 0 status: 0 - is_fork: false - fork_id: 0 - is_template: false template_id: 0 - size: 0 - is_fsck_enabled: true - close_issues_via_commit_in_any_branch: false - -- + topics: null + trust_model: null + updated_unix: null + website: null +- archived_unix: 0 + avatar: null + close_issues_via_commit_in_any_branch: 0 + created_unix: null + default_branch: master + description: null + fork_id: 0 + git_size: 0 id: 33 - owner_id: 2 - owner_name: user2 + is_archived: 0 + is_empty: 0 + is_fork: 0 + is_fsck_enabled: 1 + is_mirror: 0 + is_private: 0 + is_template: 0 + lfs_size: 0 lower_name: utf8 name: utf8 - default_branch: master - num_watches: 0 - num_stars: 0 - num_forks: 0 - num_issues: 0 + num_action_runs: 0 + num_closed_action_runs: 0 num_closed_issues: 0 - num_pulls: 0 + num_closed_milestones: 0 + num_closed_projects: 0 num_closed_pulls: 0 + num_forks: 0 + num_issues: 0 num_milestones: 0 - num_closed_milestones: 0 num_projects: 0 - num_closed_projects: 0 - is_private: false - is_empty: false - is_archived: false - is_mirror: false + num_pulls: 0 + num_stars: 0 + num_watches: 0 + original_service_type: null + original_url: null + owner_id: 2 + owner_name: user2 + size: 0 status: 0 - is_fork: false - fork_id: 0 - is_template: false template_id: 0 - size: 0 - is_fsck_enabled: true - close_issues_via_commit_in_any_branch: false - -- + topics: null + trust_model: null + updated_unix: null + website: null +- archived_unix: 0 + avatar: null + close_issues_via_commit_in_any_branch: 0 + created_unix: null + default_branch: null + description: null + fork_id: 0 + git_size: 0 id: 34 - owner_id: 21 - owner_name: user21 + is_archived: 0 + is_empty: 1 + is_fork: 0 + is_fsck_enabled: 1 + is_mirror: 0 + is_private: 0 + is_template: 0 + lfs_size: 0 lower_name: golang name: golang - num_watches: 0 - num_stars: 0 - num_forks: 0 - num_issues: 0 + num_action_runs: 0 + num_closed_action_runs: 0 num_closed_issues: 0 - num_pulls: 0 + num_closed_milestones: 0 + num_closed_projects: 0 num_closed_pulls: 0 + num_forks: 0 + num_issues: 0 num_milestones: 0 - num_closed_milestones: 0 num_projects: 0 - num_closed_projects: 0 - is_private: false - is_empty: true - is_archived: false - is_mirror: false + num_pulls: 0 + num_stars: 0 + num_watches: 0 + original_service_type: null + original_url: null + owner_id: 21 + owner_name: user21 + size: 0 status: 0 - is_fork: false - fork_id: 0 - is_template: false template_id: 0 - size: 0 - is_fsck_enabled: true - close_issues_via_commit_in_any_branch: false - -- + topics: null + trust_model: null + updated_unix: null + website: null +- archived_unix: 0 + avatar: null + close_issues_via_commit_in_any_branch: 0 + created_unix: null + default_branch: null + description: null + fork_id: 0 + git_size: 0 id: 35 - owner_id: 21 - owner_name: user21 + is_archived: 0 + is_empty: 1 + is_fork: 0 + is_fsck_enabled: 1 + is_mirror: 0 + is_private: 0 + is_template: 0 + lfs_size: 0 lower_name: graphql name: graphql - num_watches: 0 - num_stars: 0 - num_forks: 0 - num_issues: 0 + num_action_runs: 0 + num_closed_action_runs: 0 num_closed_issues: 0 - num_pulls: 0 + num_closed_milestones: 0 + num_closed_projects: 0 num_closed_pulls: 0 + num_forks: 0 + num_issues: 0 num_milestones: 0 - num_closed_milestones: 0 num_projects: 0 - num_closed_projects: 0 - is_private: false - is_empty: true - is_archived: false - is_mirror: false + num_pulls: 0 + num_stars: 0 + num_watches: 0 + original_service_type: null + original_url: null + owner_id: 21 + owner_name: user21 + size: 0 status: 0 - is_fork: false - fork_id: 0 - is_template: false template_id: 0 - size: 0 - is_fsck_enabled: true - close_issues_via_commit_in_any_branch: false - -- + topics: null + trust_model: null + updated_unix: null + website: null +- archived_unix: 0 + avatar: null + close_issues_via_commit_in_any_branch: 0 + created_unix: null + default_branch: master + description: null + fork_id: 0 + git_size: 0 id: 36 - owner_id: 2 - owner_name: user2 + is_archived: 0 + is_empty: 0 + is_fork: 0 + is_fsck_enabled: 1 + is_mirror: 0 + is_private: 0 + is_template: 0 + lfs_size: 0 lower_name: commits_search_test name: commits_search_test - default_branch: master - num_watches: 0 - num_stars: 0 - num_forks: 0 - num_issues: 0 + num_action_runs: 0 + num_closed_action_runs: 0 num_closed_issues: 0 - num_pulls: 0 + num_closed_milestones: 0 + num_closed_projects: 0 num_closed_pulls: 0 + num_forks: 0 + num_issues: 0 num_milestones: 0 - num_closed_milestones: 0 num_projects: 0 - num_closed_projects: 0 - is_private: false - is_empty: false - is_archived: false - is_mirror: false + num_pulls: 0 + num_stars: 0 + num_watches: 0 + original_service_type: null + original_url: null + owner_id: 2 + owner_name: user2 + size: 0 status: 0 - is_fork: false - fork_id: 0 - is_template: false template_id: 0 - size: 0 - is_fsck_enabled: true - close_issues_via_commit_in_any_branch: false - -- + topics: null + trust_model: null + updated_unix: null + website: null +- archived_unix: 0 + avatar: null + close_issues_via_commit_in_any_branch: 0 + created_unix: null + default_branch: master + description: null + fork_id: 0 + git_size: 0 id: 37 - owner_id: 2 - owner_name: user2 + is_archived: 0 + is_empty: 0 + is_fork: 0 + is_fsck_enabled: 1 + is_mirror: 0 + is_private: 0 + is_template: 0 + lfs_size: 0 lower_name: git_hooks_test name: git_hooks_test - default_branch: master - num_watches: 0 - num_stars: 0 - num_forks: 0 - num_issues: 0 + num_action_runs: 0 + num_closed_action_runs: 0 num_closed_issues: 0 - num_pulls: 0 + num_closed_milestones: 0 + num_closed_projects: 0 num_closed_pulls: 0 + num_forks: 0 + num_issues: 0 num_milestones: 0 - num_closed_milestones: 0 num_projects: 0 - num_closed_projects: 0 - is_private: false - is_empty: false - is_archived: false - is_mirror: false + num_pulls: 0 + num_stars: 0 + num_watches: 0 + original_service_type: null + original_url: null + owner_id: 2 + owner_name: user2 + size: 0 status: 0 - is_fork: false - fork_id: 0 - is_template: false template_id: 0 - size: 0 - is_fsck_enabled: true - close_issues_via_commit_in_any_branch: false - -- + topics: null + trust_model: null + updated_unix: null + website: null +- archived_unix: 0 + avatar: null + close_issues_via_commit_in_any_branch: 0 + created_unix: null + default_branch: master + description: null + fork_id: 0 + git_size: 0 id: 38 - owner_id: 22 - owner_name: limited_org + is_archived: 0 + is_empty: 0 + is_fork: 0 + is_fsck_enabled: 1 + is_mirror: 0 + is_private: 0 + is_template: 0 + lfs_size: 0 lower_name: public_repo_on_limited_org name: public_repo_on_limited_org - default_branch: master - num_watches: 0 - num_stars: 0 - num_forks: 0 - num_issues: 0 + num_action_runs: 0 + num_closed_action_runs: 0 num_closed_issues: 0 - num_pulls: 0 + num_closed_milestones: 0 + num_closed_projects: 0 num_closed_pulls: 0 + num_forks: 0 + num_issues: 0 num_milestones: 0 - num_closed_milestones: 0 num_projects: 0 - num_closed_projects: 0 - is_private: false - is_empty: false - is_archived: false - is_mirror: false + num_pulls: 0 + num_stars: 0 + num_watches: 0 + original_service_type: null + original_url: null + owner_id: 22 + owner_name: limited_org + size: 0 status: 0 - is_fork: false - fork_id: 0 - is_template: false template_id: 0 - size: 0 - is_fsck_enabled: true - close_issues_via_commit_in_any_branch: false - -- + topics: null + trust_model: null + updated_unix: null + website: null +- archived_unix: 0 + avatar: null + close_issues_via_commit_in_any_branch: 0 + created_unix: null + default_branch: master + description: null + fork_id: 0 + git_size: 0 id: 39 - owner_id: 22 - owner_name: limited_org + is_archived: 0 + is_empty: 0 + is_fork: 0 + is_fsck_enabled: 1 + is_mirror: 0 + is_private: 1 + is_template: 0 + lfs_size: 0 lower_name: private_repo_on_limited_org name: private_repo_on_limited_org - default_branch: master - num_watches: 0 - num_stars: 0 - num_forks: 0 - num_issues: 0 + num_action_runs: 0 + num_closed_action_runs: 0 num_closed_issues: 0 - num_pulls: 0 + num_closed_milestones: 0 + num_closed_projects: 0 num_closed_pulls: 0 + num_forks: 0 + num_issues: 0 num_milestones: 0 - num_closed_milestones: 0 num_projects: 0 - num_closed_projects: 0 - is_private: true - is_empty: false - is_archived: false - is_mirror: false + num_pulls: 0 + num_stars: 0 + num_watches: 0 + original_service_type: null + original_url: null + owner_id: 22 + owner_name: limited_org + size: 0 status: 0 - is_fork: false - fork_id: 0 - is_template: false template_id: 0 - size: 0 - is_fsck_enabled: true - close_issues_via_commit_in_any_branch: false - -- + topics: null + trust_model: null + updated_unix: null + website: null +- archived_unix: 0 + avatar: null + close_issues_via_commit_in_any_branch: 0 + created_unix: null + default_branch: master + description: null + fork_id: 0 + git_size: 0 id: 40 - owner_id: 23 - owner_name: privated_org + is_archived: 0 + is_empty: 0 + is_fork: 0 + is_fsck_enabled: 1 + is_mirror: 0 + is_private: 0 + is_template: 0 + lfs_size: 0 lower_name: public_repo_on_private_org name: public_repo_on_private_org - default_branch: master - num_watches: 0 - num_stars: 0 - num_forks: 0 - num_issues: 0 + num_action_runs: 0 + num_closed_action_runs: 0 num_closed_issues: 0 - num_pulls: 0 + num_closed_milestones: 0 + num_closed_projects: 0 num_closed_pulls: 0 + num_forks: 0 + num_issues: 0 num_milestones: 0 - num_closed_milestones: 0 num_projects: 0 - num_closed_projects: 0 - is_private: false - is_empty: false - is_archived: false - is_mirror: false + num_pulls: 0 + num_stars: 0 + num_watches: 0 + original_service_type: null + original_url: null + owner_id: 23 + owner_name: privated_org + size: 0 status: 0 - is_fork: false - fork_id: 0 - is_template: false template_id: 0 - size: 0 - is_fsck_enabled: true - close_issues_via_commit_in_any_branch: false - -- + topics: null + trust_model: null + updated_unix: null + website: null +- archived_unix: 0 + avatar: null + close_issues_via_commit_in_any_branch: 0 + created_unix: null + default_branch: master + description: null + fork_id: 0 + git_size: 0 id: 41 - owner_id: 23 - owner_name: privated_org + is_archived: 0 + is_empty: 0 + is_fork: 0 + is_fsck_enabled: 1 + is_mirror: 0 + is_private: 1 + is_template: 0 + lfs_size: 0 lower_name: private_repo_on_private_org name: private_repo_on_private_org - default_branch: master - num_watches: 0 - num_stars: 0 - num_forks: 0 - num_issues: 0 + num_action_runs: 0 + num_closed_action_runs: 0 num_closed_issues: 0 - num_pulls: 0 + num_closed_milestones: 0 + num_closed_projects: 0 num_closed_pulls: 0 + num_forks: 0 + num_issues: 0 num_milestones: 0 - num_closed_milestones: 0 num_projects: 0 - num_closed_projects: 0 - is_private: true - is_empty: false - is_archived: false - is_mirror: false + num_pulls: 0 + num_stars: 0 + num_watches: 0 + original_service_type: null + original_url: null + owner_id: 23 + owner_name: privated_org + size: 0 status: 0 - is_fork: false - fork_id: 0 - is_template: false template_id: 0 - size: 0 - is_fsck_enabled: true - close_issues_via_commit_in_any_branch: false - -- + topics: null + trust_model: null + updated_unix: null + website: null +- archived_unix: 0 + avatar: null + close_issues_via_commit_in_any_branch: 0 + created_unix: null + default_branch: master + description: null + fork_id: 0 + git_size: 0 id: 42 - owner_id: 2 - owner_name: user2 + is_archived: 0 + is_empty: 0 + is_fork: 0 + is_fsck_enabled: 1 + is_mirror: 0 + is_private: 0 + is_template: 0 + lfs_size: 0 lower_name: glob name: glob - default_branch: master - num_watches: 0 - num_stars: 0 - num_forks: 0 - num_issues: 1 + num_action_runs: 0 + num_closed_action_runs: 0 num_closed_issues: 0 - num_pulls: 0 + num_closed_milestones: 0 + num_closed_projects: 0 num_closed_pulls: 0 + num_forks: 0 + num_issues: 1 num_milestones: 1 - num_closed_milestones: 0 num_projects: 0 - num_closed_projects: 0 - is_private: false - is_empty: false - is_archived: false - is_mirror: false + num_pulls: 0 + num_stars: 0 + num_watches: 0 + original_service_type: null + original_url: null + owner_id: 2 + owner_name: user2 + size: 0 status: 0 - is_fork: false - fork_id: 0 - is_template: false template_id: 0 - size: 0 - is_fsck_enabled: true - close_issues_via_commit_in_any_branch: false - -- + topics: null + trust_model: null + updated_unix: null + website: null +- archived_unix: 0 + avatar: null + close_issues_via_commit_in_any_branch: 0 + created_unix: null + default_branch: null + description: null + fork_id: 0 + git_size: 0 id: 43 - owner_id: 26 - owner_name: org26 + is_archived: 0 + is_empty: 1 + is_fork: 0 + is_fsck_enabled: 1 + is_mirror: 0 + is_private: 1 + is_template: 0 + lfs_size: 0 lower_name: repo26 name: repo26 - num_watches: 0 - num_stars: 0 - num_forks: 0 - num_issues: 0 + num_action_runs: 0 + num_closed_action_runs: 0 num_closed_issues: 0 - num_pulls: 0 + num_closed_milestones: 0 + num_closed_projects: 0 num_closed_pulls: 0 + num_forks: 0 + num_issues: 0 num_milestones: 0 - num_closed_milestones: 0 num_projects: 0 - num_closed_projects: 0 - is_private: true - is_empty: true - is_archived: false - is_mirror: false + num_pulls: 0 + num_stars: 0 + num_watches: 0 + original_service_type: null + original_url: null + owner_id: 26 + owner_name: org26 + size: 0 status: 0 - is_fork: false - fork_id: 0 - is_template: false template_id: 0 - size: 0 - is_fsck_enabled: true - close_issues_via_commit_in_any_branch: false - -- + topics: null + trust_model: null + updated_unix: null + website: null +- archived_unix: 0 + avatar: null + close_issues_via_commit_in_any_branch: 0 + created_unix: null + default_branch: master + description: null + fork_id: 0 + git_size: 0 id: 44 - owner_id: 27 - owner_name: user27 + is_archived: 0 + is_empty: 0 + is_fork: 0 + is_fsck_enabled: 1 + is_mirror: 0 + is_private: 0 + is_template: 1 + lfs_size: 0 lower_name: template1 name: template1 - default_branch: master - num_watches: 0 - num_stars: 0 - num_forks: 0 - num_issues: 0 + num_action_runs: 0 + num_closed_action_runs: 0 num_closed_issues: 0 - num_pulls: 0 + num_closed_milestones: 0 + num_closed_projects: 0 num_closed_pulls: 0 + num_forks: 0 + num_issues: 0 num_milestones: 0 - num_closed_milestones: 0 num_projects: 0 - num_closed_projects: 0 - is_private: false - is_empty: false - is_archived: false - is_mirror: false + num_pulls: 0 + num_stars: 0 + num_watches: 0 + original_service_type: null + original_url: null + owner_id: 27 + owner_name: user27 + size: 0 status: 0 - is_fork: false - fork_id: 0 - is_template: true template_id: 0 - size: 0 - is_fsck_enabled: true - close_issues_via_commit_in_any_branch: false - -- + topics: null + trust_model: null + updated_unix: null + website: null +- archived_unix: 0 + avatar: null + close_issues_via_commit_in_any_branch: 0 + created_unix: null + default_branch: null + description: null + fork_id: 0 + git_size: 0 id: 45 - owner_id: 27 - owner_name: user27 + is_archived: 0 + is_empty: 1 + is_fork: 0 + is_fsck_enabled: 1 + is_mirror: 0 + is_private: 0 + is_template: 1 + lfs_size: 0 lower_name: template2 name: template2 - num_watches: 0 - num_stars: 0 - num_forks: 0 - num_issues: 0 + num_action_runs: 0 + num_closed_action_runs: 0 num_closed_issues: 0 - num_pulls: 0 + num_closed_milestones: 0 + num_closed_projects: 0 num_closed_pulls: 0 + num_forks: 0 + num_issues: 0 num_milestones: 0 - num_closed_milestones: 0 num_projects: 0 - num_closed_projects: 0 - is_private: false - is_empty: true - is_archived: false - is_mirror: false + num_pulls: 0 + num_stars: 0 + num_watches: 0 + original_service_type: null + original_url: null + owner_id: 27 + owner_name: user27 + size: 0 status: 0 - is_fork: false - fork_id: 0 - is_template: true template_id: 0 - size: 0 - is_fsck_enabled: true - close_issues_via_commit_in_any_branch: false - -- + topics: null + trust_model: null + updated_unix: null + website: null +- archived_unix: 0 + avatar: null + close_issues_via_commit_in_any_branch: 0 + created_unix: null + default_branch: master + description: null + fork_id: 0 + git_size: 0 id: 46 - owner_id: 26 - owner_name: org26 + is_archived: 0 + is_empty: 0 + is_fork: 0 + is_fsck_enabled: 1 + is_mirror: 0 + is_private: 0 + is_template: 0 + lfs_size: 0 lower_name: repo_external_tracker name: repo_external_tracker - default_branch: master - num_watches: 0 - num_stars: 0 - num_forks: 0 - num_issues: 0 + num_action_runs: 0 + num_closed_action_runs: 0 num_closed_issues: 0 - num_pulls: 0 + num_closed_milestones: 0 + num_closed_projects: 0 num_closed_pulls: 0 + num_forks: 0 + num_issues: 0 num_milestones: 0 - num_closed_milestones: 0 num_projects: 0 - num_closed_projects: 0 - is_private: false - is_empty: false - is_archived: false - is_mirror: false + num_pulls: 0 + num_stars: 0 + num_watches: 0 + original_service_type: null + original_url: null + owner_id: 26 + owner_name: org26 + size: 0 status: 0 - is_fork: false - fork_id: 0 - is_template: false template_id: 0 - size: 0 - is_fsck_enabled: true - close_issues_via_commit_in_any_branch: false - -- + topics: null + trust_model: null + updated_unix: null + website: null +- archived_unix: 0 + avatar: null + close_issues_via_commit_in_any_branch: 0 + created_unix: null + default_branch: master + description: null + fork_id: 0 + git_size: 0 id: 47 - owner_id: 26 - owner_name: org26 + is_archived: 0 + is_empty: 0 + is_fork: 0 + is_fsck_enabled: 1 + is_mirror: 0 + is_private: 0 + is_template: 0 + lfs_size: 0 lower_name: repo_external_tracker_numeric name: repo_external_tracker_numeric - default_branch: master - num_watches: 0 - num_stars: 0 - num_forks: 0 - num_issues: 0 + num_action_runs: 0 + num_closed_action_runs: 0 num_closed_issues: 0 - num_pulls: 0 + num_closed_milestones: 0 + num_closed_projects: 0 num_closed_pulls: 0 + num_forks: 0 + num_issues: 0 num_milestones: 0 - num_closed_milestones: 0 num_projects: 0 - num_closed_projects: 0 - is_private: false - is_empty: false - is_archived: false - is_mirror: false + num_pulls: 0 + num_stars: 0 + num_watches: 0 + original_service_type: null + original_url: null + owner_id: 26 + owner_name: org26 + size: 0 status: 0 - is_fork: false - fork_id: 0 - is_template: false template_id: 0 - size: 0 - is_fsck_enabled: true - close_issues_via_commit_in_any_branch: false - -- + topics: null + trust_model: null + updated_unix: null + website: null +- archived_unix: 0 + avatar: null + close_issues_via_commit_in_any_branch: 0 + created_unix: null + default_branch: master + description: null + fork_id: 0 + git_size: 0 id: 48 - owner_id: 26 - owner_name: org26 + is_archived: 0 + is_empty: 0 + is_fork: 0 + is_fsck_enabled: 1 + is_mirror: 0 + is_private: 0 + is_template: 0 + lfs_size: 0 lower_name: repo_external_tracker_alpha name: repo_external_tracker_alpha - default_branch: master - num_watches: 0 - num_stars: 0 - num_forks: 0 - num_issues: 0 + num_action_runs: 0 + num_closed_action_runs: 0 num_closed_issues: 0 - num_pulls: 1 + num_closed_milestones: 0 + num_closed_projects: 0 num_closed_pulls: 0 + num_forks: 0 + num_issues: 0 num_milestones: 0 - num_closed_milestones: 0 num_projects: 0 - num_closed_projects: 0 - is_private: false - is_empty: false - is_archived: false - is_mirror: false + num_pulls: 1 + num_stars: 0 + num_watches: 0 + original_service_type: null + original_url: null + owner_id: 26 + owner_name: org26 + size: 0 status: 0 - is_fork: false - fork_id: 0 - is_template: false template_id: 0 - size: 0 - is_fsck_enabled: true - close_issues_via_commit_in_any_branch: false - -- + topics: null + trust_model: null + updated_unix: null + website: null +- archived_unix: 0 + avatar: null + close_issues_via_commit_in_any_branch: 0 + created_unix: null + default_branch: master + description: null + fork_id: 0 + git_size: 0 id: 49 - owner_id: 27 - owner_name: user27 + is_archived: 0 + is_empty: 0 + is_fork: 0 + is_fsck_enabled: 1 + is_mirror: 0 + is_private: 0 + is_template: 0 + lfs_size: 0 lower_name: repo49 name: repo49 - default_branch: master - num_watches: 0 - num_stars: 0 - num_forks: 0 - num_issues: 0 + num_action_runs: 0 + num_closed_action_runs: 0 num_closed_issues: 0 - num_pulls: 0 + num_closed_milestones: 0 + num_closed_projects: 0 num_closed_pulls: 0 + num_forks: 0 + num_issues: 0 num_milestones: 0 - num_closed_milestones: 0 num_projects: 0 - num_closed_projects: 0 - is_private: false - is_empty: false - is_archived: false - is_mirror: false + num_pulls: 0 + num_stars: 0 + num_watches: 0 + original_service_type: null + original_url: null + owner_id: 27 + owner_name: user27 + size: 0 status: 0 - is_fork: false - fork_id: 0 - is_template: false template_id: 0 - size: 0 - is_fsck_enabled: true - close_issues_via_commit_in_any_branch: false - -- + topics: null + trust_model: null + updated_unix: null + website: null +- archived_unix: 0 + avatar: null + close_issues_via_commit_in_any_branch: 0 + created_unix: null + default_branch: master + description: null + fork_id: 0 + git_size: 0 id: 50 - owner_id: 30 - owner_name: user30 + is_archived: 0 + is_empty: 0 + is_fork: 0 + is_fsck_enabled: 1 + is_mirror: 0 + is_private: 0 + is_template: 0 + lfs_size: 0 lower_name: repo50 name: repo50 - default_branch: master - num_watches: 0 - num_stars: 0 - num_forks: 0 - num_issues: 1 + num_action_runs: 0 + num_closed_action_runs: 0 num_closed_issues: 0 - num_pulls: 0 + num_closed_milestones: 0 + num_closed_projects: 0 num_closed_pulls: 0 + num_forks: 0 + num_issues: 1 num_milestones: 0 - num_closed_milestones: 0 num_projects: 0 - num_closed_projects: 0 - is_private: false - is_empty: false - is_archived: false - is_mirror: false + num_pulls: 0 + num_stars: 0 + num_watches: 0 + original_service_type: null + original_url: null + owner_id: 30 + owner_name: user30 + size: 0 status: 0 - is_fork: false - fork_id: 0 - is_template: false template_id: 0 - size: 0 - is_fsck_enabled: true - close_issues_via_commit_in_any_branch: false - -- + topics: null + trust_model: null + updated_unix: null + website: null +- archived_unix: 0 + avatar: null + close_issues_via_commit_in_any_branch: 0 + created_unix: null + default_branch: master + description: null + fork_id: 0 + git_size: 0 id: 51 - owner_id: 30 - owner_name: user30 + is_archived: 1 + is_empty: 0 + is_fork: 0 + is_fsck_enabled: 1 + is_mirror: 0 + is_private: 0 + is_template: 0 + lfs_size: 0 lower_name: repo51 name: repo51 - default_branch: master - num_watches: 0 - num_stars: 0 - num_forks: 0 - num_issues: 1 + num_action_runs: 0 + num_closed_action_runs: 0 num_closed_issues: 0 - num_pulls: 0 + num_closed_milestones: 0 + num_closed_projects: 0 num_closed_pulls: 0 + num_forks: 0 + num_issues: 1 num_milestones: 0 - num_closed_milestones: 0 num_projects: 0 - num_closed_projects: 0 - is_private: false - is_empty: false - is_archived: true - is_mirror: false + num_pulls: 0 + num_stars: 0 + num_watches: 0 + original_service_type: null + original_url: null + owner_id: 30 + owner_name: user30 + size: 0 status: 0 - is_fork: false - fork_id: 0 - is_template: false template_id: 0 - size: 0 - is_fsck_enabled: true - close_issues_via_commit_in_any_branch: false - -- + topics: null + trust_model: null + updated_unix: null + website: null +- archived_unix: 0 + avatar: null + close_issues_via_commit_in_any_branch: 0 + created_unix: null + default_branch: master + description: null + fork_id: 0 + git_size: 0 id: 52 - owner_id: 30 - owner_name: user30 + is_archived: 0 + is_empty: 1 + is_fork: 0 + is_fsck_enabled: 1 + is_mirror: 0 + is_private: 1 + is_template: 0 + lfs_size: 0 lower_name: empty name: empty - default_branch: master - num_watches: 0 - num_stars: 0 - num_forks: 0 - num_issues: 0 + num_action_runs: 0 + num_closed_action_runs: 0 num_closed_issues: 0 - num_pulls: 0 + num_closed_milestones: 0 + num_closed_projects: 0 num_closed_pulls: 0 + num_forks: 0 + num_issues: 0 num_milestones: 0 - num_closed_milestones: 0 num_projects: 0 - num_closed_projects: 0 - is_private: true - is_empty: true - is_archived: false - is_mirror: false + num_pulls: 0 + num_stars: 0 + num_watches: 0 + original_service_type: null + original_url: null + owner_id: 30 + owner_name: user30 + size: 0 status: 0 - is_fork: false - fork_id: 0 - is_template: false template_id: 0 - size: 0 - is_fsck_enabled: true - close_issues_via_commit_in_any_branch: false - -- + topics: null + trust_model: null + updated_unix: null + website: null +- archived_unix: 0 + avatar: null + close_issues_via_commit_in_any_branch: 0 + created_unix: null + default_branch: master + description: null + fork_id: 0 + git_size: 0 id: 53 - owner_id: 30 - owner_name: user30 + is_archived: 0 + is_empty: 0 + is_fork: 0 + is_fsck_enabled: 1 + is_mirror: null + is_private: 0 + is_template: 0 + lfs_size: 0 lower_name: renderer name: renderer - default_branch: master - is_archived: false - is_empty: false - is_private: false - num_issues: 0 + num_action_runs: 0 + num_closed_action_runs: 0 num_closed_issues: 0 - num_pulls: 0 + num_closed_milestones: 0 + num_closed_projects: 0 num_closed_pulls: 0 + num_forks: null + num_issues: 0 num_milestones: 0 - num_closed_milestones: 0 - num_watches: 0 num_projects: 0 - num_closed_projects: 0 + num_pulls: 0 + num_stars: null + num_watches: 0 + original_service_type: null + original_url: null + owner_id: 30 + owner_name: user30 + size: 0 status: 0 - is_fork: false - fork_id: 0 - is_template: false template_id: 0 - size: 0 - is_fsck_enabled: true - close_issues_via_commit_in_any_branch: false - -- + topics: null + trust_model: null + updated_unix: null + website: null +- archived_unix: 0 + avatar: null + close_issues_via_commit_in_any_branch: 0 + created_unix: null + default_branch: master + description: null + fork_id: null + git_size: 0 id: 54 - owner_id: 2 - owner_name: user2 + is_archived: 0 + is_empty: 0 + is_fork: 0 + is_fsck_enabled: 1 + is_mirror: null + is_private: 1 + is_template: 0 + lfs_size: 0 lower_name: lfs name: lfs - default_branch: master - is_empty: false - is_archived: false - is_private: true - status: 0 - -- - id: 55 + num_action_runs: 0 + num_closed_action_runs: 0 + num_closed_issues: null + num_closed_milestones: 0 + num_closed_projects: 0 + num_closed_pulls: null + num_forks: null + num_issues: null + num_milestones: 0 + num_projects: 0 + num_pulls: null + num_stars: null + num_watches: null + original_service_type: null + original_url: null owner_id: 2 owner_name: user2 + size: 0 + status: 0 + template_id: null + topics: null + trust_model: null + updated_unix: null + website: null +- archived_unix: 0 + avatar: null + close_issues_via_commit_in_any_branch: 0 + created_unix: null + default_branch: null + description: null + fork_id: null + git_size: 0 + id: 55 + is_archived: 0 + is_empty: 0 + is_fork: 0 + is_fsck_enabled: 1 + is_mirror: null + is_private: 1 + is_template: 0 + lfs_size: 0 lower_name: scoped_label name: scoped_label - is_empty: false - is_archived: false - is_private: true + num_action_runs: 0 + num_closed_action_runs: 0 + num_closed_issues: null + num_closed_milestones: 0 + num_closed_projects: 0 + num_closed_pulls: null + num_forks: null num_issues: 1 - status: 0 - -- - id: 56 + num_milestones: 0 + num_projects: 0 + num_pulls: null + num_stars: null + num_watches: null + original_service_type: null + original_url: null owner_id: 2 owner_name: user2 + size: 0 + status: 0 + template_id: null + topics: null + trust_model: null + updated_unix: null + website: null +- archived_unix: 0 + avatar: null + close_issues_via_commit_in_any_branch: 0 + created_unix: null + default_branch: master + description: null + fork_id: null + git_size: 0 + id: 56 + is_archived: 0 + is_empty: 0 + is_fork: 0 + is_fsck_enabled: 1 + is_mirror: null + is_private: 1 + is_template: 0 + lfs_size: 0 lower_name: readme-test name: readme-test - default_branch: master - is_empty: false - is_archived: false - is_private: true - status: 0 + num_action_runs: 0 + num_closed_action_runs: 0 + num_closed_issues: null + num_closed_milestones: 0 + num_closed_projects: 0 + num_closed_pulls: null + num_forks: null num_issues: 0 - -- - id: 57 + num_milestones: 0 + num_projects: 0 + num_pulls: null + num_stars: null + num_watches: null + original_service_type: null + original_url: null owner_id: 2 owner_name: user2 + size: 0 + status: 0 + template_id: null + topics: null + trust_model: null + updated_unix: null + website: null +- archived_unix: 0 + avatar: null + close_issues_via_commit_in_any_branch: 0 + created_unix: null + default_branch: main + description: null + fork_id: null + git_size: 0 + id: 57 + is_archived: 0 + is_empty: 0 + is_fork: 0 + is_fsck_enabled: 1 + is_mirror: null + is_private: 0 + is_template: 0 + lfs_size: 0 lower_name: repo-release name: repo-release - default_branch: main - is_empty: false - is_archived: false - is_private: false - status: 0 + num_action_runs: 0 + num_closed_action_runs: 0 + num_closed_issues: null + num_closed_milestones: 0 + num_closed_projects: 0 + num_closed_pulls: null + num_forks: null num_issues: 0 - -- - id: 58 # org public repo + num_milestones: 0 + num_projects: 0 + num_pulls: null + num_stars: null + num_watches: null + original_service_type: null + original_url: null owner_id: 2 owner_name: user2 + size: 0 + status: 0 + template_id: null + topics: null + trust_model: null + updated_unix: null + website: null +- archived_unix: 0 + avatar: null + close_issues_via_commit_in_any_branch: 0 + created_unix: null + default_branch: main + description: null + fork_id: 0 + git_size: 0 + id: 58 + is_archived: 0 + is_empty: 0 + is_fork: 0 + is_fsck_enabled: 1 + is_mirror: 0 + is_private: 0 + is_template: 0 + lfs_size: 0 lower_name: commitsonpr name: commitsonpr - default_branch: main - num_watches: 0 - num_stars: 0 - num_forks: 0 - num_issues: 0 + num_action_runs: 0 + num_closed_action_runs: 0 num_closed_issues: 0 - num_pulls: 1 + num_closed_milestones: 0 + num_closed_projects: 0 num_closed_pulls: 0 + num_forks: 0 + num_issues: 0 num_milestones: 0 - num_closed_milestones: 0 num_projects: 0 - num_closed_projects: 0 - is_private: false - is_empty: false - is_archived: false - is_mirror: false + num_pulls: 1 + num_stars: 0 + num_watches: 0 + original_service_type: null + original_url: null + owner_id: 2 + owner_name: user2 + size: 0 status: 0 - is_fork: false - fork_id: 0 - is_template: false template_id: 0 - size: 0 - is_fsck_enabled: true - close_issues_via_commit_in_any_branch: false + topics: null + trust_model: null + updated_unix: null + website: null diff --git a/models/fixtures/review.yml b/models/fixtures/review.yml index cc2c7e06e73e2..8be37916cc9db 100644 --- a/models/fixtures/review.yml +++ b/models/fixtures/review.yml @@ -1,134 +1,210 @@ -- +- commit_id: null + content: Demo Review + created_unix: 946684810 + dismissed: 0 id: 1 - type: 1 - reviewer_id: 1 issue_id: 2 - content: "Demo Review" + official: 0 + original_author: null + original_author_id: null + reviewer_id: 1 + reviewer_team_id: 0 + stale: 0 + type: 1 updated_unix: 946684810 +- commit_id: null + content: 'Invalid Review #1' created_unix: 946684810 -- + dismissed: 0 id: 2 - type: 1 - reviewer_id: 534543 issue_id: 534543 - content: "Invalid Review #1" + official: 0 + original_author: null + original_author_id: null + reviewer_id: 534543 + reviewer_team_id: 0 + stale: 0 + type: 1 updated_unix: 946684810 +- commit_id: null + content: 'Invalid Review #2' created_unix: 946684810 -- + dismissed: 0 id: 3 - type: 1 - reviewer_id: 1 issue_id: 343545 - content: "Invalid Review #2" + official: 0 + original_author: null + original_author_id: null + reviewer_id: 1 + reviewer_team_id: 0 + stale: 0 + type: 1 updated_unix: 946684810 +- commit_id: null + content: Pending Review created_unix: 946684810 -- + dismissed: 0 id: 4 - type: 0 # Pending review - reviewer_id: 1 issue_id: 2 - content: "Pending Review" + official: 0 + original_author: null + original_author_id: null + reviewer_id: 1 + reviewer_team_id: 0 + stale: 0 + type: 0 updated_unix: 946684810 +- commit_id: null + content: New review 1 created_unix: 946684810 -- + dismissed: 0 id: 5 - type: 2 - reviewer_id: 1 issue_id: 3 - content: "New review 1" + official: 0 + original_author: null + original_author_id: null + reviewer_id: 1 + reviewer_team_id: 0 + stale: 0 + type: 2 updated_unix: 946684810 - created_unix: 946684810 -- +- commit_id: null + content: New review 3 + created_unix: 946684811 + dismissed: 0 id: 6 - type: 0 - reviewer_id: 2 issue_id: 3 - content: "New review 3" + official: 0 + original_author: null original_author_id: 0 + reviewer_id: 2 + reviewer_team_id: 0 + stale: 0 + type: 0 updated_unix: 946684811 - created_unix: 946684811 -- +- commit_id: null + content: New review 4 + created_unix: 946684812 + dismissed: 0 id: 7 - type: 3 - reviewer_id: 3 issue_id: 3 - content: "New review 4" + official: 0 + original_author: null original_author_id: 0 + reviewer_id: 3 + reviewer_team_id: 0 + stale: 0 + type: 3 updated_unix: 946684812 - created_unix: 946684812 -- +- commit_id: 8091a55037cd59e47293aca02981b5a67076b364 + content: New review 5 + created_unix: 946684813 + dismissed: 0 id: 8 - type: 1 - reviewer_id: 4 issue_id: 3 + official: 0 + original_author: null original_author_id: 0 - content: "New review 5" - commit_id: 8091a55037cd59e47293aca02981b5a67076b364 - stale: true + reviewer_id: 4 + reviewer_team_id: 0 + stale: 1 + type: 1 updated_unix: 946684813 - created_unix: 946684813 -- +- commit_id: null + content: New review 3 rejected + created_unix: 946684814 + dismissed: 0 id: 9 - type: 3 - reviewer_id: 2 issue_id: 3 - content: "New review 3 rejected" - updated_unix: 946684814 - created_unix: 946684814 + official: 0 + original_author: null original_author_id: 0 - -- - id: 10 + reviewer_id: 2 + reviewer_team_id: 0 + stale: 0 type: 3 - reviewer_id: 100 + updated_unix: 946684814 +- commit_id: null + content: a deleted user's review + created_unix: 946684815 + dismissed: 0 + id: 10 issue_id: 3 - content: "a deleted user's review" - official: true + official: 1 + original_author: null + original_author_id: null + reviewer_id: 100 + reviewer_team_id: 0 + stale: 0 + type: 3 updated_unix: 946684815 - created_unix: 946684815 - -- +- commit_id: null + content: null + created_unix: 1602936509 + dismissed: 0 id: 11 - type: 4 + issue_id: 12 + official: 1 + original_author: null + original_author_id: null reviewer_id: 0 reviewer_team_id: 7 - issue_id: 12 - official: true + stale: 0 + type: 4 updated_unix: 1602936509 - created_unix: 1602936509 - -- +- commit_id: null + content: null + created_unix: 1603196749 + dismissed: 0 id: 12 - type: 4 - reviewer_id: 1 issue_id: 12 - official: true + official: 1 + original_author: null + original_author_id: null + reviewer_id: 1 + reviewer_team_id: 0 + stale: 0 + type: 4 updated_unix: 1603196749 - created_unix: 1603196749 - -- +- commit_id: null + content: old review from user5 + created_unix: 946684820 + dismissed: 0 id: 13 - type: 1 - reviewer_id: 5 issue_id: 11 - content: "old review from user5" + official: 0 + original_author: null + original_author_id: null + reviewer_id: 5 + reviewer_team_id: 0 + stale: 0 + type: 1 updated_unix: 946684820 - created_unix: 946684820 - -- +- commit_id: null + content: duplicate review from user5 (latest) + created_unix: 946684830 + dismissed: 0 id: 14 - type: 1 - reviewer_id: 5 issue_id: 11 - content: "duplicate review from user5 (latest)" + official: 0 + original_author: null + original_author_id: null + reviewer_id: 5 + reviewer_team_id: 0 + stale: 0 + type: 1 updated_unix: 946684830 - created_unix: 946684830 - -- +- commit_id: null + content: singular review from user6 and final review for this pr + created_unix: 946684831 + dismissed: 0 id: 15 - type: 1 - reviewer_id: 6 issue_id: 11 - content: "singular review from user6 and final review for this pr" + official: 0 + original_author: null + original_author_id: null + reviewer_id: 6 + reviewer_team_id: 0 + stale: 0 + type: 1 updated_unix: 946684831 - created_unix: 946684831 diff --git a/models/fixtures/star.yml b/models/fixtures/star.yml index 860f26b8e2282..dcb8db6af3359 100644 --- a/models/fixtures/star.yml +++ b/models/fixtures/star.yml @@ -1,9 +1,8 @@ -- +- created_unix: null id: 1 - uid: 2 repo_id: 2 - -- - id: 2 uid: 2 +- created_unix: null + id: 2 repo_id: 4 + uid: 2 diff --git a/models/fixtures/stopwatch.yml b/models/fixtures/stopwatch.yml index b7919d6fbbd6e..da4d66237682e 100644 --- a/models/fixtures/stopwatch.yml +++ b/models/fixtures/stopwatch.yml @@ -1,11 +1,8 @@ -- +- created_unix: 1500988001 id: 1 - user_id: 1 issue_id: 1 - created_unix: 1500988001 - -- + user_id: 1 +- created_unix: 1500988002 id: 2 - user_id: 2 issue_id: 2 - created_unix: 1500988002 + user_id: 2 diff --git a/models/fixtures/system_setting.yml b/models/fixtures/system_setting.yml index 6c960168fcb81..98e9aa4c957b5 100644 --- a/models/fixtures/system_setting.yml +++ b/models/fixtures/system_setting.yml @@ -1,15 +1,12 @@ -- +- created: 1653533198 id: 1 - setting_key: 'disable_gravatar' - setting_value: 'false' - version: 1 - created: 1653533198 + setting_key: disable_gravatar + setting_value: "false" updated: 1653533198 - -- - id: 2 - setting_key: 'enable_federated_avatar' - setting_value: 'false' version: 1 - created: 1653533198 +- created: 1653533198 + id: 2 + setting_key: enable_federated_avatar + setting_value: "false" updated: 1653533198 + version: 1 diff --git a/models/fixtures/team.yml b/models/fixtures/team.yml index 65326eedbf476..2fe1c40f13b91 100644 --- a/models/fixtures/team.yml +++ b/models/fixtures/team.yml @@ -1,219 +1,200 @@ -- +- authorize: 4 + can_create_org_repo: 1 + description: null id: 1 - org_id: 3 + includes_all_repositories: 0 lower_name: owners name: Owners - authorize: 4 # owner - num_repos: 3 num_members: 1 - includes_all_repositories: false - can_create_org_repo: true - -- - id: 2 + num_repos: 3 org_id: 3 +- authorize: 2 + can_create_org_repo: 0 + description: null + id: 2 + includes_all_repositories: 0 lower_name: team1 name: team1 - authorize: 2 # write - num_repos: 1 num_members: 2 - includes_all_repositories: false - can_create_org_repo: false - -- + num_repos: 1 + org_id: 3 +- authorize: 4 + can_create_org_repo: 1 + description: null id: 3 - org_id: 6 + includes_all_repositories: 0 lower_name: owners name: Owners - authorize: 4 # owner - num_repos: 0 num_members: 1 - includes_all_repositories: false - can_create_org_repo: true - -- + num_repos: 0 + org_id: 6 +- authorize: 4 + can_create_org_repo: 1 + description: null id: 4 - org_id: 7 + includes_all_repositories: 0 lower_name: owners name: Owners - authorize: 4 # owner - num_repos: 0 num_members: 1 - includes_all_repositories: false - can_create_org_repo: true - -- + num_repos: 0 + org_id: 7 +- authorize: 4 + can_create_org_repo: 1 + description: null id: 5 - org_id: 17 + includes_all_repositories: 0 lower_name: owners name: Owners - authorize: 4 # owner - num_repos: 2 num_members: 2 - includes_all_repositories: false - can_create_org_repo: true - -- + num_repos: 2 + org_id: 17 +- authorize: 4 + can_create_org_repo: 1 + description: null id: 6 - org_id: 19 + includes_all_repositories: 0 lower_name: owners name: Owners - authorize: 4 # owner - num_repos: 2 num_members: 2 - includes_all_repositories: false - can_create_org_repo: true - -- + num_repos: 2 + org_id: 19 +- authorize: 2 + can_create_org_repo: 0 + description: null id: 7 - org_id: 3 + includes_all_repositories: 0 lower_name: test_team name: test_team - authorize: 2 # write - num_repos: 1 num_members: 1 - includes_all_repositories: false - can_create_org_repo: false - -- + num_repos: 1 + org_id: 3 +- authorize: 2 + can_create_org_repo: 0 + description: null id: 8 - org_id: 17 + includes_all_repositories: 0 lower_name: test_team name: test_team - authorize: 2 # write - num_repos: 1 num_members: 1 - includes_all_repositories: false - can_create_org_repo: false - -- - id: 9 + num_repos: 1 org_id: 17 +- authorize: 1 + can_create_org_repo: 0 + description: null + id: 9 + includes_all_repositories: 0 lower_name: review_team name: review_team - authorize: 1 # read - num_repos: 1 num_members: 2 - includes_all_repositories: false - can_create_org_repo: false - -- + num_repos: 1 + org_id: 17 +- authorize: 1 + can_create_org_repo: 0 + description: null id: 10 - org_id: 25 + includes_all_repositories: 0 lower_name: notowners name: NotOwners - authorize: 1 # read - num_repos: 0 num_members: 1 - includes_all_repositories: false - can_create_org_repo: false - -- + num_repos: 0 + org_id: 25 +- authorize: 1 + can_create_org_repo: 0 + description: null id: 11 - org_id: 26 + includes_all_repositories: 0 lower_name: team11 name: team11 - authorize: 1 # read - num_repos: 0 num_members: 0 - includes_all_repositories: false - can_create_org_repo: false - -- + num_repos: 0 + org_id: 26 +- authorize: 3 + can_create_org_repo: 1 + description: null id: 12 - org_id: 3 + includes_all_repositories: 0 lower_name: team12creators name: team12Creators - authorize: 3 # admin - num_repos: 0 num_members: 1 - includes_all_repositories: false - can_create_org_repo: true - -- + num_repos: 0 + org_id: 3 +- authorize: 3 + can_create_org_repo: 0 + description: null id: 13 - org_id: 6 + includes_all_repositories: 0 lower_name: team13notcreators name: team13NotCreators - authorize: 3 # admin - num_repos: 0 num_members: 1 - includes_all_repositories: false - can_create_org_repo: false - -- + num_repos: 0 + org_id: 6 +- authorize: 2 + can_create_org_repo: 1 + description: null id: 14 - org_id: 3 + includes_all_repositories: 0 lower_name: teamcreaterepo name: teamCreateRepo - authorize: 2 # write - num_repos: 0 num_members: 1 - includes_all_repositories: false - can_create_org_repo: true - -- + num_repos: 0 + org_id: 3 +- authorize: 4 + can_create_org_repo: 1 + description: null id: 15 - org_id: 22 + includes_all_repositories: 0 lower_name: owners name: Owners - authorize: 4 # owner - num_repos: 0 num_members: 0 - includes_all_repositories: false - can_create_org_repo: true - -- + num_repos: 0 + org_id: 22 +- authorize: 4 + can_create_org_repo: 1 + description: null id: 16 - org_id: 23 + includes_all_repositories: 0 lower_name: owners name: Owners - authorize: 4 # owner - num_repos: 0 num_members: 0 - includes_all_repositories: false - can_create_org_repo: true - -- - id: 17 + num_repos: 0 org_id: 23 +- authorize: 2 + can_create_org_repo: 1 + description: null + id: 17 + includes_all_repositories: 0 lower_name: team14writeauth name: team14WriteAuth - authorize: 2 # write - num_repos: 0 num_members: 1 - includes_all_repositories: false - can_create_org_repo: true - -- + num_repos: 0 + org_id: 23 +- authorize: 4 + can_create_org_repo: 1 + description: null id: 18 - org_id: 35 + includes_all_repositories: 0 lower_name: owners name: Owners - authorize: 4 # owner - num_repos: 0 num_members: 1 - includes_all_repositories: false - can_create_org_repo: true - -- + num_repos: 0 + org_id: 35 +- authorize: 4 + can_create_org_repo: 1 + description: null id: 19 - org_id: 36 + includes_all_repositories: 0 lower_name: owners name: Owners - authorize: 4 # owner - num_repos: 0 num_members: 1 - includes_all_repositories: false - can_create_org_repo: true - -- - id: 20 + num_repos: 0 org_id: 36 +- authorize: 1 + can_create_org_repo: 1 + description: null + id: 20 + includes_all_repositories: 0 lower_name: team20writepackage name: team20writepackage - authorize: 1 - num_repos: 0 num_members: 1 - includes_all_repositories: false - can_create_org_repo: true + num_repos: 0 + org_id: 36 diff --git a/models/fixtures/team_repo.yml b/models/fixtures/team_repo.yml index a523a90b204d2..daea39bfb344e 100644 --- a/models/fixtures/team_repo.yml +++ b/models/fixtures/team_repo.yml @@ -1,65 +1,44 @@ -- - id: 1 +- id: 1 org_id: 3 - team_id: 1 repo_id: 3 - -- - id: 2 + team_id: 1 +- id: 2 org_id: 3 - team_id: 2 repo_id: 3 - -- - id: 3 + team_id: 2 +- id: 3 org_id: 3 - team_id: 1 repo_id: 5 - -- - id: 4 + team_id: 1 +- id: 4 org_id: 17 - team_id: 5 repo_id: 23 - -- - id: 5 - org_id: 17 team_id: 5 +- id: 5 + org_id: 17 repo_id: 24 - -- - id: 6 + team_id: 5 +- id: 6 org_id: 19 - team_id: 6 repo_id: 27 - -- - id: 7 - org_id: 19 team_id: 6 +- id: 7 + org_id: 19 repo_id: 28 - -- - id: 8 + team_id: 6 +- id: 8 org_id: 3 - team_id: 1 repo_id: 32 - -- - id: 9 + team_id: 1 +- id: 9 org_id: 3 - team_id: 7 repo_id: 32 - -- - id: 10 + team_id: 7 +- id: 10 org_id: 17 - team_id: 8 repo_id: 24 - -- - id: 11 + team_id: 8 +- id: 11 org_id: 17 + repo_id: 24 team_id: 9 - repo_id: 24 \ No newline at end of file diff --git a/models/fixtures/team_unit.yml b/models/fixtures/team_unit.yml index c5531aa57af52..1579062a668c6 100644 --- a/models/fixtures/team_unit.yml +++ b/models/fixtures/team_unit.yml @@ -1,288 +1,240 @@ -- +- access_mode: 4 id: 1 + org_id: null team_id: 1 type: 1 - access_mode: 4 - -- +- access_mode: 4 id: 2 + org_id: null team_id: 1 type: 2 - access_mode: 4 - -- +- access_mode: 4 id: 3 + org_id: null team_id: 1 type: 3 - access_mode: 4 - -- +- access_mode: 4 id: 4 + org_id: null team_id: 1 type: 4 - access_mode: 4 - -- +- access_mode: 4 id: 5 + org_id: null team_id: 1 type: 5 - access_mode: 4 - -- +- access_mode: 4 id: 6 + org_id: null team_id: 1 type: 6 - access_mode: 4 - -- +- access_mode: 4 id: 7 + org_id: null team_id: 1 type: 7 - access_mode: 4 - -- +- access_mode: 2 id: 8 + org_id: null team_id: 2 type: 1 - access_mode: 2 - -- +- access_mode: 2 id: 9 + org_id: null team_id: 2 type: 2 - access_mode: 2 - -- +- access_mode: 2 id: 10 + org_id: null team_id: 2 type: 3 - access_mode: 2 - -- +- access_mode: 2 id: 11 + org_id: null team_id: 2 type: 4 - access_mode: 2 - -- +- access_mode: 2 id: 12 + org_id: null team_id: 2 type: 5 - access_mode: 2 - -- +- access_mode: 2 id: 13 + org_id: null team_id: 2 type: 6 - access_mode: 2 - -- +- access_mode: 2 id: 14 + org_id: null team_id: 2 type: 7 - access_mode: 2 - -- +- access_mode: 4 id: 15 + org_id: null team_id: 3 type: 1 - access_mode: 4 - -- +- access_mode: 4 id: 16 + org_id: null team_id: 3 type: 2 - access_mode: 4 - -- +- access_mode: 4 id: 17 + org_id: null team_id: 3 type: 3 - access_mode: 4 - -- +- access_mode: 4 id: 18 + org_id: null team_id: 3 type: 4 - access_mode: 4 - -- +- access_mode: 4 id: 19 + org_id: null team_id: 3 type: 5 - access_mode: 4 - -- +- access_mode: 4 id: 20 + org_id: null team_id: 3 type: 6 - access_mode: 4 - -- +- access_mode: 4 id: 21 + org_id: null team_id: 3 type: 7 - access_mode: 4 - -- +- access_mode: 4 id: 22 + org_id: null team_id: 4 type: 1 - access_mode: 4 - -- +- access_mode: 4 id: 23 + org_id: null team_id: 4 type: 2 - access_mode: 4 - -- +- access_mode: 4 id: 24 + org_id: null team_id: 4 type: 3 - access_mode: 4 - -- +- access_mode: 4 id: 25 + org_id: null team_id: 4 type: 4 - access_mode: 4 - -- +- access_mode: 4 id: 26 + org_id: null team_id: 4 type: 5 - access_mode: 4 - -- +- access_mode: 4 id: 27 + org_id: null team_id: 4 type: 6 - access_mode: 4 - -- +- access_mode: 4 id: 28 + org_id: null team_id: 4 type: 7 - access_mode: 4 - -- +- access_mode: 4 id: 29 + org_id: null team_id: 5 type: 1 - access_mode: 4 - -- +- access_mode: 4 id: 30 + org_id: null team_id: 5 type: 2 - access_mode: 4 - -- +- access_mode: 4 id: 31 + org_id: null team_id: 5 type: 3 - access_mode: 4 - -- +- access_mode: 4 id: 32 + org_id: null team_id: 5 type: 4 - access_mode: 4 - -- +- access_mode: 4 id: 33 + org_id: null team_id: 5 type: 5 - access_mode: 4 - -- +- access_mode: 4 id: 34 + org_id: null team_id: 5 type: 6 - access_mode: 4 - -- +- access_mode: 4 id: 35 + org_id: null team_id: 5 type: 7 - access_mode: 4 - -- +- access_mode: 4 id: 36 + org_id: null team_id: 6 type: 1 - access_mode: 4 - -- +- access_mode: 4 id: 37 + org_id: null team_id: 6 type: 2 - access_mode: 4 - -- +- access_mode: 4 id: 38 + org_id: null team_id: 6 type: 3 - access_mode: 4 - -- +- access_mode: 4 id: 39 + org_id: null team_id: 6 type: 4 - access_mode: 4 - -- +- access_mode: 4 id: 40 + org_id: null team_id: 6 type: 5 - access_mode: 4 - -- +- access_mode: 4 id: 41 + org_id: null team_id: 6 type: 6 - access_mode: 4 - -- +- access_mode: 4 id: 42 + org_id: null team_id: 6 type: 7 - access_mode: 4 - -- +- access_mode: 2 id: 43 org_id: 3 team_id: 7 - type: 2 # issues - access_mode: 2 - -- + type: 2 +- access_mode: 2 id: 44 + org_id: null team_id: 8 - type: 2 # issues - access_mode: 2 - -- + type: 2 +- access_mode: 1 id: 45 + org_id: null team_id: 9 - type: 1 # code - access_mode: 1 - -- + type: 1 +- access_mode: 2 id: 46 + org_id: null team_id: 17 - type: 9 # package - access_mode: 2 - -- + type: 9 +- access_mode: 2 id: 47 + org_id: null team_id: 20 - type: 9 # package - access_mode: 2 - -- + type: 9 +- access_mode: 2 id: 48 + org_id: null team_id: 2 type: 8 - access_mode: 2 diff --git a/models/fixtures/team_user.yml b/models/fixtures/team_user.yml index feace5f2a531d..6caba4f2ffd23 100644 --- a/models/fixtures/team_user.yml +++ b/models/fixtures/team_user.yml @@ -1,125 +1,84 @@ -- - id: 1 +- id: 1 org_id: 3 team_id: 1 uid: 2 - -- - id: 2 +- id: 2 org_id: 3 team_id: 2 uid: 2 - -- - id: 3 +- id: 3 org_id: 3 team_id: 2 uid: 4 - -- - id: 4 +- id: 4 org_id: 6 team_id: 3 uid: 5 - -- - id: 5 +- id: 5 org_id: 7 team_id: 4 uid: 5 - -- - id: 6 +- id: 6 org_id: 17 team_id: 5 uid: 15 - -- - id: 7 +- id: 7 org_id: 17 team_id: 5 uid: 18 - -- - id: 8 +- id: 8 org_id: 19 team_id: 6 uid: 20 - -- - id: 9 +- id: 9 org_id: 3 team_id: 7 uid: 15 - -- - id: 10 +- id: 10 org_id: 17 team_id: 8 uid: 2 - -- - id: 11 +- id: 11 org_id: 17 team_id: 9 uid: 20 - -- - id: 12 +- id: 12 org_id: 25 team_id: 10 uid: 24 - -- - id: 13 +- id: 13 org_id: 3 team_id: 12 uid: 28 - -- - id: 14 +- id: 14 org_id: 6 team_id: 13 uid: 28 - -- - id: 15 +- id: 15 org_id: 17 team_id: 9 uid: 29 - -- - id: 16 +- id: 16 org_id: 19 team_id: 6 uid: 31 - -- - id: 17 +- id: 17 org_id: 3 team_id: 14 uid: 2 - -- - id: 18 +- id: 18 org_id: 23 team_id: 17 uid: 5 - -- - id: 19 +- id: 19 org_id: 35 team_id: 18 uid: 1 - -- - id: 20 +- id: 20 org_id: 36 team_id: 19 uid: 1 - -- - id: 21 +- id: 21 org_id: 36 team_id: 20 uid: 5 diff --git a/models/fixtures/topic.yml b/models/fixtures/topic.yml index 055addf510e20..462f7645377ac 100644 --- a/models/fixtures/topic.yml +++ b/models/fixtures/topic.yml @@ -1,29 +1,30 @@ -- +- created_unix: null id: 1 name: golang repo_count: 2 - -- + updated_unix: null +- created_unix: null id: 2 name: database repo_count: 1 - -- + updated_unix: null +- created_unix: null id: 3 name: SQL repo_count: 1 - -- + updated_unix: null +- created_unix: null id: 4 name: graphql repo_count: 1 - -- + updated_unix: null +- created_unix: null id: 5 name: topicname1 repo_count: 1 - -- + updated_unix: null +- created_unix: null id: 6 name: topicname2 repo_count: 2 + updated_unix: null diff --git a/models/fixtures/tracked_time.yml b/models/fixtures/tracked_time.yml index 768af38d9e20f..44d6efc12f19d 100644 --- a/models/fixtures/tracked_time.yml +++ b/models/fixtures/tracked_time.yml @@ -1,71 +1,54 @@ -- +- created_unix: 946684800 + deleted: 0 id: 1 - user_id: 1 issue_id: 1 time: 400 - created_unix: 946684800 - deleted: false - -- + user_id: 1 +- created_unix: 946684801 + deleted: 0 id: 2 - user_id: 2 issue_id: 2 time: 3661 - created_unix: 946684801 - deleted: false - -- - id: 3 user_id: 2 +- created_unix: 946684802 + deleted: 0 + id: 3 issue_id: 2 time: 1 - created_unix: 946684802 - deleted: false - -- + user_id: 2 +- created_unix: 946684803 + deleted: 0 id: 4 - user_id: -1 issue_id: 4 time: 1 - created_unix: 946684803 - deleted: false - -- + user_id: -1 +- created_unix: 946684804 + deleted: 0 id: 5 - user_id: 2 issue_id: 5 time: 1 - created_unix: 946684804 - deleted: false - -- + user_id: 2 +- created_unix: 946684812 + deleted: 0 id: 6 - user_id: 1 issue_id: 2 time: 20 - created_unix: 946684812 - deleted: false - -- + user_id: 1 +- created_unix: 946684813 + deleted: 0 id: 7 - user_id: 2 issue_id: 4 time: 3 - created_unix: 946684813 - deleted: false - -- + user_id: 2 +- created_unix: 947688814 + deleted: 0 id: 8 - user_id: 1 issue_id: 4 time: 71 - created_unix: 947688814 - deleted: false - -- + user_id: 1 +- created_unix: 947688815 + deleted: 1 id: 9 - user_id: 2 issue_id: 2 time: 100000 - created_unix: 947688815 - deleted: true + user_id: 2 diff --git a/models/fixtures/two_factor.yml b/models/fixtures/two_factor.yml index d8cb85274b687..b23db8f64f18a 100644 --- a/models/fixtures/two_factor.yml +++ b/models/fixtures/two_factor.yml @@ -1,9 +1,8 @@ -- +- created_unix: 1564253724 id: 1 - uid: 24 - secret: KlDporn6Ile4vFcKI8z7Z6sqK1Scj2Qp0ovtUzCZO6jVbRW2lAoT7UDxDPtrab8d2B9zKOocBRdBJnS8orsrUNrsyETY+jJHb79M82uZRioKbRUz15sfOpmJmEzkFeSg6S4LicUBQos= - scratch_salt: Qb5bq2DyR2 + last_used_passcode: null scratch_hash: 068eb9b8746e0bcfe332fac4457693df1bda55800eb0f6894d14ebb736ae6a24e0fc8fc5333c19f57f81599788f0b8e51ec1 - last_used_passcode: - created_unix: 1564253724 + scratch_salt: Qb5bq2DyR2 + secret: KlDporn6Ile4vFcKI8z7Z6sqK1Scj2Qp0ovtUzCZO6jVbRW2lAoT7UDxDPtrab8d2B9zKOocBRdBJnS8orsrUNrsyETY+jJHb79M82uZRioKbRUz15sfOpmJmEzkFeSg6S4LicUBQos= + uid: 24 updated_unix: 1564253724 diff --git a/models/fixtures/user.yml b/models/fixtures/user.yml index c7c5c024be89a..a006a90481bff 100644 --- a/models/fixtures/user.yml +++ b/models/fixtures/user.yml @@ -1,1334 +1,1656 @@ -# NOTE: all users should have a password of "password" - -- # NOTE: this user (id=1) is the admin - id: 1 - lower_name: user1 - name: user1 - full_name: User One +- allow_create_organization: 1 + allow_git_hook: 0 + allow_import_local: 0 + avatar: avatar1 + avatar_email: user1@example.com + created_unix: null + description: null + diff_view_style: "" email: user1@example.com - keep_email_private: false email_notifications_preference: enabled - passwd: ZogKvWdyEx:password - passwd_hash_algo: dummy - must_change_password: false - login_source: 0 + full_name: User One + id: 1 + is_active: 1 + is_admin: 1 + is_restricted: 0 + keep_activity_private: 0 + keep_email_private: 0 + language: null + last_login_unix: null + last_repo_visibility: null + location: null login_name: user1 - type: 0 - salt: ZogKvWdyEx + login_source: 0 + login_type: null + lower_name: user1 max_repo_creation: -1 - is_active: true - is_admin: true - is_restricted: false - allow_git_hook: false - allow_import_local: false - allow_create_organization: true - prohibit_login: false - avatar: avatar1 - avatar_email: user1@example.com - use_custom_avatar: false + must_change_password: 0 + name: user1 num_followers: 0 num_following: 0 - num_stars: 0 + num_members: 0 num_repos: 0 + num_stars: 0 num_teams: 0 - num_members: 0 - visibility: 0 - repo_admin_change_team_access: false - theme: "" - keep_activity_private: false - -- - id: 2 - lower_name: user2 - name: user2 - full_name: ' < Ur Tw >< ' - email: user2@example.com - keep_email_private: true - email_notifications_preference: enabled passwd: ZogKvWdyEx:password passwd_hash_algo: dummy - must_change_password: false - login_source: 0 - login_name: user2 - type: 0 + prohibit_login: 0 + rands: null + repo_admin_change_team_access: 0 salt: ZogKvWdyEx - max_repo_creation: -1 - is_active: true - is_admin: false - is_restricted: false - allow_git_hook: false - allow_import_local: false - allow_create_organization: true - prohibit_login: false + theme: "" + type: 0 + updated_unix: null + use_custom_avatar: 0 + visibility: 0 + website: null +- allow_create_organization: 1 + allow_git_hook: 0 + allow_import_local: 0 avatar: avatar2 avatar_email: user2@example.com - use_custom_avatar: false + created_unix: null + description: null + diff_view_style: "" + email: user2@example.com + email_notifications_preference: enabled + full_name: ' < Ur Tw >< ' + id: 2 + is_active: 1 + is_admin: 0 + is_restricted: 0 + keep_activity_private: 0 + keep_email_private: 1 + language: null + last_login_unix: null + last_repo_visibility: null + location: null + login_name: user2 + login_source: 0 + login_type: null + lower_name: user2 + max_repo_creation: -1 + must_change_password: 0 + name: user2 num_followers: 2 num_following: 1 - num_stars: 2 + num_members: 0 num_repos: 14 + num_stars: 2 num_teams: 0 - num_members: 0 - visibility: 0 - repo_admin_change_team_access: false - theme: "" - keep_activity_private: false - -- - id: 3 - lower_name: user3 - name: user3 - full_name: ' <<<< >> >> > >> > >>> >> ' - email: user3@example.com - keep_email_private: false - email_notifications_preference: onmention passwd: ZogKvWdyEx:password passwd_hash_algo: dummy - must_change_password: false - login_source: 0 - login_name: user3 - type: 1 + prohibit_login: 0 + rands: null + repo_admin_change_team_access: 0 salt: ZogKvWdyEx - max_repo_creation: -1 - is_active: false - is_admin: false - is_restricted: false - allow_git_hook: false - allow_import_local: false - allow_create_organization: true - prohibit_login: false + theme: "" + type: 0 + updated_unix: null + use_custom_avatar: 0 + visibility: 0 + website: null +- allow_create_organization: 1 + allow_git_hook: 0 + allow_import_local: 0 avatar: avatar3 avatar_email: user3@example.com - use_custom_avatar: false + created_unix: null + description: null + diff_view_style: "" + email: user3@example.com + email_notifications_preference: onmention + full_name: ' <<<< >> >> > >> > >>> >> ' + id: 3 + is_active: 0 + is_admin: 0 + is_restricted: 0 + keep_activity_private: 0 + keep_email_private: 0 + language: null + last_login_unix: null + last_repo_visibility: null + location: null + login_name: user3 + login_source: 0 + login_type: null + lower_name: user3 + max_repo_creation: -1 + must_change_password: 0 + name: user3 num_followers: 0 num_following: 0 - num_stars: 0 + num_members: 3 num_repos: 3 + num_stars: 0 num_teams: 5 - num_members: 3 - visibility: 0 - repo_admin_change_team_access: false - theme: "" - keep_activity_private: false - -- - id: 4 - lower_name: user4 - name: user4 - full_name: ' ' - email: user4@example.com - keep_email_private: false - email_notifications_preference: onmention passwd: ZogKvWdyEx:password passwd_hash_algo: dummy - must_change_password: false - login_source: 0 - login_name: user4 - type: 0 + prohibit_login: 0 + rands: null + repo_admin_change_team_access: 0 salt: ZogKvWdyEx - max_repo_creation: -1 - is_active: true - is_admin: false - is_restricted: false - allow_git_hook: false - allow_import_local: false - allow_create_organization: true - prohibit_login: false + theme: "" + type: 1 + updated_unix: null + use_custom_avatar: 0 + visibility: 0 + website: null +- allow_create_organization: 1 + allow_git_hook: 0 + allow_import_local: 0 avatar: avatar4 avatar_email: user4@example.com - use_custom_avatar: false + created_unix: null + description: null + diff_view_style: "" + email: user4@example.com + email_notifications_preference: onmention + full_name: ' ' + id: 4 + is_active: 1 + is_admin: 0 + is_restricted: 0 + keep_activity_private: 0 + keep_email_private: 0 + language: null + last_login_unix: null + last_repo_visibility: null + location: null + login_name: user4 + login_source: 0 + login_type: null + lower_name: user4 + max_repo_creation: -1 + must_change_password: 0 + name: user4 num_followers: 0 num_following: 1 - num_stars: 0 + num_members: 0 num_repos: 0 + num_stars: 0 num_teams: 0 - num_members: 0 - visibility: 0 - repo_admin_change_team_access: false - theme: "" - keep_activity_private: false - -- - id: 5 - lower_name: user5 - name: user5 - full_name: User Five - email: user5@example.com - keep_email_private: false - email_notifications_preference: enabled passwd: ZogKvWdyEx:password passwd_hash_algo: dummy - must_change_password: false - login_source: 0 - login_name: user5 - type: 0 + prohibit_login: 0 + rands: null + repo_admin_change_team_access: 0 salt: ZogKvWdyEx - max_repo_creation: -1 - is_active: true - is_admin: false - is_restricted: false - allow_git_hook: false - allow_import_local: false - allow_create_organization: false - prohibit_login: false + theme: "" + type: 0 + updated_unix: null + use_custom_avatar: 0 + visibility: 0 + website: null +- allow_create_organization: 0 + allow_git_hook: 0 + allow_import_local: 0 avatar: avatar5 avatar_email: user5@example.com - use_custom_avatar: false + created_unix: null + description: null + diff_view_style: "" + email: user5@example.com + email_notifications_preference: enabled + full_name: User Five + id: 5 + is_active: 1 + is_admin: 0 + is_restricted: 0 + keep_activity_private: 0 + keep_email_private: 0 + language: null + last_login_unix: null + last_repo_visibility: null + location: null + login_name: user5 + login_source: 0 + login_type: null + lower_name: user5 + max_repo_creation: -1 + must_change_password: 0 + name: user5 num_followers: 0 num_following: 0 - num_stars: 0 + num_members: 0 num_repos: 1 + num_stars: 0 num_teams: 0 - num_members: 0 - visibility: 0 - repo_admin_change_team_access: false - theme: "" - keep_activity_private: false - -- - id: 6 - lower_name: user6 - name: user6 - full_name: User Six - email: user6@example.com - keep_email_private: false - email_notifications_preference: enabled passwd: ZogKvWdyEx:password passwd_hash_algo: dummy - must_change_password: false - login_source: 0 - login_name: user6 - type: 1 + prohibit_login: 0 + rands: null + repo_admin_change_team_access: 0 salt: ZogKvWdyEx - max_repo_creation: -1 - is_active: false - is_admin: false - is_restricted: false - allow_git_hook: false - allow_import_local: false - allow_create_organization: true - prohibit_login: false + theme: "" + type: 0 + updated_unix: null + use_custom_avatar: 0 + visibility: 0 + website: null +- allow_create_organization: 1 + allow_git_hook: 0 + allow_import_local: 0 avatar: avatar6 avatar_email: user6@example.com - use_custom_avatar: false + created_unix: null + description: null + diff_view_style: "" + email: user6@example.com + email_notifications_preference: enabled + full_name: User Six + id: 6 + is_active: 0 + is_admin: 0 + is_restricted: 0 + keep_activity_private: 0 + keep_email_private: 0 + language: null + last_login_unix: null + last_repo_visibility: null + location: null + login_name: user6 + login_source: 0 + login_type: null + lower_name: user6 + max_repo_creation: -1 + must_change_password: 0 + name: user6 num_followers: 0 num_following: 0 - num_stars: 0 + num_members: 2 num_repos: 0 + num_stars: 0 num_teams: 2 - num_members: 2 - visibility: 0 - repo_admin_change_team_access: false - theme: "" - keep_activity_private: false - -- - id: 7 - lower_name: user7 - name: user7 - full_name: User Seven - email: user7@example.com - keep_email_private: false - email_notifications_preference: disabled passwd: ZogKvWdyEx:password passwd_hash_algo: dummy - must_change_password: false - login_source: 0 - login_name: user7 - type: 1 + prohibit_login: 0 + rands: null + repo_admin_change_team_access: 0 salt: ZogKvWdyEx - max_repo_creation: -1 - is_active: false - is_admin: false - is_restricted: false - allow_git_hook: false - allow_import_local: false - allow_create_organization: true - prohibit_login: false + theme: "" + type: 1 + updated_unix: null + use_custom_avatar: 0 + visibility: 0 + website: null +- allow_create_organization: 1 + allow_git_hook: 0 + allow_import_local: 0 avatar: avatar7 avatar_email: user7@example.com - use_custom_avatar: false + created_unix: null + description: null + diff_view_style: "" + email: user7@example.com + email_notifications_preference: disabled + full_name: User Seven + id: 7 + is_active: 0 + is_admin: 0 + is_restricted: 0 + keep_activity_private: 0 + keep_email_private: 0 + language: null + last_login_unix: null + last_repo_visibility: null + location: null + login_name: user7 + login_source: 0 + login_type: null + lower_name: user7 + max_repo_creation: -1 + must_change_password: 0 + name: user7 num_followers: 0 num_following: 0 - num_stars: 0 + num_members: 1 num_repos: 0 + num_stars: 0 num_teams: 1 - num_members: 1 - visibility: 0 - repo_admin_change_team_access: false - theme: "" - keep_activity_private: false - -- - id: 8 - lower_name: user8 - name: user8 - full_name: User Eight - email: user8@example.com - keep_email_private: false - email_notifications_preference: enabled passwd: ZogKvWdyEx:password passwd_hash_algo: dummy - must_change_password: false - login_source: 0 - login_name: user8 - type: 0 + prohibit_login: 0 + rands: null + repo_admin_change_team_access: 0 salt: ZogKvWdyEx - max_repo_creation: -1 - is_active: true - is_admin: false - is_restricted: false - allow_git_hook: false - allow_import_local: false - allow_create_organization: true - prohibit_login: false + theme: "" + type: 1 + updated_unix: null + use_custom_avatar: 0 + visibility: 0 + website: null +- allow_create_organization: 1 + allow_git_hook: 0 + allow_import_local: 0 avatar: avatar8 avatar_email: user8@example.com - use_custom_avatar: false + created_unix: null + description: null + diff_view_style: "" + email: user8@example.com + email_notifications_preference: enabled + full_name: User Eight + id: 8 + is_active: 1 + is_admin: 0 + is_restricted: 0 + keep_activity_private: 0 + keep_email_private: 0 + language: null + last_login_unix: null + last_repo_visibility: null + location: null + login_name: user8 + login_source: 0 + login_type: null + lower_name: user8 + max_repo_creation: -1 + must_change_password: 0 + name: user8 num_followers: 1 num_following: 1 - num_stars: 0 + num_members: 0 num_repos: 0 + num_stars: 0 num_teams: 0 - num_members: 0 - visibility: 0 - repo_admin_change_team_access: false - theme: "" - keep_activity_private: false - -- - id: 9 - lower_name: user9 - name: user9 - full_name: User Nine - email: user9@example.com - keep_email_private: false - email_notifications_preference: onmention passwd: ZogKvWdyEx:password passwd_hash_algo: dummy - must_change_password: false - login_source: 0 - login_name: user9 - type: 0 + prohibit_login: 0 + rands: null + repo_admin_change_team_access: 0 salt: ZogKvWdyEx - max_repo_creation: -1 - is_active: false - is_admin: false - is_restricted: false - allow_git_hook: false - allow_import_local: false - allow_create_organization: true - prohibit_login: false + theme: "" + type: 0 + updated_unix: null + use_custom_avatar: 0 + visibility: 0 + website: null +- allow_create_organization: 1 + allow_git_hook: 0 + allow_import_local: 0 avatar: avatar9 avatar_email: user9@example.com - use_custom_avatar: false + created_unix: null + description: null + diff_view_style: "" + email: user9@example.com + email_notifications_preference: onmention + full_name: User Nine + id: 9 + is_active: 0 + is_admin: 0 + is_restricted: 0 + keep_activity_private: 0 + keep_email_private: 0 + language: null + last_login_unix: null + last_repo_visibility: null + location: null + login_name: user9 + login_source: 0 + login_type: null + lower_name: user9 + max_repo_creation: -1 + must_change_password: 0 + name: user9 num_followers: 0 num_following: 0 - num_stars: 0 + num_members: 0 num_repos: 0 + num_stars: 0 num_teams: 0 - num_members: 0 - visibility: 0 - repo_admin_change_team_access: false - theme: "" - keep_activity_private: false - -- - id: 10 - lower_name: user10 - name: user10 - full_name: User Ten - email: user10@example.com - keep_email_private: false - email_notifications_preference: enabled passwd: ZogKvWdyEx:password passwd_hash_algo: dummy - must_change_password: false - login_source: 0 - login_name: user10 - type: 0 + prohibit_login: 0 + rands: null + repo_admin_change_team_access: 0 salt: ZogKvWdyEx - max_repo_creation: -1 - is_active: true - is_admin: false - is_restricted: false - allow_git_hook: false - allow_import_local: false - allow_create_organization: true - prohibit_login: false + theme: "" + type: 0 + updated_unix: null + use_custom_avatar: 0 + visibility: 0 + website: null +- allow_create_organization: 1 + allow_git_hook: 0 + allow_import_local: 0 avatar: avatar10 avatar_email: user10@example.com - use_custom_avatar: false + created_unix: null + description: null + diff_view_style: "" + email: user10@example.com + email_notifications_preference: enabled + full_name: User Ten + id: 10 + is_active: 1 + is_admin: 0 + is_restricted: 0 + keep_activity_private: 0 + keep_email_private: 0 + language: null + last_login_unix: null + last_repo_visibility: null + location: null + login_name: user10 + login_source: 0 + login_type: null + lower_name: user10 + max_repo_creation: -1 + must_change_password: 0 + name: user10 num_followers: 0 num_following: 0 - num_stars: 0 + num_members: 0 num_repos: 3 + num_stars: 0 num_teams: 0 - num_members: 0 - visibility: 0 - repo_admin_change_team_access: false - theme: "" - keep_activity_private: false - -- - id: 11 - lower_name: user11 - name: user11 - full_name: User Eleven - email: user11@example.com - keep_email_private: false - email_notifications_preference: enabled passwd: ZogKvWdyEx:password passwd_hash_algo: dummy - must_change_password: false - login_source: 0 - login_name: user11 - type: 0 + prohibit_login: 0 + rands: null + repo_admin_change_team_access: 0 salt: ZogKvWdyEx - max_repo_creation: -1 - is_active: true - is_admin: false - is_restricted: false - allow_git_hook: false - allow_import_local: false - allow_create_organization: true - prohibit_login: false + theme: "" + type: 0 + updated_unix: null + use_custom_avatar: 0 + visibility: 0 + website: null +- allow_create_organization: 1 + allow_git_hook: 0 + allow_import_local: 0 avatar: avatar11 avatar_email: user11@example.com - use_custom_avatar: false + created_unix: null + description: null + diff_view_style: "" + email: user11@example.com + email_notifications_preference: enabled + full_name: User Eleven + id: 11 + is_active: 1 + is_admin: 0 + is_restricted: 0 + keep_activity_private: 0 + keep_email_private: 0 + language: null + last_login_unix: null + last_repo_visibility: null + location: null + login_name: user11 + login_source: 0 + login_type: null + lower_name: user11 + max_repo_creation: -1 + must_change_password: 0 + name: user11 num_followers: 0 num_following: 0 - num_stars: 0 + num_members: 0 num_repos: 1 + num_stars: 0 num_teams: 0 - num_members: 0 - visibility: 0 - repo_admin_change_team_access: false - theme: "" - keep_activity_private: false - -- - id: 12 - lower_name: user12 - name: user12 - full_name: User 12 - email: user12@example.com - keep_email_private: false - email_notifications_preference: enabled passwd: ZogKvWdyEx:password passwd_hash_algo: dummy - must_change_password: false - login_source: 0 - login_name: user12 - type: 0 + prohibit_login: 0 + rands: null + repo_admin_change_team_access: 0 salt: ZogKvWdyEx - max_repo_creation: -1 - is_active: true - is_admin: false - is_restricted: false - allow_git_hook: false - allow_import_local: false - allow_create_organization: true - prohibit_login: false + theme: "" + type: 0 + updated_unix: null + use_custom_avatar: 0 + visibility: 0 + website: null +- allow_create_organization: 1 + allow_git_hook: 0 + allow_import_local: 0 avatar: avatar12 avatar_email: user12@example.com - use_custom_avatar: false + created_unix: null + description: null + diff_view_style: "" + email: user12@example.com + email_notifications_preference: enabled + full_name: User 12 + id: 12 + is_active: 1 + is_admin: 0 + is_restricted: 0 + keep_activity_private: 0 + keep_email_private: 0 + language: null + last_login_unix: null + last_repo_visibility: null + location: null + login_name: user12 + login_source: 0 + login_type: null + lower_name: user12 + max_repo_creation: -1 + must_change_password: 0 + name: user12 num_followers: 0 num_following: 0 - num_stars: 0 + num_members: 0 num_repos: 1 + num_stars: 0 num_teams: 0 - num_members: 0 - visibility: 0 - repo_admin_change_team_access: false - theme: "" - keep_activity_private: false - -- - id: 13 - lower_name: user13 - name: user13 - full_name: User 13 - email: user13@example.com - keep_email_private: false - email_notifications_preference: enabled passwd: ZogKvWdyEx:password passwd_hash_algo: dummy - must_change_password: false - login_source: 0 - login_name: user13 - type: 0 + prohibit_login: 0 + rands: null + repo_admin_change_team_access: 0 salt: ZogKvWdyEx - max_repo_creation: -1 - is_active: true - is_admin: false - is_restricted: false - allow_git_hook: false - allow_import_local: false - allow_create_organization: true - prohibit_login: false + theme: "" + type: 0 + updated_unix: null + use_custom_avatar: 0 + visibility: 0 + website: null +- allow_create_organization: 1 + allow_git_hook: 0 + allow_import_local: 0 avatar: avatar13 avatar_email: user13@example.com - use_custom_avatar: false + created_unix: null + description: null + diff_view_style: "" + email: user13@example.com + email_notifications_preference: enabled + full_name: User 13 + id: 13 + is_active: 1 + is_admin: 0 + is_restricted: 0 + keep_activity_private: 0 + keep_email_private: 0 + language: null + last_login_unix: null + last_repo_visibility: null + location: null + login_name: user13 + login_source: 0 + login_type: null + lower_name: user13 + max_repo_creation: -1 + must_change_password: 0 + name: user13 num_followers: 0 num_following: 0 - num_stars: 0 + num_members: 0 num_repos: 1 + num_stars: 0 num_teams: 0 - num_members: 0 - visibility: 0 - repo_admin_change_team_access: false - theme: "" - keep_activity_private: false - -- - id: 14 - lower_name: user14 - name: user14 - full_name: User 14 - email: user14@example.com - keep_email_private: false - email_notifications_preference: enabled passwd: ZogKvWdyEx:password passwd_hash_algo: dummy - must_change_password: false - login_source: 0 - login_name: user14 - type: 0 + prohibit_login: 0 + rands: null + repo_admin_change_team_access: 0 salt: ZogKvWdyEx - max_repo_creation: -1 - is_active: true - is_admin: false - is_restricted: false - allow_git_hook: false - allow_import_local: false - allow_create_organization: true - prohibit_login: false + theme: "" + type: 0 + updated_unix: null + use_custom_avatar: 0 + visibility: 0 + website: null +- allow_create_organization: 1 + allow_git_hook: 0 + allow_import_local: 0 avatar: avatar14 avatar_email: user13@example.com - use_custom_avatar: false + created_unix: null + description: null + diff_view_style: "" + email: user14@example.com + email_notifications_preference: enabled + full_name: User 14 + id: 14 + is_active: 1 + is_admin: 0 + is_restricted: 0 + keep_activity_private: 0 + keep_email_private: 0 + language: null + last_login_unix: null + last_repo_visibility: null + location: null + login_name: user14 + login_source: 0 + login_type: null + lower_name: user14 + max_repo_creation: -1 + must_change_password: 0 + name: user14 num_followers: 0 num_following: 0 - num_stars: 0 + num_members: 0 num_repos: 3 + num_stars: 0 num_teams: 0 - num_members: 0 - visibility: 0 - repo_admin_change_team_access: false - theme: "" - keep_activity_private: false - -- - id: 15 - lower_name: user15 - name: user15 - full_name: User 15 - email: user15@example.com - keep_email_private: false - email_notifications_preference: enabled passwd: ZogKvWdyEx:password passwd_hash_algo: dummy - must_change_password: false - login_source: 0 - login_name: user15 - type: 0 + prohibit_login: 0 + rands: null + repo_admin_change_team_access: 0 salt: ZogKvWdyEx - max_repo_creation: -1 - is_active: true - is_admin: false - is_restricted: false - allow_git_hook: false - allow_import_local: false - allow_create_organization: true - prohibit_login: false + theme: "" + type: 0 + updated_unix: null + use_custom_avatar: 0 + visibility: 0 + website: null +- allow_create_organization: 1 + allow_git_hook: 0 + allow_import_local: 0 avatar: avatar15 avatar_email: user15@example.com - use_custom_avatar: false + created_unix: null + description: null + diff_view_style: "" + email: user15@example.com + email_notifications_preference: enabled + full_name: User 15 + id: 15 + is_active: 1 + is_admin: 0 + is_restricted: 0 + keep_activity_private: 0 + keep_email_private: 0 + language: null + last_login_unix: null + last_repo_visibility: null + location: null + login_name: user15 + login_source: 0 + login_type: null + lower_name: user15 + max_repo_creation: -1 + must_change_password: 0 + name: user15 num_followers: 0 num_following: 0 - num_stars: 0 + num_members: 0 num_repos: 4 + num_stars: 0 num_teams: 0 - num_members: 0 - visibility: 0 - repo_admin_change_team_access: false - theme: "" - keep_activity_private: false - -- - id: 16 - lower_name: user16 - name: user16 - full_name: User 16 - email: user16@example.com - keep_email_private: false - email_notifications_preference: enabled passwd: ZogKvWdyEx:password passwd_hash_algo: dummy - must_change_password: false - login_source: 0 - login_name: user16 - type: 0 + prohibit_login: 0 + rands: null + repo_admin_change_team_access: 0 salt: ZogKvWdyEx - max_repo_creation: -1 - is_active: true - is_admin: false - is_restricted: false - allow_git_hook: false - allow_import_local: false - allow_create_organization: true - prohibit_login: false + theme: "" + type: 0 + updated_unix: null + use_custom_avatar: 0 + visibility: 0 + website: null +- allow_create_organization: 1 + allow_git_hook: 0 + allow_import_local: 0 avatar: avatar16 avatar_email: user16@example.com - use_custom_avatar: false + created_unix: null + description: null + diff_view_style: "" + email: user16@example.com + email_notifications_preference: enabled + full_name: User 16 + id: 16 + is_active: 1 + is_admin: 0 + is_restricted: 0 + keep_activity_private: 0 + keep_email_private: 0 + language: null + last_login_unix: null + last_repo_visibility: null + location: null + login_name: user16 + login_source: 0 + login_type: null + lower_name: user16 + max_repo_creation: -1 + must_change_password: 0 + name: user16 num_followers: 0 num_following: 0 - num_stars: 0 + num_members: 0 num_repos: 2 + num_stars: 0 num_teams: 0 - num_members: 0 - visibility: 0 - repo_admin_change_team_access: false - theme: "" - keep_activity_private: false - -- - id: 17 - lower_name: user17 - name: user17 - full_name: User 17 - email: user17@example.com - keep_email_private: false - email_notifications_preference: enabled passwd: ZogKvWdyEx:password passwd_hash_algo: dummy - must_change_password: false - login_source: 0 - login_name: user17 - type: 1 + prohibit_login: 0 + rands: null + repo_admin_change_team_access: 0 salt: ZogKvWdyEx - max_repo_creation: -1 - is_active: true - is_admin: false - is_restricted: false - allow_git_hook: false - allow_import_local: false - allow_create_organization: true - prohibit_login: false + theme: "" + type: 0 + updated_unix: null + use_custom_avatar: 0 + visibility: 0 + website: null +- allow_create_organization: 1 + allow_git_hook: 0 + allow_import_local: 0 avatar: avatar17 avatar_email: user17@example.com - use_custom_avatar: false + created_unix: null + description: null + diff_view_style: "" + email: user17@example.com + email_notifications_preference: enabled + full_name: User 17 + id: 17 + is_active: 1 + is_admin: 0 + is_restricted: 0 + keep_activity_private: 0 + keep_email_private: 0 + language: null + last_login_unix: null + last_repo_visibility: null + location: null + login_name: user17 + login_source: 0 + login_type: null + lower_name: user17 + max_repo_creation: -1 + must_change_password: 0 + name: user17 num_followers: 0 num_following: 0 - num_stars: 0 + num_members: 4 num_repos: 2 + num_stars: 0 num_teams: 3 - num_members: 4 - visibility: 0 - repo_admin_change_team_access: false - theme: "" - keep_activity_private: false - -- - id: 18 - lower_name: user18 - name: user18 - full_name: User 18 - email: user18@example.com - keep_email_private: false - email_notifications_preference: enabled passwd: ZogKvWdyEx:password passwd_hash_algo: dummy - must_change_password: false - login_source: 0 - login_name: user18 - type: 0 + prohibit_login: 0 + rands: null + repo_admin_change_team_access: 0 salt: ZogKvWdyEx - max_repo_creation: -1 - is_active: true - is_admin: false - is_restricted: false - allow_git_hook: false - allow_import_local: false - allow_create_organization: true - prohibit_login: false + theme: "" + type: 1 + updated_unix: null + use_custom_avatar: 0 + visibility: 0 + website: null +- allow_create_organization: 1 + allow_git_hook: 0 + allow_import_local: 0 avatar: avatar18 avatar_email: user18@example.com - use_custom_avatar: false + created_unix: null + description: null + diff_view_style: "" + email: user18@example.com + email_notifications_preference: enabled + full_name: User 18 + id: 18 + is_active: 1 + is_admin: 0 + is_restricted: 0 + keep_activity_private: 0 + keep_email_private: 0 + language: null + last_login_unix: null + last_repo_visibility: null + location: null + login_name: user18 + login_source: 0 + login_type: null + lower_name: user18 + max_repo_creation: -1 + must_change_password: 0 + name: user18 num_followers: 0 num_following: 0 - num_stars: 0 + num_members: 0 num_repos: 0 + num_stars: 0 num_teams: 0 - num_members: 0 - visibility: 0 - repo_admin_change_team_access: false - theme: "" - keep_activity_private: false - -- - id: 19 - lower_name: user19 - name: user19 - full_name: User 19 - email: user19@example.com - keep_email_private: false - email_notifications_preference: enabled passwd: ZogKvWdyEx:password passwd_hash_algo: dummy - must_change_password: false - login_source: 0 - login_name: user19 - type: 1 + prohibit_login: 0 + rands: null + repo_admin_change_team_access: 0 salt: ZogKvWdyEx - max_repo_creation: -1 - is_active: true - is_admin: false - is_restricted: false - allow_git_hook: false - allow_import_local: false - allow_create_organization: true - prohibit_login: false + theme: "" + type: 0 + updated_unix: null + use_custom_avatar: 0 + visibility: 0 + website: null +- allow_create_organization: 1 + allow_git_hook: 0 + allow_import_local: 0 avatar: avatar19 avatar_email: user19@example.com - use_custom_avatar: false + created_unix: null + description: null + diff_view_style: "" + email: user19@example.com + email_notifications_preference: enabled + full_name: User 19 + id: 19 + is_active: 1 + is_admin: 0 + is_restricted: 0 + keep_activity_private: 0 + keep_email_private: 0 + language: null + last_login_unix: null + last_repo_visibility: null + location: null + login_name: user19 + login_source: 0 + login_type: null + lower_name: user19 + max_repo_creation: -1 + must_change_password: 0 + name: user19 num_followers: 0 num_following: 0 - num_stars: 0 + num_members: 2 num_repos: 2 + num_stars: 0 num_teams: 1 - num_members: 2 - visibility: 0 - repo_admin_change_team_access: false - theme: "" - keep_activity_private: false - -- - id: 20 - lower_name: user20 - name: user20 - full_name: User 20 - email: user20@example.com - keep_email_private: false - email_notifications_preference: enabled passwd: ZogKvWdyEx:password passwd_hash_algo: dummy - must_change_password: false - login_source: 0 - login_name: user20 - type: 0 + prohibit_login: 0 + rands: null + repo_admin_change_team_access: 0 salt: ZogKvWdyEx - max_repo_creation: -1 - is_active: true - is_admin: false - is_restricted: false - allow_git_hook: false - allow_import_local: false - allow_create_organization: true - prohibit_login: false + theme: "" + type: 1 + updated_unix: null + use_custom_avatar: 0 + visibility: 0 + website: null +- allow_create_organization: 1 + allow_git_hook: 0 + allow_import_local: 0 avatar: avatar20 avatar_email: user20@example.com - use_custom_avatar: false + created_unix: null + description: null + diff_view_style: "" + email: user20@example.com + email_notifications_preference: enabled + full_name: User 20 + id: 20 + is_active: 1 + is_admin: 0 + is_restricted: 0 + keep_activity_private: 0 + keep_email_private: 0 + language: null + last_login_unix: null + last_repo_visibility: null + location: null + login_name: user20 + login_source: 0 + login_type: null + lower_name: user20 + max_repo_creation: -1 + must_change_password: 0 + name: user20 num_followers: 0 num_following: 0 - num_stars: 0 + num_members: 0 num_repos: 4 + num_stars: 0 num_teams: 0 - num_members: 0 - visibility: 0 - repo_admin_change_team_access: false - theme: "" - keep_activity_private: false - -- - id: 21 - lower_name: user21 - name: user21 - full_name: User 21 - email: user21@example.com - keep_email_private: false - email_notifications_preference: enabled passwd: ZogKvWdyEx:password passwd_hash_algo: dummy - must_change_password: false - login_source: 0 - login_name: user21 - type: 0 + prohibit_login: 0 + rands: null + repo_admin_change_team_access: 0 salt: ZogKvWdyEx - max_repo_creation: -1 - is_active: true - is_admin: false - is_restricted: false - allow_git_hook: false - allow_import_local: false - allow_create_organization: true - prohibit_login: false + theme: "" + type: 0 + updated_unix: null + use_custom_avatar: 0 + visibility: 0 + website: null +- allow_create_organization: 1 + allow_git_hook: 0 + allow_import_local: 0 avatar: avatar21 avatar_email: user21@example.com - use_custom_avatar: false + created_unix: null + description: null + diff_view_style: "" + email: user21@example.com + email_notifications_preference: enabled + full_name: User 21 + id: 21 + is_active: 1 + is_admin: 0 + is_restricted: 0 + keep_activity_private: 0 + keep_email_private: 0 + language: null + last_login_unix: null + last_repo_visibility: null + location: null + login_name: user21 + login_source: 0 + login_type: null + lower_name: user21 + max_repo_creation: -1 + must_change_password: 0 + name: user21 num_followers: 0 num_following: 0 - num_stars: 0 + num_members: 0 num_repos: 2 + num_stars: 0 num_teams: 0 - num_members: 0 - visibility: 0 - repo_admin_change_team_access: false - theme: "" - keep_activity_private: false - -- - id: 22 - lower_name: limited_org - name: limited_org - full_name: Limited Org - email: limited_org@example.com - keep_email_private: false - email_notifications_preference: enabled passwd: ZogKvWdyEx:password passwd_hash_algo: dummy - must_change_password: false - login_source: 0 - login_name: limited_org - type: 1 + prohibit_login: 0 + rands: null + repo_admin_change_team_access: 0 salt: ZogKvWdyEx - max_repo_creation: -1 - is_active: true - is_admin: false - is_restricted: false - allow_git_hook: false - allow_import_local: false - allow_create_organization: true - prohibit_login: false + theme: "" + type: 0 + updated_unix: null + use_custom_avatar: 0 + visibility: 0 + website: null +- allow_create_organization: 1 + allow_git_hook: 0 + allow_import_local: 0 avatar: avatar22 avatar_email: limited_org@example.com - use_custom_avatar: false + created_unix: null + description: null + diff_view_style: "" + email: limited_org@example.com + email_notifications_preference: enabled + full_name: Limited Org + id: 22 + is_active: 1 + is_admin: 0 + is_restricted: 0 + keep_activity_private: 0 + keep_email_private: 0 + language: null + last_login_unix: null + last_repo_visibility: null + location: null + login_name: limited_org + login_source: 0 + login_type: null + lower_name: limited_org + max_repo_creation: -1 + must_change_password: 0 + name: limited_org num_followers: 0 num_following: 0 - num_stars: 0 + num_members: 0 num_repos: 2 + num_stars: 0 num_teams: 1 - num_members: 0 - visibility: 1 - repo_admin_change_team_access: false - theme: "" - keep_activity_private: false - -- - id: 23 - lower_name: privated_org - name: privated_org - full_name: Privated Org - email: privated_org@example.com - keep_email_private: false - email_notifications_preference: enabled passwd: ZogKvWdyEx:password passwd_hash_algo: dummy - must_change_password: false - login_source: 0 - login_name: privated_org - type: 1 + prohibit_login: 0 + rands: null + repo_admin_change_team_access: 0 salt: ZogKvWdyEx - max_repo_creation: -1 - is_active: true - is_admin: false - is_restricted: false - allow_git_hook: false - allow_import_local: false - allow_create_organization: true - prohibit_login: false + theme: "" + type: 1 + updated_unix: null + use_custom_avatar: 0 + visibility: 1 + website: null +- allow_create_organization: 1 + allow_git_hook: 0 + allow_import_local: 0 avatar: avatar23 avatar_email: privated_org@example.com - use_custom_avatar: false + created_unix: null + description: null + diff_view_style: "" + email: privated_org@example.com + email_notifications_preference: enabled + full_name: Privated Org + id: 23 + is_active: 1 + is_admin: 0 + is_restricted: 0 + keep_activity_private: 0 + keep_email_private: 0 + language: null + last_login_unix: null + last_repo_visibility: null + location: null + login_name: privated_org + login_source: 0 + login_type: null + lower_name: privated_org + max_repo_creation: -1 + must_change_password: 0 + name: privated_org num_followers: 0 num_following: 0 - num_stars: 0 + num_members: 1 num_repos: 2 + num_stars: 0 num_teams: 2 - num_members: 1 - visibility: 2 - repo_admin_change_team_access: false - theme: "" - keep_activity_private: false - -- - id: 24 - lower_name: user24 - name: user24 - full_name: user24 - email: user24@example.com - keep_email_private: true - email_notifications_preference: enabled passwd: ZogKvWdyEx:password passwd_hash_algo: dummy - must_change_password: false - login_source: 0 - login_name: user24 - type: 0 + prohibit_login: 0 + rands: null + repo_admin_change_team_access: 0 salt: ZogKvWdyEx - max_repo_creation: -1 - is_active: true - is_admin: false - is_restricted: false - allow_git_hook: false - allow_import_local: false - allow_create_organization: true - prohibit_login: false + theme: "" + type: 1 + updated_unix: null + use_custom_avatar: 0 + visibility: 2 + website: null +- allow_create_organization: 1 + allow_git_hook: 0 + allow_import_local: 0 avatar: avatar24 avatar_email: user24@example.com - use_custom_avatar: false + created_unix: null + description: null + diff_view_style: "" + email: user24@example.com + email_notifications_preference: enabled + full_name: user24 + id: 24 + is_active: 1 + is_admin: 0 + is_restricted: 0 + keep_activity_private: 0 + keep_email_private: 1 + language: null + last_login_unix: null + last_repo_visibility: null + location: null + login_name: user24 + login_source: 0 + login_type: null + lower_name: user24 + max_repo_creation: -1 + must_change_password: 0 + name: user24 num_followers: 0 num_following: 0 - num_stars: 0 + num_members: 0 num_repos: 0 + num_stars: 0 num_teams: 0 - num_members: 0 - visibility: 0 - repo_admin_change_team_access: false - theme: "" - keep_activity_private: false - -- - id: 25 - lower_name: org25 - name: org25 - full_name: org25 - email: org25@example.com - keep_email_private: false - email_notifications_preference: enabled passwd: ZogKvWdyEx:password passwd_hash_algo: dummy - must_change_password: false - login_source: 0 - login_name: org25 - type: 1 + prohibit_login: 0 + rands: null + repo_admin_change_team_access: 0 salt: ZogKvWdyEx - max_repo_creation: -1 - is_active: false - is_admin: false - is_restricted: false - allow_git_hook: false - allow_import_local: false - allow_create_organization: true - prohibit_login: false + theme: "" + type: 0 + updated_unix: null + use_custom_avatar: 0 + visibility: 0 + website: null +- allow_create_organization: 1 + allow_git_hook: 0 + allow_import_local: 0 avatar: avatar25 avatar_email: org25@example.com - use_custom_avatar: false + created_unix: null + description: null + diff_view_style: "" + email: org25@example.com + email_notifications_preference: enabled + full_name: org25 + id: 25 + is_active: 0 + is_admin: 0 + is_restricted: 0 + keep_activity_private: 0 + keep_email_private: 0 + language: null + last_login_unix: null + last_repo_visibility: null + location: null + login_name: org25 + login_source: 0 + login_type: null + lower_name: org25 + max_repo_creation: -1 + must_change_password: 0 + name: org25 num_followers: 0 num_following: 0 - num_stars: 0 + num_members: 1 num_repos: 0 + num_stars: 0 num_teams: 1 - num_members: 1 - visibility: 0 - repo_admin_change_team_access: false - theme: "" - keep_activity_private: false - -- - id: 26 - lower_name: org26 - name: org26 - full_name: Org26 - email: org26@example.com - keep_email_private: false - email_notifications_preference: onmention passwd: ZogKvWdyEx:password passwd_hash_algo: dummy - must_change_password: false - login_source: 0 - login_name: org26 - type: 1 + prohibit_login: 0 + rands: null + repo_admin_change_team_access: 0 salt: ZogKvWdyEx - max_repo_creation: -1 - is_active: false - is_admin: false - is_restricted: false - allow_git_hook: false - allow_import_local: false - allow_create_organization: true - prohibit_login: false + theme: "" + type: 1 + updated_unix: null + use_custom_avatar: 0 + visibility: 0 + website: null +- allow_create_organization: 1 + allow_git_hook: 0 + allow_import_local: 0 avatar: avatar26 avatar_email: org26@example.com - use_custom_avatar: false + created_unix: null + description: null + diff_view_style: "" + email: org26@example.com + email_notifications_preference: onmention + full_name: Org26 + id: 26 + is_active: 0 + is_admin: 0 + is_restricted: 0 + keep_activity_private: 0 + keep_email_private: 0 + language: null + last_login_unix: null + last_repo_visibility: null + location: null + login_name: org26 + login_source: 0 + login_type: null + lower_name: org26 + max_repo_creation: -1 + must_change_password: 0 + name: org26 num_followers: 0 num_following: 0 - num_stars: 0 + num_members: 0 num_repos: 4 + num_stars: 0 num_teams: 1 - num_members: 0 - visibility: 0 - repo_admin_change_team_access: true - theme: "" - keep_activity_private: false - -- - id: 27 - lower_name: user27 - name: user27 - full_name: User Twenty-Seven - email: user27@example.com - keep_email_private: false - email_notifications_preference: enabled passwd: ZogKvWdyEx:password passwd_hash_algo: dummy - must_change_password: false - login_source: 0 - login_name: user27 - type: 0 + prohibit_login: 0 + rands: null + repo_admin_change_team_access: 1 salt: ZogKvWdyEx - max_repo_creation: -1 - is_active: true - is_admin: false - is_restricted: false - allow_git_hook: false - allow_import_local: false - allow_create_organization: true - prohibit_login: false + theme: "" + type: 1 + updated_unix: null + use_custom_avatar: 0 + visibility: 0 + website: null +- allow_create_organization: 1 + allow_git_hook: 0 + allow_import_local: 0 avatar: avatar27 avatar_email: user27@example.com - use_custom_avatar: false - num_followers: 0 - num_following: 0 - num_stars: 0 - num_repos: 3 - num_teams: 0 - num_members: 0 - visibility: 0 - repo_admin_change_team_access: false - theme: "" - keep_activity_private: false - -- - id: 28 - lower_name: user28 - name: user28 - full_name: user27 - email: user28@example.com - keep_email_private: true + created_unix: null + description: null + diff_view_style: "" + email: user27@example.com email_notifications_preference: enabled + full_name: User Twenty-Seven + id: 27 + is_active: 1 + is_admin: 0 + is_restricted: 0 + keep_activity_private: 0 + keep_email_private: 0 + language: null + last_login_unix: null + last_repo_visibility: null + location: null + login_name: user27 + login_source: 0 + login_type: null + lower_name: user27 + max_repo_creation: -1 + must_change_password: 0 + name: user27 + num_followers: 0 + num_following: 0 + num_members: 0 + num_repos: 3 + num_stars: 0 + num_teams: 0 passwd: ZogKvWdyEx:password passwd_hash_algo: dummy - must_change_password: false - login_source: 0 - login_name: user28 - type: 0 + prohibit_login: 0 + rands: null + repo_admin_change_team_access: 0 salt: ZogKvWdyEx - max_repo_creation: -1 - is_active: true - is_admin: false - is_restricted: false - allow_git_hook: false - allow_import_local: false - allow_create_organization: true - prohibit_login: false + theme: "" + type: 0 + updated_unix: null + use_custom_avatar: 0 + visibility: 0 + website: null +- allow_create_organization: 1 + allow_git_hook: 0 + allow_import_local: 0 avatar: avatar28 avatar_email: user28@example.com - use_custom_avatar: false + created_unix: null + description: null + diff_view_style: "" + email: user28@example.com + email_notifications_preference: enabled + full_name: user27 + id: 28 + is_active: 1 + is_admin: 0 + is_restricted: 0 + keep_activity_private: 0 + keep_email_private: 1 + language: null + last_login_unix: null + last_repo_visibility: null + location: null + login_name: user28 + login_source: 0 + login_type: null + lower_name: user28 + max_repo_creation: -1 + must_change_password: 0 + name: user28 num_followers: 0 num_following: 0 - num_stars: 0 + num_members: 0 num_repos: 0 + num_stars: 0 num_teams: 0 - num_members: 0 - visibility: 0 - repo_admin_change_team_access: false - theme: "" - keep_activity_private: false - -- - id: 29 - lower_name: user29 - name: user29 - full_name: User 29 - email: user29@example.com - keep_email_private: false - email_notifications_preference: enabled passwd: ZogKvWdyEx:password passwd_hash_algo: dummy - must_change_password: false - login_source: 0 - login_name: user29 - type: 0 + prohibit_login: 0 + rands: null + repo_admin_change_team_access: 0 salt: ZogKvWdyEx - max_repo_creation: -1 - is_active: true - is_admin: false - is_restricted: true - allow_git_hook: false - allow_import_local: false - allow_create_organization: true - prohibit_login: false + theme: "" + type: 0 + updated_unix: null + use_custom_avatar: 0 + visibility: 0 + website: null +- allow_create_organization: 1 + allow_git_hook: 0 + allow_import_local: 0 avatar: avatar29 avatar_email: user29@example.com - use_custom_avatar: false + created_unix: null + description: null + diff_view_style: "" + email: user29@example.com + email_notifications_preference: enabled + full_name: User 29 + id: 29 + is_active: 1 + is_admin: 0 + is_restricted: 1 + keep_activity_private: 0 + keep_email_private: 0 + language: null + last_login_unix: null + last_repo_visibility: null + location: null + login_name: user29 + login_source: 0 + login_type: null + lower_name: user29 + max_repo_creation: -1 + must_change_password: 0 + name: user29 num_followers: 0 num_following: 0 - num_stars: 0 + num_members: 0 num_repos: 0 + num_stars: 0 num_teams: 0 - num_members: 0 - visibility: 0 - repo_admin_change_team_access: false - theme: "" - keep_activity_private: false - -- - id: 30 - lower_name: user30 - name: user30 - full_name: User Thirty - email: user30@example.com - keep_email_private: false - email_notifications_preference: enabled passwd: ZogKvWdyEx:password passwd_hash_algo: dummy - must_change_password: false - login_source: 0 - login_name: user30 - type: 0 + prohibit_login: 0 + rands: null + repo_admin_change_team_access: 0 salt: ZogKvWdyEx - max_repo_creation: -1 - is_active: true - is_admin: false - is_restricted: false - allow_git_hook: false - allow_import_local: false - allow_create_organization: true - prohibit_login: true + theme: "" + type: 0 + updated_unix: null + use_custom_avatar: 0 + visibility: 0 + website: null +- allow_create_organization: 1 + allow_git_hook: 0 + allow_import_local: 0 avatar: avatar29 avatar_email: user30@example.com - use_custom_avatar: false + created_unix: null + description: null + diff_view_style: "" + email: user30@example.com + email_notifications_preference: enabled + full_name: User Thirty + id: 30 + is_active: 1 + is_admin: 0 + is_restricted: 0 + keep_activity_private: 0 + keep_email_private: 0 + language: null + last_login_unix: null + last_repo_visibility: null + location: null + login_name: user30 + login_source: 0 + login_type: null + lower_name: user30 + max_repo_creation: -1 + must_change_password: 0 + name: user30 num_followers: 0 num_following: 0 - num_stars: 0 + num_members: 0 num_repos: 4 + num_stars: 0 num_teams: 0 - num_members: 0 - visibility: 0 - repo_admin_change_team_access: false - theme: "" - keep_activity_private: false - -- - id: 31 - lower_name: user31 - name: user31 - full_name: user31 - email: user31@example.com - keep_email_private: false - email_notifications_preference: enabled passwd: ZogKvWdyEx:password passwd_hash_algo: dummy - must_change_password: false - login_source: 0 - login_name: user31 - type: 0 + prohibit_login: 1 + rands: null + repo_admin_change_team_access: 0 salt: ZogKvWdyEx - max_repo_creation: -1 - is_active: true - is_admin: false - is_restricted: false - allow_git_hook: false - allow_import_local: false - allow_create_organization: true - prohibit_login: false + theme: "" + type: 0 + updated_unix: null + use_custom_avatar: 0 + visibility: 0 + website: null +- allow_create_organization: 1 + allow_git_hook: 0 + allow_import_local: 0 avatar: avatar31 avatar_email: user31@example.com - use_custom_avatar: false + created_unix: null + description: null + diff_view_style: "" + email: user31@example.com + email_notifications_preference: enabled + full_name: user31 + id: 31 + is_active: 1 + is_admin: 0 + is_restricted: 0 + keep_activity_private: 0 + keep_email_private: 0 + language: null + last_login_unix: null + last_repo_visibility: null + location: null + login_name: user31 + login_source: 0 + login_type: null + lower_name: user31 + max_repo_creation: -1 + must_change_password: 0 + name: user31 num_followers: 0 num_following: 1 - num_stars: 0 + num_members: 0 num_repos: 0 + num_stars: 0 num_teams: 0 - num_members: 0 - visibility: 2 - repo_admin_change_team_access: false + passwd: ZogKvWdyEx:password + passwd_hash_algo: dummy + prohibit_login: 0 + rands: null + repo_admin_change_team_access: 0 + salt: ZogKvWdyEx theme: "" - keep_activity_private: false - -- - id: 32 - lower_name: user32 - name: user32 - full_name: User 32 (U2F test) + type: 0 + updated_unix: null + use_custom_avatar: 0 + visibility: 2 + website: null +- allow_create_organization: 1 + allow_git_hook: 0 + allow_import_local: 0 + avatar: avatar32 + avatar_email: user30@example.com + created_unix: null + description: null + diff_view_style: "" email: user32@example.com - keep_email_private: false email_notifications_preference: enabled - passwd: ZogKvWdyEx:notpassword - passwd_hash_algo: dummy - must_change_password: false - login_source: 0 + full_name: User 32 (U2F test) + id: 32 + is_active: 1 + is_admin: 0 + is_restricted: 0 + keep_activity_private: 0 + keep_email_private: 0 + language: null + last_login_unix: null + last_repo_visibility: null + location: null login_name: user32 - type: 0 - salt: ZogKvWdyEx + login_source: 0 + login_type: null + lower_name: user32 max_repo_creation: -1 - is_active: true - is_admin: false - is_restricted: false - allow_git_hook: false - allow_import_local: false - allow_create_organization: true - prohibit_login: false - avatar: avatar32 - avatar_email: user30@example.com - use_custom_avatar: false + must_change_password: 0 + name: user32 num_followers: 0 num_following: 0 - num_stars: 0 + num_members: 0 num_repos: 0 + num_stars: 0 num_teams: 0 - num_members: 0 - visibility: 0 - repo_admin_change_team_access: false + passwd: ZogKvWdyEx:notpassword + passwd_hash_algo: dummy + prohibit_login: 0 + rands: null + repo_admin_change_team_access: 0 + salt: ZogKvWdyEx theme: "" - keep_activity_private: false - -- - id: 33 - lower_name: user33 - name: user33 - full_name: User 33 (Limited Visibility) + type: 0 + updated_unix: null + use_custom_avatar: 0 + visibility: 0 + website: null +- allow_create_organization: 1 + allow_git_hook: 0 + allow_import_local: 0 + avatar: avatar33 + avatar_email: user33@example.com + created_unix: null + description: null + diff_view_style: "" email: user33@example.com - keep_email_private: false email_notifications_preference: enabled - passwd: ZogKvWdyEx:password - passwd_hash_algo: dummy - must_change_password: false - login_source: 0 + full_name: User 33 (Limited Visibility) + id: 33 + is_active: 1 + is_admin: 0 + is_restricted: 0 + keep_activity_private: 0 + keep_email_private: 0 + language: null + last_login_unix: null + last_repo_visibility: null + location: null login_name: user33 - type: 0 - salt: ZogKvWdyEx + login_source: 0 + login_type: null + lower_name: user33 max_repo_creation: -1 - is_active: true - is_admin: false - is_restricted: false - allow_git_hook: false - allow_import_local: false - allow_create_organization: true - prohibit_login: false - avatar: avatar33 - avatar_email: user33@example.com - use_custom_avatar: false + must_change_password: 0 + name: user33 num_followers: 1 num_following: 0 - num_stars: 0 + num_members: 0 num_repos: 0 + num_stars: 0 num_teams: 0 - num_members: 0 - visibility: 1 - repo_admin_change_team_access: false - theme: "" - keep_activity_private: false - -- - id: 34 - lower_name: the_34-user.with.all.allowedchars - name: the_34-user.with.all.allowedChars - full_name: the_1-user.with.all.allowedChars - description: 'some [commonmark](https://commonmark.org/)!' - email: user34@example.com - keep_email_private: false - email_notifications_preference: enabled passwd: ZogKvWdyEx:password passwd_hash_algo: dummy - must_change_password: false - login_source: 0 - login_name: the_34-user.with.all.allowedchars - type: 0 + prohibit_login: 0 + rands: null + repo_admin_change_team_access: 0 salt: ZogKvWdyEx - max_repo_creation: -1 - is_active: true - is_admin: false - is_restricted: false - allow_git_hook: false - allow_import_local: false - allow_create_organization: false - prohibit_login: false + theme: "" + type: 0 + updated_unix: null + use_custom_avatar: 0 + visibility: 1 + website: null +- allow_create_organization: 0 + allow_git_hook: 0 + allow_import_local: 0 avatar: avatar34 avatar_email: user34@example.com - use_custom_avatar: true + created_unix: null + description: some [commonmark](https://commonmark.org/)! + diff_view_style: "" + email: user34@example.com + email_notifications_preference: enabled + full_name: the_1-user.with.all.allowedChars + id: 34 + is_active: 1 + is_admin: 0 + is_restricted: 0 + keep_activity_private: 0 + keep_email_private: 0 + language: null + last_login_unix: null + last_repo_visibility: null + location: null + login_name: the_34-user.with.all.allowedchars + login_source: 0 + login_type: null + lower_name: the_34-user.with.all.allowedchars + max_repo_creation: -1 + must_change_password: 0 + name: the_34-user.with.all.allowedChars num_followers: 0 num_following: 0 - num_stars: 0 + num_members: 0 num_repos: 0 + num_stars: 0 num_teams: 0 - num_members: 0 - visibility: 0 - repo_admin_change_team_access: false - theme: "" - keep_activity_private: false - -- - id: 35 - lower_name: private_org35 - name: private_org35 - full_name: Private Org 35 - email: private_org35@example.com - keep_email_private: false - email_notifications_preference: enabled passwd: ZogKvWdyEx:password passwd_hash_algo: dummy - must_change_password: false - login_source: 0 - login_name: private_org35 - type: 1 + prohibit_login: 0 + rands: null + repo_admin_change_team_access: 0 salt: ZogKvWdyEx - max_repo_creation: -1 - is_active: true - is_admin: false - is_restricted: false - allow_git_hook: false - allow_import_local: false - allow_create_organization: true - prohibit_login: false + theme: "" + type: 0 + updated_unix: null + use_custom_avatar: 1 + visibility: 0 + website: null +- allow_create_organization: 1 + allow_git_hook: 0 + allow_import_local: 0 avatar: avatar35 avatar_email: private_org35@example.com - use_custom_avatar: false + created_unix: null + description: null + diff_view_style: "" + email: private_org35@example.com + email_notifications_preference: enabled + full_name: Private Org 35 + id: 35 + is_active: 1 + is_admin: 0 + is_restricted: 0 + keep_activity_private: 0 + keep_email_private: 0 + language: null + last_login_unix: null + last_repo_visibility: null + location: null + login_name: private_org35 + login_source: 0 + login_type: null + lower_name: private_org35 + max_repo_creation: -1 + must_change_password: 0 + name: private_org35 num_followers: 0 num_following: 0 - num_stars: 0 + num_members: 1 num_repos: 0 + num_stars: 0 num_teams: 1 - num_members: 1 - visibility: 2 - repo_admin_change_team_access: false - theme: "" - keep_activity_private: false - -- - id: 36 - lower_name: limited_org36 - name: limited_org36 - full_name: Limited Org 36 - email: limited_org36@example.com - keep_email_private: false - email_notifications_preference: enabled passwd: ZogKvWdyEx:password passwd_hash_algo: dummy - must_change_password: false - login_source: 0 - login_name: limited_org36 - type: 1 + prohibit_login: 0 + rands: null + repo_admin_change_team_access: 0 salt: ZogKvWdyEx - max_repo_creation: -1 - is_active: true - is_admin: false - is_restricted: false - allow_git_hook: false - allow_import_local: false - allow_create_organization: true - prohibit_login: false + theme: "" + type: 1 + updated_unix: null + use_custom_avatar: 0 + visibility: 2 + website: null +- allow_create_organization: 1 + allow_git_hook: 0 + allow_import_local: 0 avatar: avatar22 avatar_email: limited_org36@example.com - use_custom_avatar: false + created_unix: null + description: null + diff_view_style: "" + email: limited_org36@example.com + email_notifications_preference: enabled + full_name: Limited Org 36 + id: 36 + is_active: 1 + is_admin: 0 + is_restricted: 0 + keep_activity_private: 0 + keep_email_private: 0 + language: null + last_login_unix: null + last_repo_visibility: null + location: null + login_name: limited_org36 + login_source: 0 + login_type: null + lower_name: limited_org36 + max_repo_creation: -1 + must_change_password: 0 + name: limited_org36 num_followers: 0 num_following: 0 - num_stars: 0 + num_members: 2 num_repos: 0 + num_stars: 0 num_teams: 2 - num_members: 2 - visibility: 1 - repo_admin_change_team_access: false + passwd: ZogKvWdyEx:password + passwd_hash_algo: dummy + prohibit_login: 0 + rands: null + repo_admin_change_team_access: 0 + salt: ZogKvWdyEx theme: "" - keep_activity_private: false + type: 1 + updated_unix: null + use_custom_avatar: 0 + visibility: 1 + website: null diff --git a/models/fixtures/user_open_id.yml b/models/fixtures/user_open_id.yml index d3a367b99dfa3..ca3161d706f01 100644 --- a/models/fixtures/user_open_id.yml +++ b/models/fixtures/user_open_id.yml @@ -1,17 +1,12 @@ -- - id: 1 +- id: 1 + show: 0 uid: 1 uri: https://user1.domain1.tld/ - show: false - -- - id: 2 +- id: 2 + show: 1 uid: 1 uri: http://user1.domain2.tld/ - show: true - -- - id: 3 +- id: 3 + show: 1 uid: 2 uri: https://domain1.tld/user2/ - show: true diff --git a/models/fixtures/user_redirect.yml b/models/fixtures/user_redirect.yml index 8ff79933983eb..5391cb24395ef 100644 --- a/models/fixtures/user_redirect.yml +++ b/models/fixtures/user_redirect.yml @@ -1,4 +1,3 @@ -- - id: 1 +- id: 1 lower_name: olduser1 redirect_user_id: 1 diff --git a/models/fixtures/watch.yml b/models/fixtures/watch.yml index c29f6bb65a889..8f7cce97120ce 100644 --- a/models/fixtures/watch.yml +++ b/models/fixtures/watch.yml @@ -1,29 +1,30 @@ -- +- created_unix: null id: 1 - user_id: 1 + mode: 1 repo_id: 1 - mode: 1 # normal - -- + updated_unix: null + user_id: 1 +- created_unix: null id: 2 - user_id: 4 + mode: 1 repo_id: 1 - mode: 1 # normal - -- + updated_unix: null + user_id: 4 +- created_unix: null id: 3 - user_id: 9 + mode: 1 repo_id: 1 - mode: 1 # normal - -- + updated_unix: null + user_id: 9 +- created_unix: null id: 4 - user_id: 8 + mode: 2 repo_id: 1 - mode: 2 # don't watch - -- + updated_unix: null + user_id: 8 +- created_unix: null id: 5 - user_id: 11 + mode: 3 repo_id: 1 - mode: 3 # auto + updated_unix: null + user_id: 11 diff --git a/models/fixtures/webauthn_credential.yml b/models/fixtures/webauthn_credential.yml index bc43127fcd46d..1221b40af499e 100644 --- a/models/fixtures/webauthn_credential.yml +++ b/models/fixtures/webauthn_credential.yml @@ -1,9 +1,12 @@ -- +- aaguid: null + attestation_type: none + clone_warning: 0 + created_unix: 946684800 + credential_id: null id: 1 + lower_name: null name: WebAuthn credential - user_id: 32 - attestation_type: none + public_key: null sign_count: 0 - clone_warning: false - created_unix: 946684800 updated_unix: 946684800 + user_id: 32 diff --git a/models/fixtures/webhook.yml b/models/fixtures/webhook.yml index f62bae1f311ce..535fd2abab8ab 100644 --- a/models/fixtures/webhook.yml +++ b/models/fixtures/webhook.yml @@ -1,31 +1,64 @@ -- +- content_type: 1 + created_unix: null + events: '{"push_only":true,"send_everything":false,"choose_events":false,"events":{"create":false,"push":true,"pull_request":false}}' + header_authorization_encrypted: null + http_method: null id: 1 + is_active: 1 + is_system_webhook: null + last_status: null + meta: null + owner_id: null repo_id: 1 + secret: null + type: null + updated_unix: null url: www.example.com/url1 - content_type: 1 # json - events: '{"push_only":true,"send_everything":false,"choose_events":false,"events":{"create":false,"push":true,"pull_request":false}}' - is_active: true - -- +- content_type: 1 + created_unix: null + events: '{"push_only":false,"send_everything":false,"choose_events":false,"events":{"create":false,"push":true,"pull_request":true}}' + header_authorization_encrypted: null + http_method: null id: 2 + is_active: 0 + is_system_webhook: null + last_status: null + meta: null + owner_id: null repo_id: 1 + secret: null + type: null + updated_unix: null url: www.example.com/url2 - content_type: 1 # json +- content_type: 1 + created_unix: null events: '{"push_only":false,"send_everything":false,"choose_events":false,"events":{"create":false,"push":true,"pull_request":true}}' - is_active: false - -- + header_authorization_encrypted: null + http_method: null id: 3 + is_active: 1 + is_system_webhook: null + last_status: null + meta: null owner_id: 3 repo_id: 3 + secret: null + type: null + updated_unix: null url: www.example.com/url3 - content_type: 1 # json - events: '{"push_only":false,"send_everything":false,"choose_events":false,"events":{"create":false,"push":true,"pull_request":true}}' - is_active: true -- +- content_type: 1 + created_unix: null + events: '{"push_only":true,"branch_filter":"{master,feature*}"}' + header_authorization_encrypted: null + http_method: null id: 4 + is_active: 1 + is_system_webhook: null + last_status: null + meta: null + owner_id: null repo_id: 2 + secret: null + type: null + updated_unix: null url: www.example.com/url4 - content_type: 1 # json - events: '{"push_only":true,"branch_filter":"{master,feature*}"}' - is_active: true diff --git a/tests/gitea-repositories-meta/limited_org/private_repo_on_limited_org.git/hooks/post-receive b/tests/gitea-repositories-meta/limited_org/private_repo_on_limited_org.git/hooks/post-receive new file mode 100755 index 0000000000000..4b3d452abcce2 --- /dev/null +++ b/tests/gitea-repositories-meta/limited_org/private_repo_on_limited_org.git/hooks/post-receive @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/post-receive.d"`; do + sh "$SHELL_FOLDER/post-receive.d/$i" +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/limited_org/private_repo_on_limited_org.git/hooks/post-receive.d/gitea b/tests/gitea-repositories-meta/limited_org/private_repo_on_limited_org.git/hooks/post-receive.d/gitea new file mode 100755 index 0000000000000..43a948da3a983 --- /dev/null +++ b/tests/gitea-repositories-meta/limited_org/private_repo_on_limited_org.git/hooks/post-receive.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" post-receive diff --git a/tests/gitea-repositories-meta/limited_org/private_repo_on_limited_org.git/hooks/pre-receive b/tests/gitea-repositories-meta/limited_org/private_repo_on_limited_org.git/hooks/pre-receive new file mode 100755 index 0000000000000..412701305369c --- /dev/null +++ b/tests/gitea-repositories-meta/limited_org/private_repo_on_limited_org.git/hooks/pre-receive @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/pre-receive.d"`; do + sh "$SHELL_FOLDER/pre-receive.d/$i" +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/limited_org/private_repo_on_limited_org.git/hooks/pre-receive.d/gitea b/tests/gitea-repositories-meta/limited_org/private_repo_on_limited_org.git/hooks/pre-receive.d/gitea new file mode 100755 index 0000000000000..49d09406364a5 --- /dev/null +++ b/tests/gitea-repositories-meta/limited_org/private_repo_on_limited_org.git/hooks/pre-receive.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" pre-receive diff --git a/tests/gitea-repositories-meta/limited_org/private_repo_on_limited_org.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/limited_org/private_repo_on_limited_org.git/hooks/proc-receive.d/gitea new file mode 100755 index 0000000000000..e69de29bb2d1d diff --git a/tests/gitea-repositories-meta/limited_org/private_repo_on_limited_org.git/hooks/update b/tests/gitea-repositories-meta/limited_org/private_repo_on_limited_org.git/hooks/update new file mode 100755 index 0000000000000..c186fe4a18b0f --- /dev/null +++ b/tests/gitea-repositories-meta/limited_org/private_repo_on_limited_org.git/hooks/update @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/update.d"`; do + sh "$SHELL_FOLDER/update.d/$i" $1 $2 $3 +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/limited_org/private_repo_on_limited_org.git/hooks/update.d/gitea b/tests/gitea-repositories-meta/limited_org/private_repo_on_limited_org.git/hooks/update.d/gitea new file mode 100755 index 0000000000000..38101c242664a --- /dev/null +++ b/tests/gitea-repositories-meta/limited_org/private_repo_on_limited_org.git/hooks/update.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" update $1 $2 $3 diff --git a/tests/gitea-repositories-meta/limited_org/public_repo_on_limited_org.git/hooks/post-receive b/tests/gitea-repositories-meta/limited_org/public_repo_on_limited_org.git/hooks/post-receive new file mode 100755 index 0000000000000..4b3d452abcce2 --- /dev/null +++ b/tests/gitea-repositories-meta/limited_org/public_repo_on_limited_org.git/hooks/post-receive @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/post-receive.d"`; do + sh "$SHELL_FOLDER/post-receive.d/$i" +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/limited_org/public_repo_on_limited_org.git/hooks/post-receive.d/gitea b/tests/gitea-repositories-meta/limited_org/public_repo_on_limited_org.git/hooks/post-receive.d/gitea new file mode 100755 index 0000000000000..43a948da3a983 --- /dev/null +++ b/tests/gitea-repositories-meta/limited_org/public_repo_on_limited_org.git/hooks/post-receive.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" post-receive diff --git a/tests/gitea-repositories-meta/limited_org/public_repo_on_limited_org.git/hooks/pre-receive b/tests/gitea-repositories-meta/limited_org/public_repo_on_limited_org.git/hooks/pre-receive new file mode 100755 index 0000000000000..412701305369c --- /dev/null +++ b/tests/gitea-repositories-meta/limited_org/public_repo_on_limited_org.git/hooks/pre-receive @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/pre-receive.d"`; do + sh "$SHELL_FOLDER/pre-receive.d/$i" +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/limited_org/public_repo_on_limited_org.git/hooks/pre-receive.d/gitea b/tests/gitea-repositories-meta/limited_org/public_repo_on_limited_org.git/hooks/pre-receive.d/gitea new file mode 100755 index 0000000000000..49d09406364a5 --- /dev/null +++ b/tests/gitea-repositories-meta/limited_org/public_repo_on_limited_org.git/hooks/pre-receive.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" pre-receive diff --git a/tests/gitea-repositories-meta/limited_org/public_repo_on_limited_org.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/limited_org/public_repo_on_limited_org.git/hooks/proc-receive.d/gitea new file mode 100755 index 0000000000000..e69de29bb2d1d diff --git a/tests/gitea-repositories-meta/limited_org/public_repo_on_limited_org.git/hooks/update b/tests/gitea-repositories-meta/limited_org/public_repo_on_limited_org.git/hooks/update new file mode 100755 index 0000000000000..c186fe4a18b0f --- /dev/null +++ b/tests/gitea-repositories-meta/limited_org/public_repo_on_limited_org.git/hooks/update @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/update.d"`; do + sh "$SHELL_FOLDER/update.d/$i" $1 $2 $3 +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/limited_org/public_repo_on_limited_org.git/hooks/update.d/gitea b/tests/gitea-repositories-meta/limited_org/public_repo_on_limited_org.git/hooks/update.d/gitea new file mode 100755 index 0000000000000..38101c242664a --- /dev/null +++ b/tests/gitea-repositories-meta/limited_org/public_repo_on_limited_org.git/hooks/update.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" update $1 $2 $3 diff --git a/tests/gitea-repositories-meta/migration/lfs-test.git/hooks/post-receive b/tests/gitea-repositories-meta/migration/lfs-test.git/hooks/post-receive new file mode 100755 index 0000000000000..4b3d452abcce2 --- /dev/null +++ b/tests/gitea-repositories-meta/migration/lfs-test.git/hooks/post-receive @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/post-receive.d"`; do + sh "$SHELL_FOLDER/post-receive.d/$i" +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/migration/lfs-test.git/hooks/post-receive.d/gitea b/tests/gitea-repositories-meta/migration/lfs-test.git/hooks/post-receive.d/gitea new file mode 100755 index 0000000000000..43a948da3a983 --- /dev/null +++ b/tests/gitea-repositories-meta/migration/lfs-test.git/hooks/post-receive.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" post-receive diff --git a/tests/gitea-repositories-meta/migration/lfs-test.git/hooks/pre-receive b/tests/gitea-repositories-meta/migration/lfs-test.git/hooks/pre-receive new file mode 100755 index 0000000000000..412701305369c --- /dev/null +++ b/tests/gitea-repositories-meta/migration/lfs-test.git/hooks/pre-receive @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/pre-receive.d"`; do + sh "$SHELL_FOLDER/pre-receive.d/$i" +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/migration/lfs-test.git/hooks/pre-receive.d/gitea b/tests/gitea-repositories-meta/migration/lfs-test.git/hooks/pre-receive.d/gitea new file mode 100755 index 0000000000000..49d09406364a5 --- /dev/null +++ b/tests/gitea-repositories-meta/migration/lfs-test.git/hooks/pre-receive.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" pre-receive diff --git a/tests/gitea-repositories-meta/migration/lfs-test.git/hooks/update b/tests/gitea-repositories-meta/migration/lfs-test.git/hooks/update new file mode 100755 index 0000000000000..c186fe4a18b0f --- /dev/null +++ b/tests/gitea-repositories-meta/migration/lfs-test.git/hooks/update @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/update.d"`; do + sh "$SHELL_FOLDER/update.d/$i" $1 $2 $3 +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/migration/lfs-test.git/hooks/update.d/gitea b/tests/gitea-repositories-meta/migration/lfs-test.git/hooks/update.d/gitea new file mode 100755 index 0000000000000..38101c242664a --- /dev/null +++ b/tests/gitea-repositories-meta/migration/lfs-test.git/hooks/update.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" update $1 $2 $3 diff --git a/tests/gitea-repositories-meta/org26/repo_external_tracker.git/hooks/post-receive b/tests/gitea-repositories-meta/org26/repo_external_tracker.git/hooks/post-receive new file mode 100755 index 0000000000000..4b3d452abcce2 --- /dev/null +++ b/tests/gitea-repositories-meta/org26/repo_external_tracker.git/hooks/post-receive @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/post-receive.d"`; do + sh "$SHELL_FOLDER/post-receive.d/$i" +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/org26/repo_external_tracker.git/hooks/post-receive.d/gitea b/tests/gitea-repositories-meta/org26/repo_external_tracker.git/hooks/post-receive.d/gitea new file mode 100755 index 0000000000000..43a948da3a983 --- /dev/null +++ b/tests/gitea-repositories-meta/org26/repo_external_tracker.git/hooks/post-receive.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" post-receive diff --git a/tests/gitea-repositories-meta/org26/repo_external_tracker.git/hooks/pre-receive b/tests/gitea-repositories-meta/org26/repo_external_tracker.git/hooks/pre-receive new file mode 100755 index 0000000000000..412701305369c --- /dev/null +++ b/tests/gitea-repositories-meta/org26/repo_external_tracker.git/hooks/pre-receive @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/pre-receive.d"`; do + sh "$SHELL_FOLDER/pre-receive.d/$i" +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/org26/repo_external_tracker.git/hooks/pre-receive.d/gitea b/tests/gitea-repositories-meta/org26/repo_external_tracker.git/hooks/pre-receive.d/gitea new file mode 100755 index 0000000000000..49d09406364a5 --- /dev/null +++ b/tests/gitea-repositories-meta/org26/repo_external_tracker.git/hooks/pre-receive.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" pre-receive diff --git a/tests/gitea-repositories-meta/org26/repo_external_tracker.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/org26/repo_external_tracker.git/hooks/proc-receive.d/gitea new file mode 100755 index 0000000000000..e69de29bb2d1d diff --git a/tests/gitea-repositories-meta/org26/repo_external_tracker.git/hooks/update b/tests/gitea-repositories-meta/org26/repo_external_tracker.git/hooks/update new file mode 100755 index 0000000000000..c186fe4a18b0f --- /dev/null +++ b/tests/gitea-repositories-meta/org26/repo_external_tracker.git/hooks/update @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/update.d"`; do + sh "$SHELL_FOLDER/update.d/$i" $1 $2 $3 +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/org26/repo_external_tracker.git/hooks/update.d/gitea b/tests/gitea-repositories-meta/org26/repo_external_tracker.git/hooks/update.d/gitea new file mode 100755 index 0000000000000..38101c242664a --- /dev/null +++ b/tests/gitea-repositories-meta/org26/repo_external_tracker.git/hooks/update.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" update $1 $2 $3 diff --git a/tests/gitea-repositories-meta/org26/repo_external_tracker_alpha.git/hooks/post-receive b/tests/gitea-repositories-meta/org26/repo_external_tracker_alpha.git/hooks/post-receive new file mode 100755 index 0000000000000..4b3d452abcce2 --- /dev/null +++ b/tests/gitea-repositories-meta/org26/repo_external_tracker_alpha.git/hooks/post-receive @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/post-receive.d"`; do + sh "$SHELL_FOLDER/post-receive.d/$i" +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/org26/repo_external_tracker_alpha.git/hooks/post-receive.d/gitea b/tests/gitea-repositories-meta/org26/repo_external_tracker_alpha.git/hooks/post-receive.d/gitea new file mode 100755 index 0000000000000..43a948da3a983 --- /dev/null +++ b/tests/gitea-repositories-meta/org26/repo_external_tracker_alpha.git/hooks/post-receive.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" post-receive diff --git a/tests/gitea-repositories-meta/org26/repo_external_tracker_alpha.git/hooks/pre-receive b/tests/gitea-repositories-meta/org26/repo_external_tracker_alpha.git/hooks/pre-receive new file mode 100755 index 0000000000000..412701305369c --- /dev/null +++ b/tests/gitea-repositories-meta/org26/repo_external_tracker_alpha.git/hooks/pre-receive @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/pre-receive.d"`; do + sh "$SHELL_FOLDER/pre-receive.d/$i" +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/org26/repo_external_tracker_alpha.git/hooks/pre-receive.d/gitea b/tests/gitea-repositories-meta/org26/repo_external_tracker_alpha.git/hooks/pre-receive.d/gitea new file mode 100755 index 0000000000000..49d09406364a5 --- /dev/null +++ b/tests/gitea-repositories-meta/org26/repo_external_tracker_alpha.git/hooks/pre-receive.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" pre-receive diff --git a/tests/gitea-repositories-meta/org26/repo_external_tracker_alpha.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/org26/repo_external_tracker_alpha.git/hooks/proc-receive.d/gitea new file mode 100755 index 0000000000000..e69de29bb2d1d diff --git a/tests/gitea-repositories-meta/org26/repo_external_tracker_alpha.git/hooks/update b/tests/gitea-repositories-meta/org26/repo_external_tracker_alpha.git/hooks/update new file mode 100755 index 0000000000000..c186fe4a18b0f --- /dev/null +++ b/tests/gitea-repositories-meta/org26/repo_external_tracker_alpha.git/hooks/update @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/update.d"`; do + sh "$SHELL_FOLDER/update.d/$i" $1 $2 $3 +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/org26/repo_external_tracker_alpha.git/hooks/update.d/gitea b/tests/gitea-repositories-meta/org26/repo_external_tracker_alpha.git/hooks/update.d/gitea new file mode 100755 index 0000000000000..38101c242664a --- /dev/null +++ b/tests/gitea-repositories-meta/org26/repo_external_tracker_alpha.git/hooks/update.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" update $1 $2 $3 diff --git a/tests/gitea-repositories-meta/org26/repo_external_tracker_numeric.git/hooks/post-receive b/tests/gitea-repositories-meta/org26/repo_external_tracker_numeric.git/hooks/post-receive new file mode 100755 index 0000000000000..4b3d452abcce2 --- /dev/null +++ b/tests/gitea-repositories-meta/org26/repo_external_tracker_numeric.git/hooks/post-receive @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/post-receive.d"`; do + sh "$SHELL_FOLDER/post-receive.d/$i" +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/org26/repo_external_tracker_numeric.git/hooks/post-receive.d/gitea b/tests/gitea-repositories-meta/org26/repo_external_tracker_numeric.git/hooks/post-receive.d/gitea new file mode 100755 index 0000000000000..43a948da3a983 --- /dev/null +++ b/tests/gitea-repositories-meta/org26/repo_external_tracker_numeric.git/hooks/post-receive.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" post-receive diff --git a/tests/gitea-repositories-meta/org26/repo_external_tracker_numeric.git/hooks/pre-receive b/tests/gitea-repositories-meta/org26/repo_external_tracker_numeric.git/hooks/pre-receive new file mode 100755 index 0000000000000..412701305369c --- /dev/null +++ b/tests/gitea-repositories-meta/org26/repo_external_tracker_numeric.git/hooks/pre-receive @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/pre-receive.d"`; do + sh "$SHELL_FOLDER/pre-receive.d/$i" +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/org26/repo_external_tracker_numeric.git/hooks/pre-receive.d/gitea b/tests/gitea-repositories-meta/org26/repo_external_tracker_numeric.git/hooks/pre-receive.d/gitea new file mode 100755 index 0000000000000..49d09406364a5 --- /dev/null +++ b/tests/gitea-repositories-meta/org26/repo_external_tracker_numeric.git/hooks/pre-receive.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" pre-receive diff --git a/tests/gitea-repositories-meta/org26/repo_external_tracker_numeric.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/org26/repo_external_tracker_numeric.git/hooks/proc-receive.d/gitea new file mode 100755 index 0000000000000..e69de29bb2d1d diff --git a/tests/gitea-repositories-meta/org26/repo_external_tracker_numeric.git/hooks/update b/tests/gitea-repositories-meta/org26/repo_external_tracker_numeric.git/hooks/update new file mode 100755 index 0000000000000..c186fe4a18b0f --- /dev/null +++ b/tests/gitea-repositories-meta/org26/repo_external_tracker_numeric.git/hooks/update @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/update.d"`; do + sh "$SHELL_FOLDER/update.d/$i" $1 $2 $3 +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/org26/repo_external_tracker_numeric.git/hooks/update.d/gitea b/tests/gitea-repositories-meta/org26/repo_external_tracker_numeric.git/hooks/update.d/gitea new file mode 100755 index 0000000000000..38101c242664a --- /dev/null +++ b/tests/gitea-repositories-meta/org26/repo_external_tracker_numeric.git/hooks/update.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" update $1 $2 $3 diff --git a/tests/gitea-repositories-meta/privated_org/private_repo_on_private_org.git/hooks/post-receive b/tests/gitea-repositories-meta/privated_org/private_repo_on_private_org.git/hooks/post-receive new file mode 100755 index 0000000000000..4b3d452abcce2 --- /dev/null +++ b/tests/gitea-repositories-meta/privated_org/private_repo_on_private_org.git/hooks/post-receive @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/post-receive.d"`; do + sh "$SHELL_FOLDER/post-receive.d/$i" +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/privated_org/private_repo_on_private_org.git/hooks/post-receive.d/gitea b/tests/gitea-repositories-meta/privated_org/private_repo_on_private_org.git/hooks/post-receive.d/gitea new file mode 100755 index 0000000000000..43a948da3a983 --- /dev/null +++ b/tests/gitea-repositories-meta/privated_org/private_repo_on_private_org.git/hooks/post-receive.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" post-receive diff --git a/tests/gitea-repositories-meta/privated_org/private_repo_on_private_org.git/hooks/pre-receive b/tests/gitea-repositories-meta/privated_org/private_repo_on_private_org.git/hooks/pre-receive new file mode 100755 index 0000000000000..412701305369c --- /dev/null +++ b/tests/gitea-repositories-meta/privated_org/private_repo_on_private_org.git/hooks/pre-receive @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/pre-receive.d"`; do + sh "$SHELL_FOLDER/pre-receive.d/$i" +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/privated_org/private_repo_on_private_org.git/hooks/pre-receive.d/gitea b/tests/gitea-repositories-meta/privated_org/private_repo_on_private_org.git/hooks/pre-receive.d/gitea new file mode 100755 index 0000000000000..49d09406364a5 --- /dev/null +++ b/tests/gitea-repositories-meta/privated_org/private_repo_on_private_org.git/hooks/pre-receive.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" pre-receive diff --git a/tests/gitea-repositories-meta/privated_org/private_repo_on_private_org.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/privated_org/private_repo_on_private_org.git/hooks/proc-receive.d/gitea new file mode 100755 index 0000000000000..e69de29bb2d1d diff --git a/tests/gitea-repositories-meta/privated_org/private_repo_on_private_org.git/hooks/update b/tests/gitea-repositories-meta/privated_org/private_repo_on_private_org.git/hooks/update new file mode 100755 index 0000000000000..c186fe4a18b0f --- /dev/null +++ b/tests/gitea-repositories-meta/privated_org/private_repo_on_private_org.git/hooks/update @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/update.d"`; do + sh "$SHELL_FOLDER/update.d/$i" $1 $2 $3 +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/privated_org/private_repo_on_private_org.git/hooks/update.d/gitea b/tests/gitea-repositories-meta/privated_org/private_repo_on_private_org.git/hooks/update.d/gitea new file mode 100755 index 0000000000000..38101c242664a --- /dev/null +++ b/tests/gitea-repositories-meta/privated_org/private_repo_on_private_org.git/hooks/update.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" update $1 $2 $3 diff --git a/tests/gitea-repositories-meta/privated_org/public_repo_on_private_org.git/hooks/post-receive b/tests/gitea-repositories-meta/privated_org/public_repo_on_private_org.git/hooks/post-receive new file mode 100755 index 0000000000000..4b3d452abcce2 --- /dev/null +++ b/tests/gitea-repositories-meta/privated_org/public_repo_on_private_org.git/hooks/post-receive @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/post-receive.d"`; do + sh "$SHELL_FOLDER/post-receive.d/$i" +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/privated_org/public_repo_on_private_org.git/hooks/post-receive.d/gitea b/tests/gitea-repositories-meta/privated_org/public_repo_on_private_org.git/hooks/post-receive.d/gitea new file mode 100755 index 0000000000000..43a948da3a983 --- /dev/null +++ b/tests/gitea-repositories-meta/privated_org/public_repo_on_private_org.git/hooks/post-receive.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" post-receive diff --git a/tests/gitea-repositories-meta/privated_org/public_repo_on_private_org.git/hooks/pre-receive b/tests/gitea-repositories-meta/privated_org/public_repo_on_private_org.git/hooks/pre-receive new file mode 100755 index 0000000000000..412701305369c --- /dev/null +++ b/tests/gitea-repositories-meta/privated_org/public_repo_on_private_org.git/hooks/pre-receive @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/pre-receive.d"`; do + sh "$SHELL_FOLDER/pre-receive.d/$i" +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/privated_org/public_repo_on_private_org.git/hooks/pre-receive.d/gitea b/tests/gitea-repositories-meta/privated_org/public_repo_on_private_org.git/hooks/pre-receive.d/gitea new file mode 100755 index 0000000000000..49d09406364a5 --- /dev/null +++ b/tests/gitea-repositories-meta/privated_org/public_repo_on_private_org.git/hooks/pre-receive.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" pre-receive diff --git a/tests/gitea-repositories-meta/privated_org/public_repo_on_private_org.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/privated_org/public_repo_on_private_org.git/hooks/proc-receive.d/gitea new file mode 100755 index 0000000000000..e69de29bb2d1d diff --git a/tests/gitea-repositories-meta/privated_org/public_repo_on_private_org.git/hooks/update b/tests/gitea-repositories-meta/privated_org/public_repo_on_private_org.git/hooks/update new file mode 100755 index 0000000000000..c186fe4a18b0f --- /dev/null +++ b/tests/gitea-repositories-meta/privated_org/public_repo_on_private_org.git/hooks/update @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/update.d"`; do + sh "$SHELL_FOLDER/update.d/$i" $1 $2 $3 +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/privated_org/public_repo_on_private_org.git/hooks/update.d/gitea b/tests/gitea-repositories-meta/privated_org/public_repo_on_private_org.git/hooks/update.d/gitea new file mode 100755 index 0000000000000..38101c242664a --- /dev/null +++ b/tests/gitea-repositories-meta/privated_org/public_repo_on_private_org.git/hooks/update.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" update $1 $2 $3 diff --git a/tests/gitea-repositories-meta/user12/repo10.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/user12/repo10.git/hooks/proc-receive.d/gitea new file mode 100755 index 0000000000000..e69de29bb2d1d diff --git a/tests/gitea-repositories-meta/user13/repo11.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/user13/repo11.git/hooks/proc-receive.d/gitea new file mode 100755 index 0000000000000..e69de29bb2d1d diff --git a/tests/gitea-repositories-meta/user2/commits_search_test.git/hooks/post-receive b/tests/gitea-repositories-meta/user2/commits_search_test.git/hooks/post-receive new file mode 100755 index 0000000000000..4b3d452abcce2 --- /dev/null +++ b/tests/gitea-repositories-meta/user2/commits_search_test.git/hooks/post-receive @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/post-receive.d"`; do + sh "$SHELL_FOLDER/post-receive.d/$i" +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/user2/commits_search_test.git/hooks/post-receive.d/gitea b/tests/gitea-repositories-meta/user2/commits_search_test.git/hooks/post-receive.d/gitea new file mode 100755 index 0000000000000..43a948da3a983 --- /dev/null +++ b/tests/gitea-repositories-meta/user2/commits_search_test.git/hooks/post-receive.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" post-receive diff --git a/tests/gitea-repositories-meta/user2/commits_search_test.git/hooks/pre-receive b/tests/gitea-repositories-meta/user2/commits_search_test.git/hooks/pre-receive new file mode 100755 index 0000000000000..412701305369c --- /dev/null +++ b/tests/gitea-repositories-meta/user2/commits_search_test.git/hooks/pre-receive @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/pre-receive.d"`; do + sh "$SHELL_FOLDER/pre-receive.d/$i" +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/user2/commits_search_test.git/hooks/pre-receive.d/gitea b/tests/gitea-repositories-meta/user2/commits_search_test.git/hooks/pre-receive.d/gitea new file mode 100755 index 0000000000000..49d09406364a5 --- /dev/null +++ b/tests/gitea-repositories-meta/user2/commits_search_test.git/hooks/pre-receive.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" pre-receive diff --git a/tests/gitea-repositories-meta/user2/commits_search_test.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/user2/commits_search_test.git/hooks/proc-receive.d/gitea new file mode 100755 index 0000000000000..e69de29bb2d1d diff --git a/tests/gitea-repositories-meta/user2/commits_search_test.git/hooks/update b/tests/gitea-repositories-meta/user2/commits_search_test.git/hooks/update new file mode 100755 index 0000000000000..c186fe4a18b0f --- /dev/null +++ b/tests/gitea-repositories-meta/user2/commits_search_test.git/hooks/update @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/update.d"`; do + sh "$SHELL_FOLDER/update.d/$i" $1 $2 $3 +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/user2/commits_search_test.git/hooks/update.d/gitea b/tests/gitea-repositories-meta/user2/commits_search_test.git/hooks/update.d/gitea new file mode 100755 index 0000000000000..38101c242664a --- /dev/null +++ b/tests/gitea-repositories-meta/user2/commits_search_test.git/hooks/update.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" update $1 $2 $3 diff --git a/tests/gitea-repositories-meta/user2/commitsonpr.git/hooks/post-receive b/tests/gitea-repositories-meta/user2/commitsonpr.git/hooks/post-receive new file mode 100755 index 0000000000000..4b3d452abcce2 --- /dev/null +++ b/tests/gitea-repositories-meta/user2/commitsonpr.git/hooks/post-receive @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/post-receive.d"`; do + sh "$SHELL_FOLDER/post-receive.d/$i" +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/user2/commitsonpr.git/hooks/post-receive.d/gitea b/tests/gitea-repositories-meta/user2/commitsonpr.git/hooks/post-receive.d/gitea new file mode 100755 index 0000000000000..43a948da3a983 --- /dev/null +++ b/tests/gitea-repositories-meta/user2/commitsonpr.git/hooks/post-receive.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" post-receive diff --git a/tests/gitea-repositories-meta/user2/commitsonpr.git/hooks/pre-receive b/tests/gitea-repositories-meta/user2/commitsonpr.git/hooks/pre-receive new file mode 100755 index 0000000000000..412701305369c --- /dev/null +++ b/tests/gitea-repositories-meta/user2/commitsonpr.git/hooks/pre-receive @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/pre-receive.d"`; do + sh "$SHELL_FOLDER/pre-receive.d/$i" +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/user2/commitsonpr.git/hooks/pre-receive.d/gitea b/tests/gitea-repositories-meta/user2/commitsonpr.git/hooks/pre-receive.d/gitea new file mode 100755 index 0000000000000..49d09406364a5 --- /dev/null +++ b/tests/gitea-repositories-meta/user2/commitsonpr.git/hooks/pre-receive.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" pre-receive diff --git a/tests/gitea-repositories-meta/user2/commitsonpr.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/user2/commitsonpr.git/hooks/proc-receive.d/gitea new file mode 100755 index 0000000000000..e69de29bb2d1d diff --git a/tests/gitea-repositories-meta/user2/commitsonpr.git/hooks/update b/tests/gitea-repositories-meta/user2/commitsonpr.git/hooks/update new file mode 100755 index 0000000000000..c186fe4a18b0f --- /dev/null +++ b/tests/gitea-repositories-meta/user2/commitsonpr.git/hooks/update @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/update.d"`; do + sh "$SHELL_FOLDER/update.d/$i" $1 $2 $3 +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/user2/commitsonpr.git/hooks/update.d/gitea b/tests/gitea-repositories-meta/user2/commitsonpr.git/hooks/update.d/gitea new file mode 100755 index 0000000000000..38101c242664a --- /dev/null +++ b/tests/gitea-repositories-meta/user2/commitsonpr.git/hooks/update.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" update $1 $2 $3 diff --git a/tests/gitea-repositories-meta/user2/git_hooks_test.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/user2/git_hooks_test.git/hooks/proc-receive.d/gitea new file mode 100755 index 0000000000000..e69de29bb2d1d diff --git a/tests/gitea-repositories-meta/user2/glob.git/hooks/post-receive b/tests/gitea-repositories-meta/user2/glob.git/hooks/post-receive new file mode 100755 index 0000000000000..4b3d452abcce2 --- /dev/null +++ b/tests/gitea-repositories-meta/user2/glob.git/hooks/post-receive @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/post-receive.d"`; do + sh "$SHELL_FOLDER/post-receive.d/$i" +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/user2/glob.git/hooks/post-receive.d/gitea b/tests/gitea-repositories-meta/user2/glob.git/hooks/post-receive.d/gitea new file mode 100755 index 0000000000000..43a948da3a983 --- /dev/null +++ b/tests/gitea-repositories-meta/user2/glob.git/hooks/post-receive.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" post-receive diff --git a/tests/gitea-repositories-meta/user2/glob.git/hooks/pre-receive b/tests/gitea-repositories-meta/user2/glob.git/hooks/pre-receive new file mode 100755 index 0000000000000..412701305369c --- /dev/null +++ b/tests/gitea-repositories-meta/user2/glob.git/hooks/pre-receive @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/pre-receive.d"`; do + sh "$SHELL_FOLDER/pre-receive.d/$i" +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/user2/glob.git/hooks/pre-receive.d/gitea b/tests/gitea-repositories-meta/user2/glob.git/hooks/pre-receive.d/gitea new file mode 100755 index 0000000000000..49d09406364a5 --- /dev/null +++ b/tests/gitea-repositories-meta/user2/glob.git/hooks/pre-receive.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" pre-receive diff --git a/tests/gitea-repositories-meta/user2/glob.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/user2/glob.git/hooks/proc-receive.d/gitea new file mode 100755 index 0000000000000..e69de29bb2d1d diff --git a/tests/gitea-repositories-meta/user2/glob.git/hooks/update b/tests/gitea-repositories-meta/user2/glob.git/hooks/update new file mode 100755 index 0000000000000..c186fe4a18b0f --- /dev/null +++ b/tests/gitea-repositories-meta/user2/glob.git/hooks/update @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/update.d"`; do + sh "$SHELL_FOLDER/update.d/$i" $1 $2 $3 +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/user2/glob.git/hooks/update.d/gitea b/tests/gitea-repositories-meta/user2/glob.git/hooks/update.d/gitea new file mode 100755 index 0000000000000..38101c242664a --- /dev/null +++ b/tests/gitea-repositories-meta/user2/glob.git/hooks/update.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" update $1 $2 $3 diff --git a/tests/gitea-repositories-meta/user2/lfs.git/hooks/post-receive b/tests/gitea-repositories-meta/user2/lfs.git/hooks/post-receive new file mode 100755 index 0000000000000..4b3d452abcce2 --- /dev/null +++ b/tests/gitea-repositories-meta/user2/lfs.git/hooks/post-receive @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/post-receive.d"`; do + sh "$SHELL_FOLDER/post-receive.d/$i" +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/user2/lfs.git/hooks/post-receive.d/gitea b/tests/gitea-repositories-meta/user2/lfs.git/hooks/post-receive.d/gitea new file mode 100755 index 0000000000000..43a948da3a983 --- /dev/null +++ b/tests/gitea-repositories-meta/user2/lfs.git/hooks/post-receive.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" post-receive diff --git a/tests/gitea-repositories-meta/user2/lfs.git/hooks/pre-receive b/tests/gitea-repositories-meta/user2/lfs.git/hooks/pre-receive new file mode 100755 index 0000000000000..412701305369c --- /dev/null +++ b/tests/gitea-repositories-meta/user2/lfs.git/hooks/pre-receive @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/pre-receive.d"`; do + sh "$SHELL_FOLDER/pre-receive.d/$i" +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/user2/lfs.git/hooks/pre-receive.d/gitea b/tests/gitea-repositories-meta/user2/lfs.git/hooks/pre-receive.d/gitea new file mode 100755 index 0000000000000..49d09406364a5 --- /dev/null +++ b/tests/gitea-repositories-meta/user2/lfs.git/hooks/pre-receive.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" pre-receive diff --git a/tests/gitea-repositories-meta/user2/lfs.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/user2/lfs.git/hooks/proc-receive.d/gitea new file mode 100755 index 0000000000000..e69de29bb2d1d diff --git a/tests/gitea-repositories-meta/user2/lfs.git/hooks/update b/tests/gitea-repositories-meta/user2/lfs.git/hooks/update new file mode 100755 index 0000000000000..c186fe4a18b0f --- /dev/null +++ b/tests/gitea-repositories-meta/user2/lfs.git/hooks/update @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/update.d"`; do + sh "$SHELL_FOLDER/update.d/$i" $1 $2 $3 +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/user2/lfs.git/hooks/update.d/gitea b/tests/gitea-repositories-meta/user2/lfs.git/hooks/update.d/gitea new file mode 100755 index 0000000000000..38101c242664a --- /dev/null +++ b/tests/gitea-repositories-meta/user2/lfs.git/hooks/update.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" update $1 $2 $3 diff --git a/tests/gitea-repositories-meta/user2/readme-test.git/hooks/post-receive b/tests/gitea-repositories-meta/user2/readme-test.git/hooks/post-receive new file mode 100755 index 0000000000000..4b3d452abcce2 --- /dev/null +++ b/tests/gitea-repositories-meta/user2/readme-test.git/hooks/post-receive @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/post-receive.d"`; do + sh "$SHELL_FOLDER/post-receive.d/$i" +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/user2/readme-test.git/hooks/post-receive.d/gitea b/tests/gitea-repositories-meta/user2/readme-test.git/hooks/post-receive.d/gitea new file mode 100755 index 0000000000000..43a948da3a983 --- /dev/null +++ b/tests/gitea-repositories-meta/user2/readme-test.git/hooks/post-receive.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" post-receive diff --git a/tests/gitea-repositories-meta/user2/readme-test.git/hooks/pre-receive b/tests/gitea-repositories-meta/user2/readme-test.git/hooks/pre-receive new file mode 100755 index 0000000000000..412701305369c --- /dev/null +++ b/tests/gitea-repositories-meta/user2/readme-test.git/hooks/pre-receive @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/pre-receive.d"`; do + sh "$SHELL_FOLDER/pre-receive.d/$i" +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/user2/readme-test.git/hooks/pre-receive.d/gitea b/tests/gitea-repositories-meta/user2/readme-test.git/hooks/pre-receive.d/gitea new file mode 100755 index 0000000000000..49d09406364a5 --- /dev/null +++ b/tests/gitea-repositories-meta/user2/readme-test.git/hooks/pre-receive.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" pre-receive diff --git a/tests/gitea-repositories-meta/user2/readme-test.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/user2/readme-test.git/hooks/proc-receive.d/gitea new file mode 100755 index 0000000000000..e69de29bb2d1d diff --git a/tests/gitea-repositories-meta/user2/readme-test.git/hooks/update b/tests/gitea-repositories-meta/user2/readme-test.git/hooks/update new file mode 100755 index 0000000000000..c186fe4a18b0f --- /dev/null +++ b/tests/gitea-repositories-meta/user2/readme-test.git/hooks/update @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/update.d"`; do + sh "$SHELL_FOLDER/update.d/$i" $1 $2 $3 +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/user2/readme-test.git/hooks/update.d/gitea b/tests/gitea-repositories-meta/user2/readme-test.git/hooks/update.d/gitea new file mode 100755 index 0000000000000..38101c242664a --- /dev/null +++ b/tests/gitea-repositories-meta/user2/readme-test.git/hooks/update.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" update $1 $2 $3 diff --git a/tests/gitea-repositories-meta/user2/repo-release.git/hooks/post-receive b/tests/gitea-repositories-meta/user2/repo-release.git/hooks/post-receive new file mode 100755 index 0000000000000..4b3d452abcce2 --- /dev/null +++ b/tests/gitea-repositories-meta/user2/repo-release.git/hooks/post-receive @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/post-receive.d"`; do + sh "$SHELL_FOLDER/post-receive.d/$i" +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/user2/repo-release.git/hooks/post-receive.d/gitea b/tests/gitea-repositories-meta/user2/repo-release.git/hooks/post-receive.d/gitea new file mode 100755 index 0000000000000..43a948da3a983 --- /dev/null +++ b/tests/gitea-repositories-meta/user2/repo-release.git/hooks/post-receive.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" post-receive diff --git a/tests/gitea-repositories-meta/user2/repo-release.git/hooks/pre-receive b/tests/gitea-repositories-meta/user2/repo-release.git/hooks/pre-receive new file mode 100755 index 0000000000000..412701305369c --- /dev/null +++ b/tests/gitea-repositories-meta/user2/repo-release.git/hooks/pre-receive @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/pre-receive.d"`; do + sh "$SHELL_FOLDER/pre-receive.d/$i" +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/user2/repo-release.git/hooks/pre-receive.d/gitea b/tests/gitea-repositories-meta/user2/repo-release.git/hooks/pre-receive.d/gitea new file mode 100755 index 0000000000000..49d09406364a5 --- /dev/null +++ b/tests/gitea-repositories-meta/user2/repo-release.git/hooks/pre-receive.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" pre-receive diff --git a/tests/gitea-repositories-meta/user2/repo-release.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/user2/repo-release.git/hooks/proc-receive.d/gitea new file mode 100755 index 0000000000000..e69de29bb2d1d diff --git a/tests/gitea-repositories-meta/user2/repo-release.git/hooks/update b/tests/gitea-repositories-meta/user2/repo-release.git/hooks/update new file mode 100755 index 0000000000000..c186fe4a18b0f --- /dev/null +++ b/tests/gitea-repositories-meta/user2/repo-release.git/hooks/update @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/update.d"`; do + sh "$SHELL_FOLDER/update.d/$i" $1 $2 $3 +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/user2/repo-release.git/hooks/update.d/gitea b/tests/gitea-repositories-meta/user2/repo-release.git/hooks/update.d/gitea new file mode 100755 index 0000000000000..38101c242664a --- /dev/null +++ b/tests/gitea-repositories-meta/user2/repo-release.git/hooks/update.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" update $1 $2 $3 diff --git a/tests/gitea-repositories-meta/user2/repo1.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/user2/repo1.git/hooks/proc-receive.d/gitea new file mode 100755 index 0000000000000..e69de29bb2d1d diff --git a/tests/gitea-repositories-meta/user2/repo15.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/user2/repo15.git/hooks/proc-receive.d/gitea new file mode 100755 index 0000000000000..e69de29bb2d1d diff --git a/tests/gitea-repositories-meta/user2/repo16.git/hooks/post-receive b/tests/gitea-repositories-meta/user2/repo16.git/hooks/post-receive new file mode 100755 index 0000000000000..4b3d452abcce2 --- /dev/null +++ b/tests/gitea-repositories-meta/user2/repo16.git/hooks/post-receive @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/post-receive.d"`; do + sh "$SHELL_FOLDER/post-receive.d/$i" +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/user2/repo16.git/hooks/post-receive.d/gitea b/tests/gitea-repositories-meta/user2/repo16.git/hooks/post-receive.d/gitea new file mode 100755 index 0000000000000..43a948da3a983 --- /dev/null +++ b/tests/gitea-repositories-meta/user2/repo16.git/hooks/post-receive.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" post-receive diff --git a/tests/gitea-repositories-meta/user2/repo16.git/hooks/pre-receive b/tests/gitea-repositories-meta/user2/repo16.git/hooks/pre-receive new file mode 100755 index 0000000000000..412701305369c --- /dev/null +++ b/tests/gitea-repositories-meta/user2/repo16.git/hooks/pre-receive @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/pre-receive.d"`; do + sh "$SHELL_FOLDER/pre-receive.d/$i" +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/user2/repo16.git/hooks/pre-receive.d/gitea b/tests/gitea-repositories-meta/user2/repo16.git/hooks/pre-receive.d/gitea new file mode 100755 index 0000000000000..49d09406364a5 --- /dev/null +++ b/tests/gitea-repositories-meta/user2/repo16.git/hooks/pre-receive.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" pre-receive diff --git a/tests/gitea-repositories-meta/user2/repo16.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/user2/repo16.git/hooks/proc-receive.d/gitea new file mode 100755 index 0000000000000..e69de29bb2d1d diff --git a/tests/gitea-repositories-meta/user2/repo16.git/hooks/update b/tests/gitea-repositories-meta/user2/repo16.git/hooks/update new file mode 100755 index 0000000000000..c186fe4a18b0f --- /dev/null +++ b/tests/gitea-repositories-meta/user2/repo16.git/hooks/update @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/update.d"`; do + sh "$SHELL_FOLDER/update.d/$i" $1 $2 $3 +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/user2/repo16.git/hooks/update.d/gitea b/tests/gitea-repositories-meta/user2/repo16.git/hooks/update.d/gitea new file mode 100755 index 0000000000000..38101c242664a --- /dev/null +++ b/tests/gitea-repositories-meta/user2/repo16.git/hooks/update.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" update $1 $2 $3 diff --git a/tests/gitea-repositories-meta/user2/repo2.git/hooks/post-receive b/tests/gitea-repositories-meta/user2/repo2.git/hooks/post-receive new file mode 100755 index 0000000000000..4b3d452abcce2 --- /dev/null +++ b/tests/gitea-repositories-meta/user2/repo2.git/hooks/post-receive @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/post-receive.d"`; do + sh "$SHELL_FOLDER/post-receive.d/$i" +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/user2/repo2.git/hooks/post-receive.d/gitea b/tests/gitea-repositories-meta/user2/repo2.git/hooks/post-receive.d/gitea new file mode 100755 index 0000000000000..43a948da3a983 --- /dev/null +++ b/tests/gitea-repositories-meta/user2/repo2.git/hooks/post-receive.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" post-receive diff --git a/tests/gitea-repositories-meta/user2/repo2.git/hooks/pre-receive b/tests/gitea-repositories-meta/user2/repo2.git/hooks/pre-receive new file mode 100755 index 0000000000000..412701305369c --- /dev/null +++ b/tests/gitea-repositories-meta/user2/repo2.git/hooks/pre-receive @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/pre-receive.d"`; do + sh "$SHELL_FOLDER/pre-receive.d/$i" +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/user2/repo2.git/hooks/pre-receive.d/gitea b/tests/gitea-repositories-meta/user2/repo2.git/hooks/pre-receive.d/gitea new file mode 100755 index 0000000000000..49d09406364a5 --- /dev/null +++ b/tests/gitea-repositories-meta/user2/repo2.git/hooks/pre-receive.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" pre-receive diff --git a/tests/gitea-repositories-meta/user2/repo2.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/user2/repo2.git/hooks/proc-receive.d/gitea new file mode 100755 index 0000000000000..e69de29bb2d1d diff --git a/tests/gitea-repositories-meta/user2/repo2.git/hooks/update b/tests/gitea-repositories-meta/user2/repo2.git/hooks/update new file mode 100755 index 0000000000000..c186fe4a18b0f --- /dev/null +++ b/tests/gitea-repositories-meta/user2/repo2.git/hooks/update @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/update.d"`; do + sh "$SHELL_FOLDER/update.d/$i" $1 $2 $3 +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/user2/repo2.git/hooks/update.d/gitea b/tests/gitea-repositories-meta/user2/repo2.git/hooks/update.d/gitea new file mode 100755 index 0000000000000..38101c242664a --- /dev/null +++ b/tests/gitea-repositories-meta/user2/repo2.git/hooks/update.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" update $1 $2 $3 diff --git a/tests/gitea-repositories-meta/user2/repo20.git/hooks/post-receive b/tests/gitea-repositories-meta/user2/repo20.git/hooks/post-receive index f1f2709dddeea..4b3d452abcce2 100755 --- a/tests/gitea-repositories-meta/user2/repo20.git/hooks/post-receive +++ b/tests/gitea-repositories-meta/user2/repo20.git/hooks/post-receive @@ -1,15 +1,7 @@ #!/usr/bin/env bash -data=$(cat) -exitcodes="" -hookname=$(basename $0) -GIT_DIR=${GIT_DIR:-$(dirname $0)} - -for hook in ${GIT_DIR}/hooks/${hookname}.d/*; do -test -x "${hook}" && test -f "${hook}" || continue -echo "${data}" | "${hook}" -exitcodes="${exitcodes} $?" -done - -for i in ${exitcodes}; do -[ ${i} -eq 0 ] || exit ${i} -done +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/post-receive.d"`; do + sh "$SHELL_FOLDER/post-receive.d/$i" +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/user2/repo20.git/hooks/pre-receive b/tests/gitea-repositories-meta/user2/repo20.git/hooks/pre-receive index f1f2709dddeea..412701305369c 100755 --- a/tests/gitea-repositories-meta/user2/repo20.git/hooks/pre-receive +++ b/tests/gitea-repositories-meta/user2/repo20.git/hooks/pre-receive @@ -1,15 +1,7 @@ #!/usr/bin/env bash -data=$(cat) -exitcodes="" -hookname=$(basename $0) -GIT_DIR=${GIT_DIR:-$(dirname $0)} - -for hook in ${GIT_DIR}/hooks/${hookname}.d/*; do -test -x "${hook}" && test -f "${hook}" || continue -echo "${data}" | "${hook}" -exitcodes="${exitcodes} $?" -done - -for i in ${exitcodes}; do -[ ${i} -eq 0 ] || exit ${i} -done +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/pre-receive.d"`; do + sh "$SHELL_FOLDER/pre-receive.d/$i" +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/user2/repo20.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/user2/repo20.git/hooks/proc-receive.d/gitea new file mode 100755 index 0000000000000..e69de29bb2d1d diff --git a/tests/gitea-repositories-meta/user2/repo20.git/hooks/update b/tests/gitea-repositories-meta/user2/repo20.git/hooks/update index df5bd27f106f2..c186fe4a18b0f 100755 --- a/tests/gitea-repositories-meta/user2/repo20.git/hooks/update +++ b/tests/gitea-repositories-meta/user2/repo20.git/hooks/update @@ -1,14 +1,7 @@ #!/usr/bin/env bash -exitcodes="" -hookname=$(basename $0) -GIT_DIR=${GIT_DIR:-$(dirname $0)} - -for hook in ${GIT_DIR}/hooks/${hookname}.d/*; do -test -x "${hook}" && test -f "${hook}" || continue -"${hook}" $1 $2 $3 -exitcodes="${exitcodes} $?" -done - -for i in ${exitcodes}; do -[ ${i} -eq 0 ] || exit ${i} -done +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/update.d"`; do + sh "$SHELL_FOLDER/update.d/$i" $1 $2 $3 +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/user2/utf8.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/user2/utf8.git/hooks/proc-receive.d/gitea new file mode 100755 index 0000000000000..e69de29bb2d1d diff --git a/tests/gitea-repositories-meta/user27/repo49.git/hooks/post-receive b/tests/gitea-repositories-meta/user27/repo49.git/hooks/post-receive old mode 100644 new mode 100755 index f1f2709dddeea..4b3d452abcce2 --- a/tests/gitea-repositories-meta/user27/repo49.git/hooks/post-receive +++ b/tests/gitea-repositories-meta/user27/repo49.git/hooks/post-receive @@ -1,15 +1,7 @@ #!/usr/bin/env bash -data=$(cat) -exitcodes="" -hookname=$(basename $0) -GIT_DIR=${GIT_DIR:-$(dirname $0)} - -for hook in ${GIT_DIR}/hooks/${hookname}.d/*; do -test -x "${hook}" && test -f "${hook}" || continue -echo "${data}" | "${hook}" -exitcodes="${exitcodes} $?" -done - -for i in ${exitcodes}; do -[ ${i} -eq 0 ] || exit ${i} -done +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/post-receive.d"`; do + sh "$SHELL_FOLDER/post-receive.d/$i" +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/user27/repo49.git/hooks/post-receive.d/gitea b/tests/gitea-repositories-meta/user27/repo49.git/hooks/post-receive.d/gitea old mode 100644 new mode 100755 diff --git a/tests/gitea-repositories-meta/user27/repo49.git/hooks/pre-receive b/tests/gitea-repositories-meta/user27/repo49.git/hooks/pre-receive old mode 100644 new mode 100755 index f1f2709dddeea..412701305369c --- a/tests/gitea-repositories-meta/user27/repo49.git/hooks/pre-receive +++ b/tests/gitea-repositories-meta/user27/repo49.git/hooks/pre-receive @@ -1,15 +1,7 @@ #!/usr/bin/env bash -data=$(cat) -exitcodes="" -hookname=$(basename $0) -GIT_DIR=${GIT_DIR:-$(dirname $0)} - -for hook in ${GIT_DIR}/hooks/${hookname}.d/*; do -test -x "${hook}" && test -f "${hook}" || continue -echo "${data}" | "${hook}" -exitcodes="${exitcodes} $?" -done - -for i in ${exitcodes}; do -[ ${i} -eq 0 ] || exit ${i} -done +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/pre-receive.d"`; do + sh "$SHELL_FOLDER/pre-receive.d/$i" +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/user27/repo49.git/hooks/pre-receive.d/gitea b/tests/gitea-repositories-meta/user27/repo49.git/hooks/pre-receive.d/gitea old mode 100644 new mode 100755 diff --git a/tests/gitea-repositories-meta/user27/repo49.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/user27/repo49.git/hooks/proc-receive.d/gitea new file mode 100755 index 0000000000000..e69de29bb2d1d diff --git a/tests/gitea-repositories-meta/user27/repo49.git/hooks/update b/tests/gitea-repositories-meta/user27/repo49.git/hooks/update old mode 100644 new mode 100755 index df5bd27f106f2..c186fe4a18b0f --- a/tests/gitea-repositories-meta/user27/repo49.git/hooks/update +++ b/tests/gitea-repositories-meta/user27/repo49.git/hooks/update @@ -1,14 +1,7 @@ #!/usr/bin/env bash -exitcodes="" -hookname=$(basename $0) -GIT_DIR=${GIT_DIR:-$(dirname $0)} - -for hook in ${GIT_DIR}/hooks/${hookname}.d/*; do -test -x "${hook}" && test -f "${hook}" || continue -"${hook}" $1 $2 $3 -exitcodes="${exitcodes} $?" -done - -for i in ${exitcodes}; do -[ ${i} -eq 0 ] || exit ${i} -done +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/update.d"`; do + sh "$SHELL_FOLDER/update.d/$i" $1 $2 $3 +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/user27/repo49.git/hooks/update.d/gitea b/tests/gitea-repositories-meta/user27/repo49.git/hooks/update.d/gitea old mode 100644 new mode 100755 diff --git a/tests/gitea-repositories-meta/user27/template1.git/hooks/post-receive b/tests/gitea-repositories-meta/user27/template1.git/hooks/post-receive old mode 100644 new mode 100755 index f1f2709dddeea..4b3d452abcce2 --- a/tests/gitea-repositories-meta/user27/template1.git/hooks/post-receive +++ b/tests/gitea-repositories-meta/user27/template1.git/hooks/post-receive @@ -1,15 +1,7 @@ #!/usr/bin/env bash -data=$(cat) -exitcodes="" -hookname=$(basename $0) -GIT_DIR=${GIT_DIR:-$(dirname $0)} - -for hook in ${GIT_DIR}/hooks/${hookname}.d/*; do -test -x "${hook}" && test -f "${hook}" || continue -echo "${data}" | "${hook}" -exitcodes="${exitcodes} $?" -done - -for i in ${exitcodes}; do -[ ${i} -eq 0 ] || exit ${i} -done +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/post-receive.d"`; do + sh "$SHELL_FOLDER/post-receive.d/$i" +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/user27/template1.git/hooks/post-receive.d/gitea b/tests/gitea-repositories-meta/user27/template1.git/hooks/post-receive.d/gitea old mode 100644 new mode 100755 diff --git a/tests/gitea-repositories-meta/user27/template1.git/hooks/pre-receive b/tests/gitea-repositories-meta/user27/template1.git/hooks/pre-receive old mode 100644 new mode 100755 index f1f2709dddeea..412701305369c --- a/tests/gitea-repositories-meta/user27/template1.git/hooks/pre-receive +++ b/tests/gitea-repositories-meta/user27/template1.git/hooks/pre-receive @@ -1,15 +1,7 @@ #!/usr/bin/env bash -data=$(cat) -exitcodes="" -hookname=$(basename $0) -GIT_DIR=${GIT_DIR:-$(dirname $0)} - -for hook in ${GIT_DIR}/hooks/${hookname}.d/*; do -test -x "${hook}" && test -f "${hook}" || continue -echo "${data}" | "${hook}" -exitcodes="${exitcodes} $?" -done - -for i in ${exitcodes}; do -[ ${i} -eq 0 ] || exit ${i} -done +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/pre-receive.d"`; do + sh "$SHELL_FOLDER/pre-receive.d/$i" +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/user27/template1.git/hooks/pre-receive.d/gitea b/tests/gitea-repositories-meta/user27/template1.git/hooks/pre-receive.d/gitea old mode 100644 new mode 100755 diff --git a/tests/gitea-repositories-meta/user27/template1.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/user27/template1.git/hooks/proc-receive.d/gitea new file mode 100755 index 0000000000000..e69de29bb2d1d diff --git a/tests/gitea-repositories-meta/user27/template1.git/hooks/update b/tests/gitea-repositories-meta/user27/template1.git/hooks/update old mode 100644 new mode 100755 index df5bd27f106f2..c186fe4a18b0f --- a/tests/gitea-repositories-meta/user27/template1.git/hooks/update +++ b/tests/gitea-repositories-meta/user27/template1.git/hooks/update @@ -1,14 +1,7 @@ #!/usr/bin/env bash -exitcodes="" -hookname=$(basename $0) -GIT_DIR=${GIT_DIR:-$(dirname $0)} - -for hook in ${GIT_DIR}/hooks/${hookname}.d/*; do -test -x "${hook}" && test -f "${hook}" || continue -"${hook}" $1 $2 $3 -exitcodes="${exitcodes} $?" -done - -for i in ${exitcodes}; do -[ ${i} -eq 0 ] || exit ${i} -done +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/update.d"`; do + sh "$SHELL_FOLDER/update.d/$i" $1 $2 $3 +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/user27/template1.git/hooks/update.d/gitea b/tests/gitea-repositories-meta/user27/template1.git/hooks/update.d/gitea old mode 100644 new mode 100755 diff --git a/tests/gitea-repositories-meta/user3/repo3.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/user3/repo3.git/hooks/proc-receive.d/gitea new file mode 100755 index 0000000000000..e69de29bb2d1d diff --git a/tests/gitea-repositories-meta/user3/repo5.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/user3/repo5.git/hooks/proc-receive.d/gitea new file mode 100755 index 0000000000000..e69de29bb2d1d diff --git a/tests/gitea-repositories-meta/user30/renderer.git/hooks/post-receive b/tests/gitea-repositories-meta/user30/renderer.git/hooks/post-receive old mode 100644 new mode 100755 index f1f2709dddeea..4b3d452abcce2 --- a/tests/gitea-repositories-meta/user30/renderer.git/hooks/post-receive +++ b/tests/gitea-repositories-meta/user30/renderer.git/hooks/post-receive @@ -1,15 +1,7 @@ #!/usr/bin/env bash -data=$(cat) -exitcodes="" -hookname=$(basename $0) -GIT_DIR=${GIT_DIR:-$(dirname $0)} - -for hook in ${GIT_DIR}/hooks/${hookname}.d/*; do -test -x "${hook}" && test -f "${hook}" || continue -echo "${data}" | "${hook}" -exitcodes="${exitcodes} $?" -done - -for i in ${exitcodes}; do -[ ${i} -eq 0 ] || exit ${i} -done +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/post-receive.d"`; do + sh "$SHELL_FOLDER/post-receive.d/$i" +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/user30/renderer.git/hooks/post-receive.d/gitea b/tests/gitea-repositories-meta/user30/renderer.git/hooks/post-receive.d/gitea old mode 100644 new mode 100755 diff --git a/tests/gitea-repositories-meta/user30/renderer.git/hooks/pre-receive b/tests/gitea-repositories-meta/user30/renderer.git/hooks/pre-receive old mode 100644 new mode 100755 index f1f2709dddeea..412701305369c --- a/tests/gitea-repositories-meta/user30/renderer.git/hooks/pre-receive +++ b/tests/gitea-repositories-meta/user30/renderer.git/hooks/pre-receive @@ -1,15 +1,7 @@ #!/usr/bin/env bash -data=$(cat) -exitcodes="" -hookname=$(basename $0) -GIT_DIR=${GIT_DIR:-$(dirname $0)} - -for hook in ${GIT_DIR}/hooks/${hookname}.d/*; do -test -x "${hook}" && test -f "${hook}" || continue -echo "${data}" | "${hook}" -exitcodes="${exitcodes} $?" -done - -for i in ${exitcodes}; do -[ ${i} -eq 0 ] || exit ${i} -done +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/pre-receive.d"`; do + sh "$SHELL_FOLDER/pre-receive.d/$i" +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/user30/renderer.git/hooks/pre-receive.d/gitea b/tests/gitea-repositories-meta/user30/renderer.git/hooks/pre-receive.d/gitea old mode 100644 new mode 100755 diff --git a/tests/gitea-repositories-meta/user30/renderer.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/user30/renderer.git/hooks/proc-receive.d/gitea new file mode 100755 index 0000000000000..e69de29bb2d1d diff --git a/tests/gitea-repositories-meta/user30/renderer.git/hooks/update b/tests/gitea-repositories-meta/user30/renderer.git/hooks/update old mode 100644 new mode 100755 index df5bd27f106f2..c186fe4a18b0f --- a/tests/gitea-repositories-meta/user30/renderer.git/hooks/update +++ b/tests/gitea-repositories-meta/user30/renderer.git/hooks/update @@ -1,14 +1,7 @@ #!/usr/bin/env bash -exitcodes="" -hookname=$(basename $0) -GIT_DIR=${GIT_DIR:-$(dirname $0)} - -for hook in ${GIT_DIR}/hooks/${hookname}.d/*; do -test -x "${hook}" && test -f "${hook}" || continue -"${hook}" $1 $2 $3 -exitcodes="${exitcodes} $?" -done - -for i in ${exitcodes}; do -[ ${i} -eq 0 ] || exit ${i} -done +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/update.d"`; do + sh "$SHELL_FOLDER/update.d/$i" $1 $2 $3 +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/user30/renderer.git/hooks/update.d/gitea b/tests/gitea-repositories-meta/user30/renderer.git/hooks/update.d/gitea old mode 100644 new mode 100755 diff --git a/tests/gitea-repositories-meta/user5/repo4.git/hooks/post-receive b/tests/gitea-repositories-meta/user5/repo4.git/hooks/post-receive new file mode 100755 index 0000000000000..4b3d452abcce2 --- /dev/null +++ b/tests/gitea-repositories-meta/user5/repo4.git/hooks/post-receive @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/post-receive.d"`; do + sh "$SHELL_FOLDER/post-receive.d/$i" +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/user5/repo4.git/hooks/post-receive.d/gitea b/tests/gitea-repositories-meta/user5/repo4.git/hooks/post-receive.d/gitea new file mode 100755 index 0000000000000..43a948da3a983 --- /dev/null +++ b/tests/gitea-repositories-meta/user5/repo4.git/hooks/post-receive.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" post-receive diff --git a/tests/gitea-repositories-meta/user5/repo4.git/hooks/pre-receive b/tests/gitea-repositories-meta/user5/repo4.git/hooks/pre-receive new file mode 100755 index 0000000000000..412701305369c --- /dev/null +++ b/tests/gitea-repositories-meta/user5/repo4.git/hooks/pre-receive @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/pre-receive.d"`; do + sh "$SHELL_FOLDER/pre-receive.d/$i" +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/user5/repo4.git/hooks/pre-receive.d/gitea b/tests/gitea-repositories-meta/user5/repo4.git/hooks/pre-receive.d/gitea new file mode 100755 index 0000000000000..49d09406364a5 --- /dev/null +++ b/tests/gitea-repositories-meta/user5/repo4.git/hooks/pre-receive.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" pre-receive diff --git a/tests/gitea-repositories-meta/user5/repo4.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/user5/repo4.git/hooks/proc-receive.d/gitea new file mode 100755 index 0000000000000..e69de29bb2d1d diff --git a/tests/gitea-repositories-meta/user5/repo4.git/hooks/update b/tests/gitea-repositories-meta/user5/repo4.git/hooks/update new file mode 100755 index 0000000000000..c186fe4a18b0f --- /dev/null +++ b/tests/gitea-repositories-meta/user5/repo4.git/hooks/update @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/update.d"`; do + sh "$SHELL_FOLDER/update.d/$i" $1 $2 $3 +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/user5/repo4.git/hooks/update.d/gitea b/tests/gitea-repositories-meta/user5/repo4.git/hooks/update.d/gitea new file mode 100755 index 0000000000000..38101c242664a --- /dev/null +++ b/tests/gitea-repositories-meta/user5/repo4.git/hooks/update.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" update $1 $2 $3 From 52f9ebd244b1b557123e0c398a1dce522ef797ac Mon Sep 17 00:00:00 2001 From: a1012112796 <1012112796@qq.com> Date: Sat, 19 Aug 2023 10:43:23 +0000 Subject: [PATCH 03/26] help docs Signed-off-by: a1012112796 <1012112796@qq.com> --- models/fixtures/oauth2_application.md | 1 + models/fixtures/user.md | 3 +++ 2 files changed, 4 insertions(+) create mode 100644 models/fixtures/oauth2_application.md create mode 100644 models/fixtures/user.md diff --git a/models/fixtures/oauth2_application.md b/models/fixtures/oauth2_application.md new file mode 100644 index 0000000000000..dc065e451d587 --- /dev/null +++ b/models/fixtures/oauth2_application.md @@ -0,0 +1 @@ +# Code Verifier: N1Zo9-8Rfwhkt68r1r29ty8YwIraXR8eh_1Qwxg7yQXsonBt diff --git a/models/fixtures/user.md b/models/fixtures/user.md new file mode 100644 index 0000000000000..2e5611c78cbb8 --- /dev/null +++ b/models/fixtures/user.md @@ -0,0 +1,3 @@ +- NOTE: all users should have a password of "password" + +- NOTE: this user (id=1) is the admin From 81ca3232e94c678c7db04b1a2f143847c98983c5 Mon Sep 17 00:00:00 2001 From: a1012112796 <1012112796@qq.com> Date: Mon, 21 Aug 2023 07:29:52 +0000 Subject: [PATCH 04/26] Revert "add auto updated files" This reverts commit 615ccbbd8750b3907ce3fc24cf306dc6b11a0291. --- models/fixtures/access.yml | 146 +- models/fixtures/access_token.yml | 30 +- models/fixtures/action.yml | 146 +- models/fixtures/action_run.yml | 27 +- models/fixtures/action_run_job.yml | 22 +- models/fixtures/action_task.yml | 28 +- models/fixtures/attachment.yml | 155 +- models/fixtures/branch.yml | 65 +- models/fixtures/collaboration.yml | 47 +- models/fixtures/comment.yml | 276 +- models/fixtures/commit_status.yml | 56 +- models/fixtures/commit_status_index.yml | 5 +- models/fixtures/deploy_key.yml | 2 +- models/fixtures/email_address.yml | 349 +- models/fixtures/external_login_user.yml | 2 +- models/fixtures/follow.yml | 17 +- models/fixtures/gpg_key.yml | 2 +- models/fixtures/gpg_key_import.yml | 2 +- models/fixtures/hook_task.yml | 11 +- models/fixtures/issue.yml | 513 ++- models/fixtures/issue_assignees.yml | 12 +- models/fixtures/issue_index.yml | 27 +- models/fixtures/issue_label.yml | 15 +- models/fixtures/issue_user.yml | 25 +- models/fixtures/issue_watch.yml | 31 +- models/fixtures/label.yml | 152 +- models/fixtures/language_stat.yml | 28 - models/fixtures/lfs_meta_object.yml | 32 +- models/fixtures/login_source.yml | 2 +- models/fixtures/milestone.yml | 68 +- models/fixtures/mirror.yml | 59 +- models/fixtures/notice.yml | 20 +- models/fixtures/notification.yml | 69 +- models/fixtures/oauth2_application.yml | 26 +- models/fixtures/oauth2_authorization_code.yml | 21 +- models/fixtures/oauth2_grant.yml | 37 +- models/fixtures/org_user.yml | 123 +- models/fixtures/project.yml | 59 +- models/fixtures/project_board.yml | 35 +- models/fixtures/project_issue.yml | 27 +- models/fixtures/protected_branch.yml | 2 +- models/fixtures/public_key.yml | 14 +- models/fixtures/pull_request.yml | 187 +- models/fixtures/reaction.yml | 59 +- models/fixtures/release.yml | 258 +- models/fixtures/renamed_branch.yml | 4 +- models/fixtures/repo_archiver.yml | 2 +- models/fixtures/repo_indexer_status.yml | 85 +- models/fixtures/repo_redirect.yml | 5 +- models/fixtures/repo_topic.yml | 27 +- models/fixtures/repo_transfer.yml | 6 +- models/fixtures/repo_unit.yml | 372 +- models/fixtures/repository.yml | 3185 ++++++----------- models/fixtures/review.yml | 238 +- models/fixtures/star.yml | 9 +- models/fixtures/stopwatch.yml | 11 +- models/fixtures/system_setting.yml | 19 +- models/fixtures/team.yml | 259 +- models/fixtures/team_repo.yml | 65 +- models/fixtures/team_unit.yml | 248 +- models/fixtures/team_user.yml | 83 +- models/fixtures/topic.yml | 23 +- models/fixtures/tracked_time.yml | 71 +- models/fixtures/two_factor.yml | 11 +- models/fixtures/user.yml | 2344 ++++++------ models/fixtures/user_open_id.yml | 17 +- models/fixtures/user_redirect.yml | 3 +- models/fixtures/watch.yml | 39 +- models/fixtures/webauthn_credential.yml | 13 +- models/fixtures/webhook.yml | 67 +- .../hooks/post-receive | 7 - .../hooks/post-receive.d/gitea | 2 - .../hooks/pre-receive | 7 - .../hooks/pre-receive.d/gitea | 2 - .../hooks/proc-receive.d/gitea | 0 .../hooks/update | 7 - .../hooks/update.d/gitea | 2 - .../hooks/post-receive | 7 - .../hooks/post-receive.d/gitea | 2 - .../hooks/pre-receive | 7 - .../hooks/pre-receive.d/gitea | 2 - .../hooks/proc-receive.d/gitea | 0 .../hooks/update | 7 - .../hooks/update.d/gitea | 2 - .../migration/lfs-test.git/hooks/post-receive | 7 - .../lfs-test.git/hooks/post-receive.d/gitea | 2 - .../migration/lfs-test.git/hooks/pre-receive | 7 - .../lfs-test.git/hooks/pre-receive.d/gitea | 2 - .../migration/lfs-test.git/hooks/update | 7 - .../lfs-test.git/hooks/update.d/gitea | 2 - .../hooks/post-receive | 7 - .../hooks/post-receive.d/gitea | 2 - .../hooks/pre-receive | 7 - .../hooks/pre-receive.d/gitea | 2 - .../hooks/proc-receive.d/gitea | 0 .../repo_external_tracker.git/hooks/update | 7 - .../hooks/update.d/gitea | 2 - .../hooks/post-receive | 7 - .../hooks/post-receive.d/gitea | 2 - .../hooks/pre-receive | 7 - .../hooks/pre-receive.d/gitea | 2 - .../hooks/proc-receive.d/gitea | 0 .../hooks/update | 7 - .../hooks/update.d/gitea | 2 - .../hooks/post-receive | 7 - .../hooks/post-receive.d/gitea | 2 - .../hooks/pre-receive | 7 - .../hooks/pre-receive.d/gitea | 2 - .../hooks/proc-receive.d/gitea | 0 .../hooks/update | 7 - .../hooks/update.d/gitea | 2 - .../hooks/post-receive | 7 - .../hooks/post-receive.d/gitea | 2 - .../hooks/pre-receive | 7 - .../hooks/pre-receive.d/gitea | 2 - .../hooks/proc-receive.d/gitea | 0 .../hooks/update | 7 - .../hooks/update.d/gitea | 2 - .../hooks/post-receive | 7 - .../hooks/post-receive.d/gitea | 2 - .../hooks/pre-receive | 7 - .../hooks/pre-receive.d/gitea | 2 - .../hooks/proc-receive.d/gitea | 0 .../hooks/update | 7 - .../hooks/update.d/gitea | 2 - .../repo10.git/hooks/proc-receive.d/gitea | 0 .../repo11.git/hooks/proc-receive.d/gitea | 0 .../hooks/post-receive | 7 - .../hooks/post-receive.d/gitea | 2 - .../commits_search_test.git/hooks/pre-receive | 7 - .../hooks/pre-receive.d/gitea | 2 - .../hooks/proc-receive.d/gitea | 0 .../commits_search_test.git/hooks/update | 7 - .../hooks/update.d/gitea | 2 - .../user2/commitsonpr.git/hooks/post-receive | 7 - .../hooks/post-receive.d/gitea | 2 - .../user2/commitsonpr.git/hooks/pre-receive | 7 - .../commitsonpr.git/hooks/pre-receive.d/gitea | 2 - .../hooks/proc-receive.d/gitea | 0 .../user2/commitsonpr.git/hooks/update | 7 - .../commitsonpr.git/hooks/update.d/gitea | 2 - .../hooks/proc-receive.d/gitea | 0 .../user2/glob.git/hooks/post-receive | 7 - .../user2/glob.git/hooks/post-receive.d/gitea | 2 - .../user2/glob.git/hooks/pre-receive | 7 - .../user2/glob.git/hooks/pre-receive.d/gitea | 2 - .../user2/glob.git/hooks/proc-receive.d/gitea | 0 .../user2/glob.git/hooks/update | 7 - .../user2/glob.git/hooks/update.d/gitea | 2 - .../user2/lfs.git/hooks/post-receive | 7 - .../user2/lfs.git/hooks/post-receive.d/gitea | 2 - .../user2/lfs.git/hooks/pre-receive | 7 - .../user2/lfs.git/hooks/pre-receive.d/gitea | 2 - .../user2/lfs.git/hooks/proc-receive.d/gitea | 0 .../user2/lfs.git/hooks/update | 7 - .../user2/lfs.git/hooks/update.d/gitea | 2 - .../user2/readme-test.git/hooks/post-receive | 7 - .../hooks/post-receive.d/gitea | 2 - .../user2/readme-test.git/hooks/pre-receive | 7 - .../readme-test.git/hooks/pre-receive.d/gitea | 2 - .../hooks/proc-receive.d/gitea | 0 .../user2/readme-test.git/hooks/update | 7 - .../readme-test.git/hooks/update.d/gitea | 2 - .../user2/repo-release.git/hooks/post-receive | 7 - .../hooks/post-receive.d/gitea | 2 - .../user2/repo-release.git/hooks/pre-receive | 7 - .../hooks/pre-receive.d/gitea | 2 - .../hooks/proc-receive.d/gitea | 0 .../user2/repo-release.git/hooks/update | 7 - .../repo-release.git/hooks/update.d/gitea | 2 - .../repo1.git/hooks/proc-receive.d/gitea | 0 .../repo15.git/hooks/proc-receive.d/gitea | 0 .../user2/repo16.git/hooks/post-receive | 7 - .../repo16.git/hooks/post-receive.d/gitea | 2 - .../user2/repo16.git/hooks/pre-receive | 7 - .../repo16.git/hooks/pre-receive.d/gitea | 2 - .../repo16.git/hooks/proc-receive.d/gitea | 0 .../user2/repo16.git/hooks/update | 7 - .../user2/repo16.git/hooks/update.d/gitea | 2 - .../user2/repo2.git/hooks/post-receive | 7 - .../repo2.git/hooks/post-receive.d/gitea | 2 - .../user2/repo2.git/hooks/pre-receive | 7 - .../user2/repo2.git/hooks/pre-receive.d/gitea | 2 - .../repo2.git/hooks/proc-receive.d/gitea | 0 .../user2/repo2.git/hooks/update | 7 - .../user2/repo2.git/hooks/update.d/gitea | 2 - .../user2/repo20.git/hooks/post-receive | 20 +- .../user2/repo20.git/hooks/pre-receive | 20 +- .../repo20.git/hooks/proc-receive.d/gitea | 0 .../user2/repo20.git/hooks/update | 19 +- .../user2/utf8.git/hooks/proc-receive.d/gitea | 0 .../user27/repo49.git/hooks/post-receive | 20 +- .../repo49.git/hooks/post-receive.d/gitea | 0 .../user27/repo49.git/hooks/pre-receive | 20 +- .../repo49.git/hooks/pre-receive.d/gitea | 0 .../repo49.git/hooks/proc-receive.d/gitea | 0 .../user27/repo49.git/hooks/update | 19 +- .../user27/repo49.git/hooks/update.d/gitea | 0 .../user27/template1.git/hooks/post-receive | 20 +- .../template1.git/hooks/post-receive.d/gitea | 0 .../user27/template1.git/hooks/pre-receive | 20 +- .../template1.git/hooks/pre-receive.d/gitea | 0 .../template1.git/hooks/proc-receive.d/gitea | 0 .../user27/template1.git/hooks/update | 19 +- .../user27/template1.git/hooks/update.d/gitea | 0 .../repo3.git/hooks/proc-receive.d/gitea | 0 .../repo5.git/hooks/proc-receive.d/gitea | 0 .../user30/renderer.git/hooks/post-receive | 20 +- .../renderer.git/hooks/post-receive.d/gitea | 0 .../user30/renderer.git/hooks/pre-receive | 20 +- .../renderer.git/hooks/pre-receive.d/gitea | 0 .../renderer.git/hooks/proc-receive.d/gitea | 0 .../user30/renderer.git/hooks/update | 19 +- .../user30/renderer.git/hooks/update.d/gitea | 0 .../user5/repo4.git/hooks/post-receive | 7 - .../repo4.git/hooks/post-receive.d/gitea | 2 - .../user5/repo4.git/hooks/pre-receive | 7 - .../user5/repo4.git/hooks/pre-receive.d/gitea | 2 - .../repo4.git/hooks/proc-receive.d/gitea | 0 .../user5/repo4.git/hooks/update | 7 - .../user5/repo4.git/hooks/update.d/gitea | 2 - 221 files changed, 4834 insertions(+), 6356 deletions(-) delete mode 100644 models/fixtures/language_stat.yml delete mode 100755 tests/gitea-repositories-meta/limited_org/private_repo_on_limited_org.git/hooks/post-receive delete mode 100755 tests/gitea-repositories-meta/limited_org/private_repo_on_limited_org.git/hooks/post-receive.d/gitea delete mode 100755 tests/gitea-repositories-meta/limited_org/private_repo_on_limited_org.git/hooks/pre-receive delete mode 100755 tests/gitea-repositories-meta/limited_org/private_repo_on_limited_org.git/hooks/pre-receive.d/gitea delete mode 100755 tests/gitea-repositories-meta/limited_org/private_repo_on_limited_org.git/hooks/proc-receive.d/gitea delete mode 100755 tests/gitea-repositories-meta/limited_org/private_repo_on_limited_org.git/hooks/update delete mode 100755 tests/gitea-repositories-meta/limited_org/private_repo_on_limited_org.git/hooks/update.d/gitea delete mode 100755 tests/gitea-repositories-meta/limited_org/public_repo_on_limited_org.git/hooks/post-receive delete mode 100755 tests/gitea-repositories-meta/limited_org/public_repo_on_limited_org.git/hooks/post-receive.d/gitea delete mode 100755 tests/gitea-repositories-meta/limited_org/public_repo_on_limited_org.git/hooks/pre-receive delete mode 100755 tests/gitea-repositories-meta/limited_org/public_repo_on_limited_org.git/hooks/pre-receive.d/gitea delete mode 100755 tests/gitea-repositories-meta/limited_org/public_repo_on_limited_org.git/hooks/proc-receive.d/gitea delete mode 100755 tests/gitea-repositories-meta/limited_org/public_repo_on_limited_org.git/hooks/update delete mode 100755 tests/gitea-repositories-meta/limited_org/public_repo_on_limited_org.git/hooks/update.d/gitea delete mode 100755 tests/gitea-repositories-meta/migration/lfs-test.git/hooks/post-receive delete mode 100755 tests/gitea-repositories-meta/migration/lfs-test.git/hooks/post-receive.d/gitea delete mode 100755 tests/gitea-repositories-meta/migration/lfs-test.git/hooks/pre-receive delete mode 100755 tests/gitea-repositories-meta/migration/lfs-test.git/hooks/pre-receive.d/gitea delete mode 100755 tests/gitea-repositories-meta/migration/lfs-test.git/hooks/update delete mode 100755 tests/gitea-repositories-meta/migration/lfs-test.git/hooks/update.d/gitea delete mode 100755 tests/gitea-repositories-meta/org26/repo_external_tracker.git/hooks/post-receive delete mode 100755 tests/gitea-repositories-meta/org26/repo_external_tracker.git/hooks/post-receive.d/gitea delete mode 100755 tests/gitea-repositories-meta/org26/repo_external_tracker.git/hooks/pre-receive delete mode 100755 tests/gitea-repositories-meta/org26/repo_external_tracker.git/hooks/pre-receive.d/gitea delete mode 100755 tests/gitea-repositories-meta/org26/repo_external_tracker.git/hooks/proc-receive.d/gitea delete mode 100755 tests/gitea-repositories-meta/org26/repo_external_tracker.git/hooks/update delete mode 100755 tests/gitea-repositories-meta/org26/repo_external_tracker.git/hooks/update.d/gitea delete mode 100755 tests/gitea-repositories-meta/org26/repo_external_tracker_alpha.git/hooks/post-receive delete mode 100755 tests/gitea-repositories-meta/org26/repo_external_tracker_alpha.git/hooks/post-receive.d/gitea delete mode 100755 tests/gitea-repositories-meta/org26/repo_external_tracker_alpha.git/hooks/pre-receive delete mode 100755 tests/gitea-repositories-meta/org26/repo_external_tracker_alpha.git/hooks/pre-receive.d/gitea delete mode 100755 tests/gitea-repositories-meta/org26/repo_external_tracker_alpha.git/hooks/proc-receive.d/gitea delete mode 100755 tests/gitea-repositories-meta/org26/repo_external_tracker_alpha.git/hooks/update delete mode 100755 tests/gitea-repositories-meta/org26/repo_external_tracker_alpha.git/hooks/update.d/gitea delete mode 100755 tests/gitea-repositories-meta/org26/repo_external_tracker_numeric.git/hooks/post-receive delete mode 100755 tests/gitea-repositories-meta/org26/repo_external_tracker_numeric.git/hooks/post-receive.d/gitea delete mode 100755 tests/gitea-repositories-meta/org26/repo_external_tracker_numeric.git/hooks/pre-receive delete mode 100755 tests/gitea-repositories-meta/org26/repo_external_tracker_numeric.git/hooks/pre-receive.d/gitea delete mode 100755 tests/gitea-repositories-meta/org26/repo_external_tracker_numeric.git/hooks/proc-receive.d/gitea delete mode 100755 tests/gitea-repositories-meta/org26/repo_external_tracker_numeric.git/hooks/update delete mode 100755 tests/gitea-repositories-meta/org26/repo_external_tracker_numeric.git/hooks/update.d/gitea delete mode 100755 tests/gitea-repositories-meta/privated_org/private_repo_on_private_org.git/hooks/post-receive delete mode 100755 tests/gitea-repositories-meta/privated_org/private_repo_on_private_org.git/hooks/post-receive.d/gitea delete mode 100755 tests/gitea-repositories-meta/privated_org/private_repo_on_private_org.git/hooks/pre-receive delete mode 100755 tests/gitea-repositories-meta/privated_org/private_repo_on_private_org.git/hooks/pre-receive.d/gitea delete mode 100755 tests/gitea-repositories-meta/privated_org/private_repo_on_private_org.git/hooks/proc-receive.d/gitea delete mode 100755 tests/gitea-repositories-meta/privated_org/private_repo_on_private_org.git/hooks/update delete mode 100755 tests/gitea-repositories-meta/privated_org/private_repo_on_private_org.git/hooks/update.d/gitea delete mode 100755 tests/gitea-repositories-meta/privated_org/public_repo_on_private_org.git/hooks/post-receive delete mode 100755 tests/gitea-repositories-meta/privated_org/public_repo_on_private_org.git/hooks/post-receive.d/gitea delete mode 100755 tests/gitea-repositories-meta/privated_org/public_repo_on_private_org.git/hooks/pre-receive delete mode 100755 tests/gitea-repositories-meta/privated_org/public_repo_on_private_org.git/hooks/pre-receive.d/gitea delete mode 100755 tests/gitea-repositories-meta/privated_org/public_repo_on_private_org.git/hooks/proc-receive.d/gitea delete mode 100755 tests/gitea-repositories-meta/privated_org/public_repo_on_private_org.git/hooks/update delete mode 100755 tests/gitea-repositories-meta/privated_org/public_repo_on_private_org.git/hooks/update.d/gitea delete mode 100755 tests/gitea-repositories-meta/user12/repo10.git/hooks/proc-receive.d/gitea delete mode 100755 tests/gitea-repositories-meta/user13/repo11.git/hooks/proc-receive.d/gitea delete mode 100755 tests/gitea-repositories-meta/user2/commits_search_test.git/hooks/post-receive delete mode 100755 tests/gitea-repositories-meta/user2/commits_search_test.git/hooks/post-receive.d/gitea delete mode 100755 tests/gitea-repositories-meta/user2/commits_search_test.git/hooks/pre-receive delete mode 100755 tests/gitea-repositories-meta/user2/commits_search_test.git/hooks/pre-receive.d/gitea delete mode 100755 tests/gitea-repositories-meta/user2/commits_search_test.git/hooks/proc-receive.d/gitea delete mode 100755 tests/gitea-repositories-meta/user2/commits_search_test.git/hooks/update delete mode 100755 tests/gitea-repositories-meta/user2/commits_search_test.git/hooks/update.d/gitea delete mode 100755 tests/gitea-repositories-meta/user2/commitsonpr.git/hooks/post-receive delete mode 100755 tests/gitea-repositories-meta/user2/commitsonpr.git/hooks/post-receive.d/gitea delete mode 100755 tests/gitea-repositories-meta/user2/commitsonpr.git/hooks/pre-receive delete mode 100755 tests/gitea-repositories-meta/user2/commitsonpr.git/hooks/pre-receive.d/gitea delete mode 100755 tests/gitea-repositories-meta/user2/commitsonpr.git/hooks/proc-receive.d/gitea delete mode 100755 tests/gitea-repositories-meta/user2/commitsonpr.git/hooks/update delete mode 100755 tests/gitea-repositories-meta/user2/commitsonpr.git/hooks/update.d/gitea delete mode 100755 tests/gitea-repositories-meta/user2/git_hooks_test.git/hooks/proc-receive.d/gitea delete mode 100755 tests/gitea-repositories-meta/user2/glob.git/hooks/post-receive delete mode 100755 tests/gitea-repositories-meta/user2/glob.git/hooks/post-receive.d/gitea delete mode 100755 tests/gitea-repositories-meta/user2/glob.git/hooks/pre-receive delete mode 100755 tests/gitea-repositories-meta/user2/glob.git/hooks/pre-receive.d/gitea delete mode 100755 tests/gitea-repositories-meta/user2/glob.git/hooks/proc-receive.d/gitea delete mode 100755 tests/gitea-repositories-meta/user2/glob.git/hooks/update delete mode 100755 tests/gitea-repositories-meta/user2/glob.git/hooks/update.d/gitea delete mode 100755 tests/gitea-repositories-meta/user2/lfs.git/hooks/post-receive delete mode 100755 tests/gitea-repositories-meta/user2/lfs.git/hooks/post-receive.d/gitea delete mode 100755 tests/gitea-repositories-meta/user2/lfs.git/hooks/pre-receive delete mode 100755 tests/gitea-repositories-meta/user2/lfs.git/hooks/pre-receive.d/gitea delete mode 100755 tests/gitea-repositories-meta/user2/lfs.git/hooks/proc-receive.d/gitea delete mode 100755 tests/gitea-repositories-meta/user2/lfs.git/hooks/update delete mode 100755 tests/gitea-repositories-meta/user2/lfs.git/hooks/update.d/gitea delete mode 100755 tests/gitea-repositories-meta/user2/readme-test.git/hooks/post-receive delete mode 100755 tests/gitea-repositories-meta/user2/readme-test.git/hooks/post-receive.d/gitea delete mode 100755 tests/gitea-repositories-meta/user2/readme-test.git/hooks/pre-receive delete mode 100755 tests/gitea-repositories-meta/user2/readme-test.git/hooks/pre-receive.d/gitea delete mode 100755 tests/gitea-repositories-meta/user2/readme-test.git/hooks/proc-receive.d/gitea delete mode 100755 tests/gitea-repositories-meta/user2/readme-test.git/hooks/update delete mode 100755 tests/gitea-repositories-meta/user2/readme-test.git/hooks/update.d/gitea delete mode 100755 tests/gitea-repositories-meta/user2/repo-release.git/hooks/post-receive delete mode 100755 tests/gitea-repositories-meta/user2/repo-release.git/hooks/post-receive.d/gitea delete mode 100755 tests/gitea-repositories-meta/user2/repo-release.git/hooks/pre-receive delete mode 100755 tests/gitea-repositories-meta/user2/repo-release.git/hooks/pre-receive.d/gitea delete mode 100755 tests/gitea-repositories-meta/user2/repo-release.git/hooks/proc-receive.d/gitea delete mode 100755 tests/gitea-repositories-meta/user2/repo-release.git/hooks/update delete mode 100755 tests/gitea-repositories-meta/user2/repo-release.git/hooks/update.d/gitea delete mode 100755 tests/gitea-repositories-meta/user2/repo1.git/hooks/proc-receive.d/gitea delete mode 100755 tests/gitea-repositories-meta/user2/repo15.git/hooks/proc-receive.d/gitea delete mode 100755 tests/gitea-repositories-meta/user2/repo16.git/hooks/post-receive delete mode 100755 tests/gitea-repositories-meta/user2/repo16.git/hooks/post-receive.d/gitea delete mode 100755 tests/gitea-repositories-meta/user2/repo16.git/hooks/pre-receive delete mode 100755 tests/gitea-repositories-meta/user2/repo16.git/hooks/pre-receive.d/gitea delete mode 100755 tests/gitea-repositories-meta/user2/repo16.git/hooks/proc-receive.d/gitea delete mode 100755 tests/gitea-repositories-meta/user2/repo16.git/hooks/update delete mode 100755 tests/gitea-repositories-meta/user2/repo16.git/hooks/update.d/gitea delete mode 100755 tests/gitea-repositories-meta/user2/repo2.git/hooks/post-receive delete mode 100755 tests/gitea-repositories-meta/user2/repo2.git/hooks/post-receive.d/gitea delete mode 100755 tests/gitea-repositories-meta/user2/repo2.git/hooks/pre-receive delete mode 100755 tests/gitea-repositories-meta/user2/repo2.git/hooks/pre-receive.d/gitea delete mode 100755 tests/gitea-repositories-meta/user2/repo2.git/hooks/proc-receive.d/gitea delete mode 100755 tests/gitea-repositories-meta/user2/repo2.git/hooks/update delete mode 100755 tests/gitea-repositories-meta/user2/repo2.git/hooks/update.d/gitea delete mode 100755 tests/gitea-repositories-meta/user2/repo20.git/hooks/proc-receive.d/gitea delete mode 100755 tests/gitea-repositories-meta/user2/utf8.git/hooks/proc-receive.d/gitea mode change 100755 => 100644 tests/gitea-repositories-meta/user27/repo49.git/hooks/post-receive mode change 100755 => 100644 tests/gitea-repositories-meta/user27/repo49.git/hooks/post-receive.d/gitea mode change 100755 => 100644 tests/gitea-repositories-meta/user27/repo49.git/hooks/pre-receive mode change 100755 => 100644 tests/gitea-repositories-meta/user27/repo49.git/hooks/pre-receive.d/gitea delete mode 100755 tests/gitea-repositories-meta/user27/repo49.git/hooks/proc-receive.d/gitea mode change 100755 => 100644 tests/gitea-repositories-meta/user27/repo49.git/hooks/update mode change 100755 => 100644 tests/gitea-repositories-meta/user27/repo49.git/hooks/update.d/gitea mode change 100755 => 100644 tests/gitea-repositories-meta/user27/template1.git/hooks/post-receive mode change 100755 => 100644 tests/gitea-repositories-meta/user27/template1.git/hooks/post-receive.d/gitea mode change 100755 => 100644 tests/gitea-repositories-meta/user27/template1.git/hooks/pre-receive mode change 100755 => 100644 tests/gitea-repositories-meta/user27/template1.git/hooks/pre-receive.d/gitea delete mode 100755 tests/gitea-repositories-meta/user27/template1.git/hooks/proc-receive.d/gitea mode change 100755 => 100644 tests/gitea-repositories-meta/user27/template1.git/hooks/update mode change 100755 => 100644 tests/gitea-repositories-meta/user27/template1.git/hooks/update.d/gitea delete mode 100755 tests/gitea-repositories-meta/user3/repo3.git/hooks/proc-receive.d/gitea delete mode 100755 tests/gitea-repositories-meta/user3/repo5.git/hooks/proc-receive.d/gitea mode change 100755 => 100644 tests/gitea-repositories-meta/user30/renderer.git/hooks/post-receive mode change 100755 => 100644 tests/gitea-repositories-meta/user30/renderer.git/hooks/post-receive.d/gitea mode change 100755 => 100644 tests/gitea-repositories-meta/user30/renderer.git/hooks/pre-receive mode change 100755 => 100644 tests/gitea-repositories-meta/user30/renderer.git/hooks/pre-receive.d/gitea delete mode 100755 tests/gitea-repositories-meta/user30/renderer.git/hooks/proc-receive.d/gitea mode change 100755 => 100644 tests/gitea-repositories-meta/user30/renderer.git/hooks/update mode change 100755 => 100644 tests/gitea-repositories-meta/user30/renderer.git/hooks/update.d/gitea delete mode 100755 tests/gitea-repositories-meta/user5/repo4.git/hooks/post-receive delete mode 100755 tests/gitea-repositories-meta/user5/repo4.git/hooks/post-receive.d/gitea delete mode 100755 tests/gitea-repositories-meta/user5/repo4.git/hooks/pre-receive delete mode 100755 tests/gitea-repositories-meta/user5/repo4.git/hooks/pre-receive.d/gitea delete mode 100755 tests/gitea-repositories-meta/user5/repo4.git/hooks/proc-receive.d/gitea delete mode 100755 tests/gitea-repositories-meta/user5/repo4.git/hooks/update delete mode 100755 tests/gitea-repositories-meta/user5/repo4.git/hooks/update.d/gitea diff --git a/models/fixtures/access.yml b/models/fixtures/access.yml index e9e9271c319dd..446502843ef48 100644 --- a/models/fixtures/access.yml +++ b/models/fixtures/access.yml @@ -1,92 +1,138 @@ -- id: 1 - mode: 4 - repo_id: 3 +- + id: 1 user_id: 2 -- id: 2 + repo_id: 3 mode: 4 + +- + id: 2 + user_id: 2 repo_id: 5 + mode: 4 + +- + id: 3 user_id: 2 -- id: 3 - mode: 2 repo_id: 24 + mode: 2 + +- + id: 4 user_id: 2 -- id: 4 - mode: 4 repo_id: 32 - user_id: 2 -- id: 5 - mode: 2 - repo_id: 3 + mode: 4 + +- + id: 5 user_id: 4 -- id: 6 + repo_id: 3 mode: 2 - repo_id: 4 + +- + id: 6 user_id: 4 -- id: 7 + repo_id: 4 mode: 2 - repo_id: 40 + +- + id: 7 user_id: 4 -- id: 8 + repo_id: 40 mode: 2 - repo_id: 21 + +- + id: 8 user_id: 15 -- id: 9 + repo_id: 21 mode: 2 + +- + id: 9 + user_id: 15 repo_id: 22 + mode: 2 + +- + id: 10 user_id: 15 -- id: 10 - mode: 4 repo_id: 23 - user_id: 15 -- id: 11 mode: 4 + +- + id: 11 + user_id: 15 repo_id: 24 + mode: 4 + +- + id: 12 user_id: 15 -- id: 12 - mode: 2 repo_id: 32 - user_id: 15 -- id: 13 mode: 2 - repo_id: 21 + +- + id: 13 user_id: 18 -- id: 14 + repo_id: 21 mode: 2 + +- + id: 14 + user_id: 18 repo_id: 22 + mode: 2 + +- + id: 15 user_id: 18 -- id: 15 - mode: 4 repo_id: 23 + mode: 4 + +- + id: 16 user_id: 18 -- id: 16 + repo_id: 24 mode: 4 + +- + id: 17 + user_id: 20 repo_id: 24 - user_id: 18 -- id: 17 mode: 1 - repo_id: 24 + +- + id: 18 user_id: 20 -- id: 18 - mode: 4 repo_id: 27 - user_id: 20 -- id: 19 mode: 4 - repo_id: 28 + +- + id: 19 user_id: 20 -- id: 20 - mode: 2 + repo_id: 28 + mode: 4 + +- + id: 20 + user_id: 29 repo_id: 4 + mode: 2 + +- + id: 21 user_id: 29 -- id: 21 - mode: 1 repo_id: 24 - user_id: 29 -- id: 22 - mode: 4 - repo_id: 27 + mode: 1 + +- + id: 22 user_id: 31 -- id: 23 + repo_id: 27 mode: 4 - repo_id: 28 + +- + id: 23 user_id: 31 + repo_id: 28 + mode: 4 + diff --git a/models/fixtures/access_token.yml b/models/fixtures/access_token.yml index 221fe6822a24c..791b3da1c459f 100644 --- a/models/fixtures/access_token.yml +++ b/models/fixtures/access_token.yml @@ -1,27 +1,33 @@ -- created_unix: 946687980 +- id: 1 + uid: 1 name: Token A - scope: null + #token: d2c6c1ba3890b309189a8e618c72a162e4efbf36 token_hash: 2b3668e11cb82d3af8c6e4524fc7841297668f5008d1626f0ad3417e9fa39af84c268248b78c481daa7e5dc437784003494f - token_last_eight: e4efbf36 token_salt: QuSiZr1byZ - uid: 1 + token_last_eight: e4efbf36 + created_unix: 946687980 updated_unix: 946687980 -- created_unix: 946687980 + +- id: 2 + uid: 1 name: Token B - scope: null + #token: 4c6f36e6cf498e2a448662f915d932c09c5a146c token_hash: 1a0e32a231ebbd582dc626c1543a42d3c63d4fa76c07c72862721467c55e8f81c923d60700f0528b5f5f443f055559d3a279 - token_last_eight: 9c5a146c token_salt: Lfwopukrq5 - uid: 1 + token_last_eight: 9c5a146c + created_unix: 946687980 updated_unix: 946687980 -- created_unix: 946687980 + +- id: 3 + uid: 2 name: Token A - scope: null + #token: 90a18faa671dc43924b795806ffe4fd169d28c91 token_hash: d6d404048048812d9e911d93aefbe94fc768d4876fdf75e3bef0bdc67828e0af422846d3056f2f25ec35c51dc92075685ec5 - token_last_eight: 69d28c91 token_salt: 99ArgXKlQQ - uid: 2 + token_last_eight: 69d28c91 + created_unix: 946687980 updated_unix: 946687980 +#commented out tokens so you can see what they are in plaintext diff --git a/models/fixtures/action.yml b/models/fixtures/action.yml index 1fbbe097a27a0..af9ce93ba5c5d 100644 --- a/models/fixtures/action.yml +++ b/models/fixtures/action.yml @@ -1,99 +1,75 @@ -- act_user_id: 2 - comment_id: null - content: null - created_unix: 1603228283 +- id: 1 - is_deleted: 0 - is_private: 1 - op_type: 12 - ref_name: null - repo_id: 2 user_id: 2 -- act_user_id: 2 - comment_id: null - content: oldRepoName - created_unix: null + op_type: 12 # close issue + act_user_id: 2 + repo_id: 2 # private + is_private: true + created_unix: 1603228283 + +- id: 2 - is_deleted: 0 - is_private: 1 - op_type: 2 - ref_name: null - repo_id: 3 user_id: 3 -- act_user_id: 11 - comment_id: null - content: null - created_unix: null + op_type: 2 # rename repo + act_user_id: 2 + repo_id: 3 # private + is_private: true + content: oldRepoName + +- id: 3 - is_deleted: 0 - is_private: 0 - op_type: 1 - ref_name: null - repo_id: 9 user_id: 11 -- act_user_id: 16 - comment_id: null - content: null - created_unix: 1603267920 + op_type: 1 # create repo + act_user_id: 11 + repo_id: 9 # public + is_private: false + +- id: 4 - is_deleted: 0 - is_private: 1 - op_type: 12 - ref_name: null - repo_id: 22 user_id: 16 -- act_user_id: 10 - comment_id: null - content: null + op_type: 12 # close issue + act_user_id: 16 + repo_id: 22 # private + is_private: true + created_unix: 1603267920 + +- id: 5 + user_id: 10 + op_type: 1 # create repo + act_user_id: 10 + repo_id: 6 # private + is_private: true created_unix: 1603010100 - id: 5 - is_deleted: 0 - is_private: 1 - op_type: 1 - ref_name: null - repo_id: 6 + +- id: 6 user_id: 10 -- act_user_id: 10 - comment_id: null - content: null + op_type: 1 # create repo + act_user_id: 10 + repo_id: 7 # private + is_private: true created_unix: 1603011300 - id: 6 - is_deleted: 0 - is_private: 1 - op_type: 1 - ref_name: null - repo_id: 7 - user_id: 10 -- act_user_id: 10 - comment_id: null - content: null - created_unix: 1603011540 - id: 7 - is_deleted: 0 - is_private: 0 - op_type: 1 - ref_name: null - repo_id: 8 + +- id: 7 user_id: 10 -- act_user_id: 1 - comment_id: null - content: null - created_unix: 1603011541 - id: 8 - is_deleted: 0 - is_private: 0 - op_type: 12 - ref_name: null - repo_id: 1700 + op_type: 1 # create repo + act_user_id: 10 + repo_id: 8 # public + is_private: false + created_unix: 1603011540 # grouped with id:7 + +- id: 8 user_id: 1 -- act_user_id: 34 - comment_id: null - content: 4| - created_unix: 1680454039 - id: 9 - is_deleted: 0 - is_private: 0 - op_type: 12 - ref_name: null - repo_id: 1 + op_type: 12 # close issue + act_user_id: 1 + repo_id: 1700 # dangling intentional + is_private: false + created_unix: 1603011541 + +- id: 9 user_id: 34 + op_type: 12 # close issue + act_user_id: 34 + repo_id: 1 # public + is_private: false + created_unix: 1680454039 + content: '4|' # issueId 5 diff --git a/models/fixtures/action_run.yml b/models/fixtures/action_run.yml index 1185b5404d472..2c2151f354af6 100644 --- a/models/fixtures/action_run.yml +++ b/models/fixtures/action_run.yml @@ -1,20 +1,19 @@ -- approved_by: 0 - commit_sha: c2d72f548424103f01ee1dc02889c1e2bff816b0 - created: 1683636108 - event: push - event_payload: null +- id: 791 + title: "update actions" + repo_id: 4 + owner_id: 1 + workflow_id: "artifact.yaml" index: 187 + trigger_user_id: 1 + ref: "refs/heads/master" + commit_sha: "c2d72f548424103f01ee1dc02889c1e2bff816b0" + event: "push" is_fork_pull_request: 0 - need_approval: 0 - owner_id: 1 - ref: refs/heads/master - repo_id: 4 - started: 1683636528 status: 1 + started: 1683636528 stopped: 1683636626 - title: update actions - trigger_event: null - trigger_user_id: 1 + created: 1683636108 updated: 1683636626 - workflow_id: artifact.yaml + need_approval: 0 + approved_by: 0 diff --git a/models/fixtures/action_run_job.yml b/models/fixtures/action_run_job.yml index 034de0f20ffdf..071998b9796f9 100644 --- a/models/fixtures/action_run_job.yml +++ b/models/fixtures/action_run_job.yml @@ -1,18 +1,14 @@ -- attempt: 1 - commit_sha: c2d72f548424103f01ee1dc02889c1e2bff816b0 - created: null +- id: 192 + run_id: 791 + repo_id: 4 + owner_id: 1 + commit_sha: c2d72f548424103f01ee1dc02889c1e2bff816b0 is_fork_pull_request: 0 - job_id: job_2 name: job_2 - needs: null - owner_id: 1 - repo_id: 4 - run_id: 791 - runs_on: null - started: 1683636528 + attempt: 1 + job_id: job_2 + task_id: 47 status: 1 + started: 1683636528 stopped: 1683636626 - task_id: 47 - updated: null - workflow_payload: null diff --git a/models/fixtures/action_task.yml b/models/fixtures/action_task.yml index 027fe7ae8b06b..c78fb3c5d6377 100644 --- a/models/fixtures/action_task.yml +++ b/models/fixtures/action_task.yml @@ -1,22 +1,20 @@ -- attempt: 3 - commit_sha: c2d72f548424103f01ee1dc02889c1e2bff816b0 - created: null +- id: 47 - is_fork_pull_request: 0 job_id: 192 - log_expired: 0 - log_filename: artifact-test2/2f/47.log - log_in_storage: 1 - log_indexes: null - log_length: 707 - log_size: 90179 - owner_id: 1 - repo_id: 4 + attempt: 3 runner_id: 1 + status: 6 # 6 is the status code for "running", running task can upload artifacts started: 1683636528 - status: 6 stopped: 1683636626 + repo_id: 4 + owner_id: 1 + commit_sha: c2d72f548424103f01ee1dc02889c1e2bff816b0 + is_fork_pull_request: 0 token_hash: 6d8ef48297195edcc8e22c70b3020eaa06c52976db67d39b4260c64a69a2cc1508825121b7b8394e48e00b1bf8718b2a867e - token_last_eight: eeb1a71a token_salt: jVuKnSPGgy - updated: null + token_last_eight: eeb1a71a + log_filename: artifact-test2/2f/47.log + log_in_storage: 1 + log_length: 707 + log_size: 90179 + log_expired: 0 diff --git a/models/fixtures/attachment.yml b/models/fixtures/attachment.yml index 1ed6f1f40ddd5..9ad43fa2b7eb6 100644 --- a/models/fixtures/attachment.yml +++ b/models/fixtures/attachment.yml @@ -1,121 +1,142 @@ -- comment_id: 0 - created_unix: 946684800 - download_count: 0 +- id: 1 + uuid: a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 + repo_id: 1 issue_id: 1 - name: attach1 release_id: 0 - repo_id: 1 - size: 0 uploader_id: 0 - uuid: a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 -- comment_id: 0 + comment_id: 0 + name: attach1 + download_count: 0 + size: 0 created_unix: 946684800 - download_count: 1 + +- id: 2 + uuid: a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 + repo_id: 2 issue_id: 4 - name: attach2 release_id: 0 - repo_id: 2 - size: 0 uploader_id: 0 - uuid: a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12 -- comment_id: 1 + comment_id: 0 + name: attach2 + download_count: 1 + size: 0 created_unix: 946684800 - download_count: 0 + +- id: 3 + uuid: a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a13 + repo_id: 1 issue_id: 2 - name: attach1 release_id: 0 - repo_id: 1 - size: 0 uploader_id: 0 - uuid: a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a13 -- comment_id: 1 + comment_id: 1 + name: attach1 + download_count: 0 + size: 0 created_unix: 946684800 - download_count: 1 + +- id: 4 + uuid: a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a14 + repo_id: 1 issue_id: 3 - name: attach2 release_id: 0 - repo_id: 1 - size: 0 uploader_id: 0 - uuid: a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a14 -- comment_id: 0 + comment_id: 1 + name: attach2 + download_count: 1 + size: 0 created_unix: 946684800 - download_count: 0 + +- id: 5 + uuid: a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a15 + repo_id: 2 issue_id: 4 - name: attach1 release_id: 0 - repo_id: 2 - size: 0 uploader_id: 0 - uuid: a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a15 -- comment_id: 2 - created_unix: 946684800 + comment_id: 0 + name: attach1 download_count: 0 + size: 0 + created_unix: 946684800 + +- id: 6 + uuid: a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a16 + repo_id: 1 issue_id: 5 - name: attach1 release_id: 0 - repo_id: 1 - size: 0 uploader_id: 0 - uuid: a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a16 -- comment_id: 2 - created_unix: 946684800 + comment_id: 2 + name: attach1 download_count: 0 + size: 0 + created_unix: 946684800 + +- id: 7 + uuid: a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a17 + repo_id: 1 issue_id: 5 - name: attach1 release_id: 0 - repo_id: 1 - size: 0 uploader_id: 0 - uuid: a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a17 -- comment_id: 0 - created_unix: 946684800 + comment_id: 2 + name: attach1 download_count: 0 + size: 0 + created_unix: 946684800 + +- id: 8 + uuid: a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a18 + repo_id: 3 issue_id: 6 - name: attach1 release_id: 0 - repo_id: 3 - size: 0 uploader_id: 0 - uuid: a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a18 -- comment_id: 0 - created_unix: 946684800 + comment_id: 0 + name: attach1 download_count: 0 + size: 0 + created_unix: 946684800 + +- id: 9 + uuid: a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a19 + repo_id: 1 issue_id: 0 - name: attach1 release_id: 1 - repo_id: 1 - size: 0 uploader_id: 0 - uuid: a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a19 -- comment_id: 0 - created_unix: 946684800 + comment_id: 0 + name: attach1 download_count: 0 + size: 0 + created_unix: 946684800 + +- id: 10 + uuid: a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a20 + repo_id: 0 # TestGetAttachment/NotLinked issue_id: 0 - name: attach1 release_id: 0 - repo_id: 0 - size: 0 uploader_id: 8 - uuid: a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a20 -- comment_id: 0 - created_unix: 946684800 + comment_id: 0 + name: attach1 download_count: 0 + size: 0 + created_unix: 946684800 + +- id: 11 + uuid: a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a21 + repo_id: 40 issue_id: 0 - name: attach1 release_id: 2 - repo_id: 40 - size: 0 uploader_id: 0 - uuid: a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a21 + comment_id: 0 + name: attach1 + download_count: 0 + size: 0 + created_unix: 946684800 diff --git a/models/fixtures/branch.yml b/models/fixtures/branch.yml index 59912ed41738f..93003049c67fb 100644 --- a/models/fixtures/branch.yml +++ b/models/fixtures/branch.yml @@ -1,48 +1,47 @@ -- commit_id: 65f1bf27bc3bf70f64657658635e66094edbcb4d - commit_message: first commit +- + id: 1 + repo_id: 1 + name: 'foo' + commit_id: '65f1bf27bc3bf70f64657658635e66094edbcb4d' + commit_message: 'first commit' commit_time: 978307100 - created_unix: null + pusher_id: 1 + is_deleted: true deleted_by_id: 1 deleted_unix: 978307200 - id: 1 - is_deleted: 1 - name: foo - pusher_id: 1 + +- + id: 2 repo_id: 1 - updated_unix: null -- commit_id: 62fb502a7172d4453f0322a2cc85bddffa57f07a - commit_message: second commit + name: 'bar' + commit_id: '62fb502a7172d4453f0322a2cc85bddffa57f07a' + commit_message: 'second commit' commit_time: 978307100 - created_unix: null + pusher_id: 1 + is_deleted: true deleted_by_id: 99 deleted_unix: 978307200 - id: 2 - is_deleted: 1 - name: bar - pusher_id: 1 + +- + id: 3 repo_id: 1 - updated_unix: null -- commit_id: 985f0301dba5e7b34be866819cd15ad3d8f508ee - commit_message: make pull5 outdated + name: 'branch2' + commit_id: '985f0301dba5e7b34be866819cd15ad3d8f508ee' + commit_message: 'make pull5 outdated' commit_time: 1579166279 - created_unix: null + pusher_id: 1 + is_deleted: false deleted_by_id: 0 deleted_unix: 0 - id: 3 - is_deleted: 0 - name: branch2 - pusher_id: 1 + +- + id: 4 repo_id: 1 - updated_unix: null -- commit_id: 65f1bf27bc3bf70f64657658635e66094edbcb4d - commit_message: Initial commit + name: 'master' + commit_id: '65f1bf27bc3bf70f64657658635e66094edbcb4d' + commit_message: 'Initial commit' commit_time: 1489927679 - created_unix: null + pusher_id: 1 + is_deleted: false deleted_by_id: 0 deleted_unix: 0 - id: 4 - is_deleted: 0 - name: master - pusher_id: 1 - repo_id: 1 - updated_unix: null diff --git a/models/fixtures/collaboration.yml b/models/fixtures/collaboration.yml index 3029ccce1e9cf..ef77d22b24950 100644 --- a/models/fixtures/collaboration.yml +++ b/models/fixtures/collaboration.yml @@ -1,48 +1,47 @@ -- created_unix: null +- id: 1 - mode: 2 repo_id: 3 - updated_unix: null user_id: 2 -- created_unix: null + mode: 2 # write + +- id: 2 - mode: 2 repo_id: 4 - updated_unix: null user_id: 4 -- created_unix: null + mode: 2 # write + +- id: 3 - mode: 2 repo_id: 40 - updated_unix: null user_id: 4 -- created_unix: null + mode: 2 # write + +- id: 4 - mode: 2 repo_id: 4 - updated_unix: null user_id: 29 -- created_unix: null + mode: 2 # write + +- id: 5 - mode: 2 repo_id: 21 - updated_unix: null user_id: 15 -- created_unix: null + mode: 2 # write + +- id: 6 - mode: 2 repo_id: 21 - updated_unix: null user_id: 18 -- created_unix: null + mode: 2 # write + +- id: 7 - mode: 2 repo_id: 22 - updated_unix: null user_id: 15 -- created_unix: null + mode: 2 # write + +- id: 8 - mode: 2 repo_id: 22 - updated_unix: null user_id: 18 + mode: 2 # write diff --git a/models/fixtures/comment.yml b/models/fixtures/comment.yml index 0b1b0b2c889ab..bd64680c8c787 100644 --- a/models/fixtures/comment.yml +++ b/models/fixtures/comment.yml @@ -1,252 +1,68 @@ -- assignee_id: null - assignee_team_id: 0 - commit_id: null - commit_sha: null - content: "1" - created_unix: 946684810 - dependent_issue_id: null +- id: 1 - invalidated: null - issue_id: 1 - label_id: 1 - line: null - milestone_id: null - new_ref: null - new_title: null - old_milestone_id: null - old_project_id: null - old_ref: null - old_title: null - original_author: null - original_author_id: null - patch: null + type: 7 # label poster_id: 2 - project_id: null - ref_action: null - ref_comment_id: null - ref_is_pull: null - ref_issue_id: null - ref_repo_id: null - removed_assignee: null - resolve_doer_id: null - review_id: null - time_id: null - tree_path: null - type: 7 - updated_unix: null -- assignee_id: null - assignee_team_id: 0 - commit_id: null - commit_sha: null - content: good work! - created_unix: 946684811 - dependent_issue_id: null + issue_id: 1 # in repo_id 1 + label_id: 1 + content: "1" + created_unix: 946684810 +- id: 2 - invalidated: null - issue_id: 1 - label_id: null - line: null - milestone_id: null - new_ref: null - new_title: null - old_milestone_id: null - old_project_id: null - old_ref: null - old_title: null - original_author: null - original_author_id: null - patch: null - poster_id: 3 - project_id: null - ref_action: null - ref_comment_id: null - ref_is_pull: null - ref_issue_id: null - ref_repo_id: null - removed_assignee: null - resolve_doer_id: null - review_id: null - time_id: null - tree_path: null - type: 0 + type: 0 # comment + poster_id: 3 # user not watching (see watch.yml) + issue_id: 1 # in repo_id 1 + content: "good work!" + created_unix: 946684811 updated_unix: 946684811 -- assignee_id: null - assignee_team_id: 0 - commit_id: null - commit_sha: null - content: meh... - created_unix: 946684812 - dependent_issue_id: null +- id: 3 - invalidated: null - issue_id: 1 - label_id: null - line: null - milestone_id: null - new_ref: null - new_title: null - old_milestone_id: null - old_project_id: null - old_ref: null - old_title: null - original_author: null - original_author_id: null - patch: null - poster_id: 5 - project_id: null - ref_action: null - ref_comment_id: null - ref_is_pull: null - ref_issue_id: null - ref_repo_id: null - removed_assignee: null - resolve_doer_id: null - review_id: null - time_id: null - tree_path: null - type: 0 - updated_unix: 946684812 -- assignee_id: null - assignee_team_id: 0 - commit_id: null - commit_sha: null - content: meh... + type: 0 # comment + poster_id: 5 # user not watching (see watch.yml) + issue_id: 1 # in repo_id 1 + content: "meh..." created_unix: 946684812 - dependent_issue_id: null + updated_unix: 946684812 +- id: 4 - invalidated: 0 - issue_id: 2 - label_id: null - line: 4 - milestone_id: null - new_ref: null - new_title: null - old_milestone_id: null - old_project_id: null - old_ref: null - old_title: null - original_author: null - original_author_id: null - patch: null + type: 21 # code comment poster_id: 1 - project_id: null - ref_action: null - ref_comment_id: null - ref_is_pull: null - ref_issue_id: null - ref_repo_id: null - removed_assignee: null - resolve_doer_id: null + issue_id: 2 + content: "meh..." review_id: 4 - time_id: null - tree_path: README.md - type: 21 - updated_unix: null -- assignee_id: null - assignee_team_id: 0 - commit_id: null - commit_sha: null - content: meh... + line: 4 + tree_path: "README.md" created_unix: 946684812 - dependent_issue_id: null + invalidated: false +- id: 5 - invalidated: 0 + type: 21 # code comment + poster_id: 1 issue_id: 2 - label_id: null + content: "meh..." line: -4 - milestone_id: null - new_ref: null - new_title: null - old_milestone_id: null - old_project_id: null - old_ref: null - old_title: null - original_author: null - original_author_id: null - patch: null - poster_id: 1 - project_id: null - ref_action: null - ref_comment_id: null - ref_is_pull: null - ref_issue_id: null - ref_repo_id: null - removed_assignee: null - resolve_doer_id: null - review_id: null - time_id: null - tree_path: README.md - type: 21 - updated_unix: null -- assignee_id: null - assignee_team_id: 0 - commit_id: null - commit_sha: null - content: it's already invalidated. boring... + tree_path: "README.md" created_unix: 946684812 - dependent_issue_id: null + invalidated: false + +- id: 6 - invalidated: 1 + type: 21 # code comment + poster_id: 1 issue_id: 2 - label_id: null + content: "it's already invalidated. boring..." line: -4 - milestone_id: null - new_ref: null - new_title: null - old_milestone_id: null - old_project_id: null - old_ref: null - old_title: null - original_author: null - original_author_id: null - patch: null - poster_id: 1 - project_id: null - ref_action: null - ref_comment_id: null - ref_is_pull: null - ref_issue_id: null - ref_repo_id: null - removed_assignee: null - resolve_doer_id: null - review_id: null - time_id: null - tree_path: README.md - type: 21 - updated_unix: null -- assignee_id: null - assignee_team_id: 0 - commit_id: null - commit_sha: null - content: a review from a deleted user + tree_path: "README.md" created_unix: 946684812 - dependent_issue_id: null + invalidated: true + +- id: 7 - invalidated: 1 + type: 21 # code comment + poster_id: 100 issue_id: 3 - label_id: null + content: "a review from a deleted user" line: -4 - milestone_id: null - new_ref: null - new_title: null - old_milestone_id: null - old_project_id: null - old_ref: null - old_title: null - original_author: null - original_author_id: null - patch: null - poster_id: 100 - project_id: null - ref_action: null - ref_comment_id: null - ref_is_pull: null - ref_issue_id: null - ref_repo_id: null - removed_assignee: null - resolve_doer_id: null review_id: 10 - time_id: null - tree_path: README.md - type: 21 - updated_unix: null + tree_path: "README.md" + created_unix: 946684812 + invalidated: true diff --git a/models/fixtures/commit_status.yml b/models/fixtures/commit_status.yml index d7d3eee5fdfdf..20d57975ef40d 100644 --- a/models/fixtures/commit_status.yml +++ b/models/fixtures/commit_status.yml @@ -1,60 +1,54 @@ -- context: ci/awesomeness - context_hash: null - created_unix: null - creator_id: 2 - description: My awesome CI-service +- id: 1 index: 1 repo_id: 1 + state: "pending" sha: "1234123412341234123412341234123412341234" - state: pending target_url: https://example.com/builds/ - updated_unix: null -- context: cov/awesomeness - context_hash: null - created_unix: null + description: My awesome CI-service + context: ci/awesomeness creator_id: 2 - description: My awesome Coverage service + +- id: 2 index: 2 repo_id: 1 + state: "warning" sha: "1234123412341234123412341234123412341234" - state: warning target_url: https://example.com/converage/ - updated_unix: null -- context: cov/awesomeness - context_hash: null - created_unix: null - creator_id: 2 description: My awesome Coverage service + context: cov/awesomeness + creator_id: 2 + +- id: 3 index: 3 repo_id: 1 + state: "success" sha: "1234123412341234123412341234123412341234" - state: success target_url: https://example.com/converage/ - updated_unix: null -- context: ci/awesomeness - context_hash: null - created_unix: null + description: My awesome Coverage service + context: cov/awesomeness creator_id: 2 - description: My awesome CI-service + +- id: 4 index: 4 repo_id: 1 + state: "failure" sha: "1234123412341234123412341234123412341234" - state: failure target_url: https://example.com/builds/ - updated_unix: null -- context: deploy/awesomeness - context_hash: null - created_unix: null + description: My awesome CI-service + context: ci/awesomeness creator_id: 2 - description: My awesome deploy service + +- id: 5 index: 5 repo_id: 1 + state: "error" sha: "1234123412341234123412341234123412341234" - state: error target_url: https://example.com/builds/ - updated_unix: null + description: My awesome deploy service + context: deploy/awesomeness + creator_id: 2 diff --git a/models/fixtures/commit_status_index.yml b/models/fixtures/commit_status_index.yml index 56f783a92e36f..3f252e87ef092 100644 --- a/models/fixtures/commit_status_index.yml +++ b/models/fixtures/commit_status_index.yml @@ -1,4 +1,5 @@ -- id: 1 - max_index: 5 +- + id: 1 repo_id: 1 sha: "1234123412341234123412341234123412341234" + max_index: 5 \ No newline at end of file diff --git a/models/fixtures/deploy_key.yml b/models/fixtures/deploy_key.yml index fe51488c7066f..ca780a73aa0c1 100644 --- a/models/fixtures/deploy_key.yml +++ b/models/fixtures/deploy_key.yml @@ -1 +1 @@ -[] +[] # empty diff --git a/models/fixtures/email_address.yml b/models/fixtures/email_address.yml index 5049fd2dd6828..e7df5fdc5f01c 100644 --- a/models/fixtures/email_address.yml +++ b/models/fixtures/email_address.yml @@ -1,210 +1,279 @@ -- email: user11@example.com +- id: 1 - is_activated: 0 - is_primary: 1 - lower_email: user11@example.com uid: 11 -- email: user12@example.com + email: user11@example.com + lower_email: user11@example.com + is_activated: false + is_primary: true + +- id: 2 - is_activated: 1 - is_primary: 1 - lower_email: user12@example.com uid: 12 -- email: user2@example.com + email: user12@example.com + lower_email: user12@example.com + is_activated: true + is_primary: true + +- id: 3 - is_activated: 1 - is_primary: 1 - lower_email: user2@example.com uid: 2 -- email: user21@example.com + email: user2@example.com + lower_email: user2@example.com + is_activated: true + is_primary: true + +- id: 4 - is_activated: 1 - is_primary: 1 - lower_email: user21@example.com uid: 21 -- email: user9999999@example.com + email: user21@example.com + lower_email: user21@example.com + is_activated: true + is_primary: true + +- id: 5 - is_activated: 1 - is_primary: 0 - lower_email: user9999999@example.com uid: 9999999 -- email: user10@example.com + email: user9999999@example.com + lower_email: user9999999@example.com + is_activated: true + is_primary: false + +- id: 6 - is_activated: 1 - is_primary: 1 - lower_email: user10@example.com uid: 10 -- email: user101@example.com + email: user10@example.com + lower_email: user10@example.com + is_activated: true + is_primary: true + +- id: 7 - is_activated: 1 - is_primary: 0 - lower_email: user101@example.com uid: 10 -- email: user9@example.com + email: user101@example.com + lower_email: user101@example.com + is_activated: true + is_primary: false + +- id: 8 - is_activated: 0 - is_primary: 1 - lower_email: user9@example.com uid: 9 -- email: user1@example.com + email: user9@example.com + lower_email: user9@example.com + is_activated: false + is_primary: true + +- id: 9 - is_activated: 1 - is_primary: 1 - lower_email: user1@example.com uid: 1 -- email: user3@example.com + email: user1@example.com + lower_email: user1@example.com + is_activated: true + is_primary: true + +- id: 10 - is_activated: 1 - is_primary: 1 - lower_email: user3@example.com uid: 3 -- email: user4@example.com + email: user3@example.com + lower_email: user3@example.com + is_activated: true + is_primary: true + +- id: 11 - is_activated: 1 - is_primary: 1 - lower_email: user4@example.com uid: 4 -- email: user5@example.com + email: user4@example.com + lower_email: user4@example.com + is_activated: true + is_primary: true + +- id: 12 - is_activated: 1 - is_primary: 1 - lower_email: user5@example.com uid: 5 -- email: user6@example.com + email: user5@example.com + lower_email: user5@example.com + is_activated: true + is_primary: true + +- id: 13 - is_activated: 1 - is_primary: 1 - lower_email: user6@example.com uid: 6 -- email: user7@example.com + email: user6@example.com + lower_email: user6@example.com + is_activated: true + is_primary: true + +- id: 14 - is_activated: 1 - is_primary: 1 - lower_email: user7@example.com uid: 7 -- email: user8@example.com + email: user7@example.com + lower_email: user7@example.com + is_activated: true + is_primary: true + +- id: 15 - is_activated: 1 - is_primary: 1 - lower_email: user8@example.com uid: 8 -- email: user13@example.com + email: user8@example.com + lower_email: user8@example.com + is_activated: true + is_primary: true + +- id: 16 - is_activated: 1 - is_primary: 1 - lower_email: user13@example.com uid: 13 -- email: user14@example.com + email: user13@example.com + lower_email: user13@example.com + is_activated: true + is_primary: true + +- id: 17 - is_activated: 1 - is_primary: 1 - lower_email: user14@example.com uid: 14 -- email: user15@example.com + email: user14@example.com + lower_email: user14@example.com + is_activated: true + is_primary: true + +- id: 18 - is_activated: 1 - is_primary: 1 - lower_email: user15@example.com uid: 15 -- email: user16@example.com + email: user15@example.com + lower_email: user15@example.com + is_activated: true + is_primary: true + +- id: 19 - is_activated: 1 - is_primary: 1 - lower_email: user16@example.com uid: 16 -- email: user17@example.com + email: user16@example.com + lower_email: user16@example.com + is_activated: true + is_primary: true + +- id: 20 - is_activated: 1 - is_primary: 1 - lower_email: user17@example.com uid: 17 -- email: user18@example.com + email: user17@example.com + lower_email: user17@example.com + is_activated: true + is_primary: true + +- id: 21 - is_activated: 1 - is_primary: 1 - lower_email: user18@example.com uid: 18 -- email: user19@example.com + email: user18@example.com + lower_email: user18@example.com + is_activated: true + is_primary: true + +- id: 22 - is_activated: 1 - is_primary: 1 - lower_email: user19@example.com uid: 19 -- email: user20@example.com + email: user19@example.com + lower_email: user19@example.com + is_activated: true + is_primary: true + +- id: 23 - is_activated: 1 - is_primary: 1 - lower_email: user20@example.com uid: 20 -- email: limited_org@example.com + email: user20@example.com + lower_email: user20@example.com + is_activated: true + is_primary: true + +- id: 24 - is_activated: 1 - is_primary: 1 - lower_email: limited_org@example.com uid: 22 -- email: privated_org@example.com + email: limited_org@example.com + lower_email: limited_org@example.com + is_activated: true + is_primary: true + +- id: 25 - is_activated: 1 - is_primary: 1 - lower_email: privated_org@example.com uid: 23 -- email: user24@example.com + email: privated_org@example.com + lower_email: privated_org@example.com + is_activated: true + is_primary: true + +- id: 26 - is_activated: 1 - is_primary: 1 - lower_email: user24@example.com uid: 24 -- email: org25@example.com + email: user24@example.com + lower_email: user24@example.com + is_activated: true + is_primary: true + +- id: 27 - is_activated: 1 - is_primary: 1 - lower_email: org25@example.com uid: 25 -- email: org26@example.com + email: org25@example.com + lower_email: org25@example.com + is_activated: true + is_primary: true + +- id: 28 - is_activated: 1 - is_primary: 1 - lower_email: org26@example.com uid: 26 -- email: user27@example.com + email: org26@example.com + lower_email: org26@example.com + is_activated: true + is_primary: true + +- id: 29 - is_activated: 1 - is_primary: 1 - lower_email: user27@example.com uid: 27 -- email: user28@example.com + email: user27@example.com + lower_email: user27@example.com + is_activated: true + is_primary: true + +- id: 30 - is_activated: 1 - is_primary: 1 - lower_email: user28@example.com uid: 28 -- email: user29@example.com + email: user28@example.com + lower_email: user28@example.com + is_activated: true + is_primary: true + +- id: 31 - is_activated: 1 - is_primary: 1 - lower_email: user29@example.com uid: 29 -- email: user30@example.com + email: user29@example.com + lower_email: user29@example.com + is_activated: true + is_primary: true + +- id: 32 - is_activated: 1 - is_primary: 1 - lower_email: user30@example.com uid: 30 -- email: user1-2@example.com + email: user30@example.com + lower_email: user30@example.com + is_activated: true + is_primary: true + +- id: 33 - is_activated: 1 - is_primary: 0 - lower_email: user1-2@example.com uid: 1 -- email: user1-3@example.com + email: user1-2@example.com + lower_email: user1-2@example.com + is_activated: true + is_primary: false + +- id: 34 - is_activated: 1 - is_primary: 0 - lower_email: user1-3@example.com uid: 1 -- email: user2-2@example.com + email: user1-3@example.com + lower_email: user1-3@example.com + is_activated: true + is_primary: false + +- id: 35 - is_activated: 0 - is_primary: 0 - lower_email: user2-2@example.com uid: 2 + email: user2-2@example.com + lower_email: user2-2@example.com + is_activated: false + is_primary: false \ No newline at end of file diff --git a/models/fixtures/external_login_user.yml b/models/fixtures/external_login_user.yml index fe51488c7066f..ca780a73aa0c1 100644 --- a/models/fixtures/external_login_user.yml +++ b/models/fixtures/external_login_user.yml @@ -1 +1 @@ -[] +[] # empty diff --git a/models/fixtures/follow.yml b/models/fixtures/follow.yml index 7d51035d9e533..b8d35828bf170 100644 --- a/models/fixtures/follow.yml +++ b/models/fixtures/follow.yml @@ -1,16 +1,19 @@ -- created_unix: null - follow_id: 2 +- id: 1 user_id: 4 -- created_unix: null follow_id: 2 + +- id: 2 user_id: 8 -- created_unix: null - follow_id: 8 + follow_id: 2 + +- id: 3 user_id: 2 -- created_unix: null - follow_id: 33 + follow_id: 8 + +- id: 4 user_id: 31 + follow_id: 33 diff --git a/models/fixtures/gpg_key.yml b/models/fixtures/gpg_key.yml index fe51488c7066f..ca780a73aa0c1 100644 --- a/models/fixtures/gpg_key.yml +++ b/models/fixtures/gpg_key.yml @@ -1 +1 @@ -[] +[] # empty diff --git a/models/fixtures/gpg_key_import.yml b/models/fixtures/gpg_key_import.yml index fe51488c7066f..ca780a73aa0c1 100644 --- a/models/fixtures/gpg_key_import.yml +++ b/models/fixtures/gpg_key_import.yml @@ -1 +1 @@ -[] +[] # empty diff --git a/models/fixtures/hook_task.yml b/models/fixtures/hook_task.yml index 1d4f5748bec2c..6dbb10151abf8 100644 --- a/models/fixtures/hook_task.yml +++ b/models/fixtures/hook_task.yml @@ -1,10 +1,5 @@ -- delivered: null - event_type: null - hook_id: 1 +- id: 1 - is_delivered: 1 - is_succeed: null - payload_content: null - request_content: null - response_content: null + hook_id: 1 uuid: uuid1 + is_delivered: true diff --git a/models/fixtures/issue.yml b/models/fixtures/issue.yml index 471f206b0c335..fa72f9b647da0 100644 --- a/models/fixtures/issue.yml +++ b/models/fixtures/issue.yml @@ -1,380 +1,323 @@ -- closed_unix: null - content: content for the first issue - created_unix: 946684800 - deadline_unix: null +- id: 1 + repo_id: 1 index: 1 - is_closed: 0 - is_locked: 0 - is_pull: 0 - milestone_id: 0 - name: issue1 - num_comments: 2 - original_author: null - original_author_id: 0 - pin_order: 0 poster_id: 1 + original_author_id: 0 + name: issue1 + content: content for the first issue + milestone_id: 0 priority: 0 - ref: null - repo_id: 1 + is_closed: false + is_pull: false + num_comments: 2 + created_unix: 946684800 updated_unix: 978307200 -- closed_unix: null - content: content for the second issue - created_unix: 946684810 - deadline_unix: null + is_locked: false + +- id: 2 + repo_id: 1 index: 2 - is_closed: 0 - is_locked: 0 - is_pull: 1 - milestone_id: 1 - name: issue2 - num_comments: 0 - original_author: null - original_author_id: 0 - pin_order: 0 poster_id: 1 + original_author_id: 0 + name: issue2 + content: content for the second issue + milestone_id: 1 priority: 0 - ref: null - repo_id: 1 + is_closed: false + is_pull: true + num_comments: 0 + created_unix: 946684810 updated_unix: 978307190 -- closed_unix: null - content: content for the third issue - created_unix: 946684820 - deadline_unix: null + is_locked: false + +- id: 3 + repo_id: 1 index: 3 - is_closed: 0 - is_locked: 0 - is_pull: 1 - milestone_id: 3 - name: issue3 - num_comments: 0 - original_author: null - original_author_id: 0 - pin_order: 0 poster_id: 1 + original_author_id: 0 + name: issue3 + content: content for the third issue + milestone_id: 3 priority: 0 - ref: null - repo_id: 1 + is_closed: false + is_pull: true + num_comments: 0 + created_unix: 946684820 updated_unix: 978307180 -- closed_unix: null - content: content for the fourth issue - created_unix: 946684830 - deadline_unix: null + is_locked: false + +- id: 4 + repo_id: 2 index: 1 - is_closed: 1 - is_locked: 0 - is_pull: 0 - milestone_id: 0 - name: issue4 - num_comments: 0 - original_author: null - original_author_id: 0 - pin_order: 0 poster_id: 2 + original_author_id: 0 + name: issue4 + content: content for the fourth issue + milestone_id: 0 priority: 0 - ref: null - repo_id: 2 + is_closed: true + is_pull: false + num_comments: 0 + created_unix: 946684830 updated_unix: 978307200 -- closed_unix: null - content: content for the fifth issue - created_unix: 946684840 - deadline_unix: null + is_locked: false + +- id: 5 + repo_id: 1 index: 4 - is_closed: 1 - is_locked: 0 - is_pull: 0 - milestone_id: 0 - name: issue5 - num_comments: 0 - original_author: null - original_author_id: 0 - pin_order: 0 poster_id: 2 + original_author_id: 0 + name: issue5 + content: content for the fifth issue + milestone_id: 0 priority: 0 - ref: null - repo_id: 1 + is_closed: true + is_pull: false + num_comments: 0 + created_unix: 946684840 updated_unix: 978307200 -- closed_unix: null - content: content6 - created_unix: 946684850 - deadline_unix: null + is_locked: false + +- id: 6 + repo_id: 3 index: 1 - is_closed: 0 - is_locked: 0 - is_pull: 0 - milestone_id: 0 - name: issue6 - num_comments: 0 - original_author: null - original_author_id: 0 - pin_order: 0 poster_id: 1 + original_author_id: 0 + name: issue6 + content: content6 + milestone_id: 0 priority: 0 - ref: null - repo_id: 3 + is_closed: false + is_pull: false + num_comments: 0 + created_unix: 946684850 updated_unix: 978307200 -- closed_unix: null - content: content for the seventh issue - created_unix: 946684830 - deadline_unix: null + is_locked: false + +- id: 7 + repo_id: 2 index: 2 - is_closed: 0 - is_locked: 0 - is_pull: 0 - milestone_id: 0 - name: issue7 - num_comments: 0 - original_author: null - original_author_id: 0 - pin_order: 0 poster_id: 2 + original_author_id: 0 + name: issue7 + content: content for the seventh issue + milestone_id: 0 priority: 0 - ref: null - repo_id: 2 + is_closed: false + is_pull: false + num_comments: 0 + created_unix: 946684830 updated_unix: 978307200 -- closed_unix: null - content: a pull request - created_unix: 946684820 - deadline_unix: null + is_locked: false + +- id: 8 + repo_id: 10 index: 1 - is_closed: 0 - is_locked: 0 - is_pull: 1 - milestone_id: 0 - name: pr2 - num_comments: 0 - original_author: null - original_author_id: 0 - pin_order: 0 poster_id: 11 - priority: 0 - ref: null - repo_id: 10 - updated_unix: 978307180 -- closed_unix: null + original_author_id: 0 + name: pr2 content: a pull request + milestone_id: 0 + priority: 0 + is_closed: false + is_pull: true + num_comments: 0 created_unix: 946684820 - deadline_unix: null + updated_unix: 978307180 + is_locked: false + +- id: 9 + repo_id: 48 index: 1 - is_closed: 0 - is_locked: 0 - is_pull: 1 - milestone_id: 0 - name: pr1 - num_comments: 0 - original_author: null - original_author_id: 0 - pin_order: 0 poster_id: 11 + original_author_id: 0 + name: pr1 + content: a pull request + milestone_id: 0 priority: 0 - ref: null - repo_id: 48 + is_closed: false + is_pull: true + num_comments: 0 + created_unix: 946684820 updated_unix: 978307180 -- closed_unix: null - content: content from deleted account - created_unix: 946684830 - deadline_unix: 1019307200 + is_locked: false + +- id: 10 + repo_id: 42 index: 1 - is_closed: 0 - is_locked: 0 - is_pull: 0 - milestone_id: 0 - name: issue from deleted account - num_comments: 0 - original_author: null - original_author_id: 0 - pin_order: 0 poster_id: 500 + original_author_id: 0 + name: issue from deleted account + content: content from deleted account + milestone_id: 0 priority: 0 - ref: null - repo_id: 42 + is_closed: false + is_pull: false + num_comments: 0 + deadline_unix: 1019307200 + created_unix: 946684830 updated_unix: 999307200 -- closed_unix: null - content: content for the a pull request - created_unix: 1579194806 - deadline_unix: null + is_locked: false + +- id: 11 + repo_id: 1 index: 5 - is_closed: 0 - is_locked: 0 - is_pull: 1 - milestone_id: 0 - name: pull5 - num_comments: 0 - original_author: null - original_author_id: 0 - pin_order: 0 poster_id: 1 + original_author_id: 0 + name: pull5 + content: content for the a pull request + milestone_id: 0 priority: 0 - ref: null - repo_id: 1 + is_closed: false + is_pull: true + num_comments: 0 + created_unix: 1579194806 updated_unix: 1579194806 -- closed_unix: null - content: content for the a pull request - created_unix: 1602935696 - deadline_unix: null + is_locked: false + +- id: 12 + repo_id: 3 index: 2 - is_closed: 0 - is_locked: 0 - is_pull: 1 - milestone_id: 0 - name: pull6 - num_comments: 0 - original_author: null - original_author_id: 0 - pin_order: 0 poster_id: 2 + original_author_id: 0 + name: pull6 + content: content for the a pull request + milestone_id: 0 priority: 0 - ref: null - repo_id: 3 - updated_unix: 1602935696 -- closed_unix: null - content: we'll be testing github issue 13171 with this. + is_closed: false + is_pull: true + num_comments: 0 created_unix: 1602935696 - deadline_unix: null + updated_unix: 1602935696 + is_locked: false + +- id: 13 + repo_id: 50 index: 1 - is_closed: 0 - is_locked: 0 - is_pull: 0 - milestone_id: 0 - name: issue in active repo - num_comments: 0 - original_author: null - original_author_id: 0 - pin_order: 0 poster_id: 2 - priority: 0 - ref: null - repo_id: 50 - updated_unix: 1602935696 -- closed_unix: null + original_author_id: 0 + name: issue in active repo content: we'll be testing github issue 13171 with this. + milestone_id: 0 + priority: 0 + is_closed: false + is_pull: false + num_comments: 0 created_unix: 1602935696 - deadline_unix: null + updated_unix: 1602935696 + is_locked: false + +- id: 14 + repo_id: 51 index: 1 - is_closed: 0 - is_locked: 0 - is_pull: 0 - milestone_id: 0 - name: issue in archived repo - num_comments: 0 - original_author: null - original_author_id: 0 - pin_order: 0 poster_id: 2 + original_author_id: 0 + name: issue in archived repo + content: we'll be testing github issue 13171 with this. + milestone_id: 0 priority: 0 - ref: null - repo_id: 51 - updated_unix: 1602935696 -- closed_unix: null - content: content + is_closed: false + is_pull: false + num_comments: 0 created_unix: 1602935696 - deadline_unix: null + updated_unix: 1602935696 + is_locked: false + +- id: 15 + repo_id: 5 index: 1 - is_closed: 0 - is_locked: 0 - is_pull: 0 - milestone_id: 0 - name: issue in repo not linked to team1 - num_comments: 0 - original_author: null - original_author_id: 0 - pin_order: 0 poster_id: 2 - priority: 0 - ref: null - repo_id: 5 - updated_unix: 1602935696 -- closed_unix: null + original_author_id: 0 + name: issue in repo not linked to team1 content: content + milestone_id: 0 + priority: 0 + is_closed: false + is_pull: false + num_comments: 0 created_unix: 1602935696 - deadline_unix: null + updated_unix: 1602935696 + is_locked: false + +- id: 16 + repo_id: 32 index: 1 - is_closed: 0 - is_locked: 0 - is_pull: 0 - milestone_id: 0 - name: just a normal issue - num_comments: 0 - original_author: null - original_author_id: 0 - pin_order: 0 poster_id: 2 - priority: 0 - ref: null - repo_id: 32 - updated_unix: 1602935696 -- closed_unix: null + original_author_id: 0 + name: just a normal issue content: content + milestone_id: 0 + priority: 0 + is_closed: false + is_pull: false + num_comments: 0 created_unix: 1602935696 - deadline_unix: null + updated_unix: 1602935696 + is_locked: false + +- id: 17 + repo_id: 32 index: 2 - is_closed: 0 - is_locked: 0 - is_pull: 0 - milestone_id: 0 - name: a issue with a assignment - num_comments: 0 - original_author: null - original_author_id: 0 - pin_order: 0 poster_id: 15 + original_author_id: 0 + name: a issue with a assignment + content: content + milestone_id: 0 priority: 0 - ref: null - repo_id: 32 + is_closed: false + is_pull: false + num_comments: 0 + created_unix: 1602935696 updated_unix: 1602935696 -- closed_unix: null - content: content - created_unix: 946684830 - deadline_unix: null + is_locked: false + +- id: 18 + repo_id: 55 index: 1 - is_closed: 0 - is_locked: 0 - is_pull: 0 - milestone_id: 0 - name: issue for scoped labels - num_comments: 0 - original_author: null - original_author_id: 0 - pin_order: 0 poster_id: 2 - priority: 0 - ref: null - repo_id: 55 - updated_unix: 978307200 -- closed_unix: null + original_author_id: 0 + name: issue for scoped labels content: content + milestone_id: 0 + priority: 0 + is_closed: false + is_pull: false + num_comments: 0 created_unix: 946684830 - deadline_unix: null + updated_unix: 978307200 + is_locked: false + +- id: 19 + repo_id: 58 index: 1 - is_closed: 0 - is_locked: 0 - is_pull: 1 - milestone_id: 0 - name: issue for pr - num_comments: 0 - original_author: null - original_author_id: 0 - pin_order: 0 poster_id: 2 + original_author_id: 0 + name: issue for pr + content: content + milestone_id: 0 priority: 0 - ref: null - repo_id: 58 + is_closed: false + is_pull: true + num_comments: 0 + created_unix: 946684830 updated_unix: 978307200 + is_locked: false diff --git a/models/fixtures/issue_assignees.yml b/models/fixtures/issue_assignees.yml index 64ec7b521b1aa..e5d36f921a7e0 100644 --- a/models/fixtures/issue_assignees.yml +++ b/models/fixtures/issue_assignees.yml @@ -1,12 +1,16 @@ -- assignee_id: 1 +- id: 1 + assignee_id: 1 issue_id: 1 -- assignee_id: 1 +- id: 2 + assignee_id: 1 issue_id: 6 -- assignee_id: 2 +- id: 3 + assignee_id: 2 issue_id: 6 -- assignee_id: 2 +- id: 4 + assignee_id: 2 issue_id: 17 diff --git a/models/fixtures/issue_index.yml b/models/fixtures/issue_index.yml index 03a30f98523e3..de6e955804ab6 100644 --- a/models/fixtures/issue_index.yml +++ b/models/fixtures/issue_index.yml @@ -1,18 +1,27 @@ -- group_id: 1 +- + group_id: 1 max_index: 5 -- group_id: 2 +- + group_id: 2 max_index: 2 -- group_id: 3 +- + group_id: 3 max_index: 2 -- group_id: 10 +- + group_id: 10 max_index: 1 -- group_id: 32 +- + group_id: 32 max_index: 2 -- group_id: 42 +- + group_id: 48 max_index: 1 -- group_id: 48 +- + group_id: 42 max_index: 1 -- group_id: 50 +- + group_id: 50 max_index: 1 -- group_id: 51 +- + group_id: 51 max_index: 1 diff --git a/models/fixtures/issue_label.yml b/models/fixtures/issue_label.yml index 2878e41181a98..f4ecb1f923232 100644 --- a/models/fixtures/issue_label.yml +++ b/models/fixtures/issue_label.yml @@ -1,12 +1,19 @@ -- id: 1 +- + id: 1 issue_id: 1 label_id: 1 -- id: 2 + +- + id: 2 issue_id: 5 label_id: 2 -- id: 3 + +- + id: 3 issue_id: 2 label_id: 1 -- id: 4 + +- + id: 4 issue_id: 2 label_id: 4 diff --git a/models/fixtures/issue_user.yml b/models/fixtures/issue_user.yml index ea321d121ff04..64824316ea275 100644 --- a/models/fixtures/issue_user.yml +++ b/models/fixtures/issue_user.yml @@ -1,15 +1,20 @@ -- id: 1 - is_mentioned: 0 - is_read: 1 - issue_id: 1 +- + id: 1 uid: 1 -- id: 2 - is_mentioned: 0 - is_read: 1 issue_id: 1 + is_read: true + is_mentioned: false + +- + id: 2 uid: 2 -- id: 3 - is_mentioned: 1 - is_read: 0 issue_id: 1 + is_read: true + is_mentioned: false + +- + id: 3 uid: 4 + issue_id: 1 + is_read: false + is_mentioned: true diff --git a/models/fixtures/issue_watch.yml b/models/fixtures/issue_watch.yml index 91d551b9dd680..4bc3ff1b8b987 100644 --- a/models/fixtures/issue_watch.yml +++ b/models/fixtures/issue_watch.yml @@ -1,24 +1,31 @@ -- created_unix: 946684800 +- id: 1 - is_watching: 1 + user_id: 9 issue_id: 1 + is_watching: true + created_unix: 946684800 updated_unix: 946684800 - user_id: 9 -- created_unix: 946684800 + +- id: 2 - is_watching: 0 + user_id: 2 issue_id: 2 + is_watching: false + created_unix: 946684800 updated_unix: 946684800 - user_id: 2 -- created_unix: 946684800 + +- id: 3 - is_watching: 1 + user_id: 2 issue_id: 7 + is_watching: true + created_unix: 946684800 updated_unix: 946684800 - user_id: 2 -- created_unix: 946684800 + +- id: 4 - is_watching: 0 + user_id: 1 issue_id: 7 + is_watching: false + created_unix: 946684800 updated_unix: 946684800 - user_id: 1 diff --git a/models/fixtures/label.yml b/models/fixtures/label.yml index 87b4cfa04d922..2242b90dcdc23 100644 --- a/models/fixtures/label.yml +++ b/models/fixtures/label.yml @@ -1,108 +1,98 @@ -- archived_unix: 0 - color: '#abcdef' - created_unix: null - description: null - exclusive: 0 +- id: 1 + repo_id: 1 + org_id: 0 name: label1 - num_closed_issues: 0 + color: '#abcdef' + exclusive: false num_issues: 2 - org_id: 0 - repo_id: 1 - updated_unix: null -- archived_unix: 0 - color: '#000000' - created_unix: null - description: null - exclusive: 0 + num_closed_issues: 0 + archived_unix: 0 + +- id: 2 + repo_id: 1 + org_id: 0 name: label2 - num_closed_issues: 1 + color: '#000000' + exclusive: false num_issues: 1 - org_id: 0 - repo_id: 1 - updated_unix: null -- archived_unix: 0 - color: '#abcdef' - created_unix: null - description: null - exclusive: 0 + num_closed_issues: 1 + archived_unix: 0 + +- id: 3 + repo_id: 0 + org_id: 3 name: orglabel3 - num_closed_issues: 0 + color: '#abcdef' + exclusive: false num_issues: 0 - org_id: 3 - repo_id: 0 - updated_unix: null -- archived_unix: 0 - color: '#000000' - created_unix: null - description: null - exclusive: 0 - id: 4 - name: orglabel4 num_closed_issues: 0 - num_issues: 1 - org_id: 3 + archived_unix: 0 + +- + id: 4 repo_id: 0 - updated_unix: null -- archived_unix: 0 + org_id: 3 + name: orglabel4 color: '#000000' - created_unix: null - description: null - exclusive: 0 - id: 5 - name: pull-test-label + exclusive: false + num_issues: 1 num_closed_issues: 0 - num_issues: 0 - org_id: 0 + archived_unix: 0 + +- + id: 5 repo_id: 10 - updated_unix: null -- archived_unix: 0 + org_id: 0 + name: pull-test-label color: '#000000' - created_unix: null - description: null - exclusive: 0 - id: 6 - name: unscoped_label - num_closed_issues: 0 + exclusive: false num_issues: 0 - org_id: 0 + num_closed_issues: 0 + archived_unix: 0 + +- + id: 6 repo_id: 55 - updated_unix: null -- archived_unix: 0 + org_id: 0 + name: unscoped_label color: '#000000' - created_unix: null - description: null - exclusive: 1 - id: 7 - name: scope/label1 - num_closed_issues: 0 + exclusive: false num_issues: 0 - org_id: 0 + num_closed_issues: 0 + archived_unix: 0 + +- + id: 7 repo_id: 55 - updated_unix: null -- archived_unix: 0 + org_id: 0 + name: scope/label1 color: '#000000' - created_unix: null - description: null - exclusive: 1 - id: 8 - name: scope/label2 - num_closed_issues: 0 + exclusive: true num_issues: 0 - org_id: 0 + num_closed_issues: 0 + archived_unix: 0 + +- + id: 8 repo_id: 55 - updated_unix: null -- archived_unix: 0 + org_id: 0 + name: scope/label2 color: '#000000' - created_unix: null - description: null - exclusive: 1 + exclusive: true + num_issues: 0 + num_closed_issues: 0 + archived_unix: 0 + +- id: 9 + repo_id: 55 + org_id: 0 name: scope/subscope/label2 - num_closed_issues: 0 + color: '#000000' + exclusive: true num_issues: 0 - org_id: 0 - repo_id: 55 - updated_unix: null + num_closed_issues: 0 + archived_unix: 0 diff --git a/models/fixtures/language_stat.yml b/models/fixtures/language_stat.yml deleted file mode 100644 index 5e3b68884691f..0000000000000 --- a/models/fixtures/language_stat.yml +++ /dev/null @@ -1,28 +0,0 @@ -- commit_id: aacbdfe9e1c4b47f60abe81849045fa4e96f1d75 - created_unix: 1692437698 - id: 1 - is_primary: 1 - language: Text - repo_id: 49 - size: 14 -- commit_id: 2a83b349fa234131fc5db6f2a0498d3f4d3d6038 - created_unix: 1692437699 - id: 2 - is_primary: 1 - language: Text - repo_id: 44 - size: 14 -- commit_id: ef6b814b610d8e7717aa0f71fbe5842bcf814697 - created_unix: 1692437699 - id: 3 - is_primary: 1 - language: Text - repo_id: 42 - size: 36 -- commit_id: 1032bbf17fbc0d9c95bb5418dabe8f8c99278700 - created_unix: 1692437700 - id: 4 - is_primary: 1 - language: Markdown - repo_id: 2 - size: 36 diff --git a/models/fixtures/lfs_meta_object.yml b/models/fixtures/lfs_meta_object.yml index 95c08209589cd..1c29e02d44da6 100644 --- a/models/fixtures/lfs_meta_object.yml +++ b/models/fixtures/lfs_meta_object.yml @@ -1,24 +1,32 @@ -- created_unix: 1671607299 +# These are the LFS objects in user2/lfs.git +- + id: 1 oid: 0b8d8b5f15046343fd32f451df93acc2bdd9e6373be478b968e4cad6b6647351 - repository_id: 54 size: 107 - updated_unix: null -- created_unix: 1671607299 + repository_id: 54 + created_unix: 1671607299 + +- + id: 2 oid: 2eccdb43825d2a49d99d542daa20075cff1d97d9d2349a8977efe9c03661737c - repository_id: 54 size: 107 - updated_unix: null -- created_unix: 1671607299 + repository_id: 54 + created_unix: 1671607299 + +- + id: 3 oid: 7b6b2c88dba9f760a1a58469b67fee2b698ef7e9399c4ca4f34a14ccbe39f623 - repository_id: 54 size: 27 - updated_unix: null -- created_unix: 1671607299 + repository_id: 54 + created_unix: 1671607299 + +- + id: 4 oid: 9d172e5c64b4f0024b9901ec6afe9ea052f3c9b6ff9f4b07956d8c48c86fca82 - repository_id: 54 size: 25 - updated_unix: null + repository_id: 54 + created_unix: 1671607299 diff --git a/models/fixtures/login_source.yml b/models/fixtures/login_source.yml index fe51488c7066f..ca780a73aa0c1 100644 --- a/models/fixtures/login_source.yml +++ b/models/fixtures/login_source.yml @@ -1 +1 @@ -[] +[] # empty diff --git a/models/fixtures/milestone.yml b/models/fixtures/milestone.yml index f09018230eb82..87c30cc96c4ac 100644 --- a/models/fixtures/milestone.yml +++ b/models/fixtures/milestone.yml @@ -1,60 +1,54 @@ -- closed_date_unix: null - completeness: 0 - content: content1 - created_unix: null - deadline_unix: 253370764800 +- id: 1 - is_closed: 0 + repo_id: 1 name: milestone1 - num_closed_issues: 0 + content: content1 + is_closed: false num_issues: 1 - repo_id: 1 - updated_unix: null -- closed_date_unix: null + num_closed_issues: 0 completeness: 0 - content: content2 - created_unix: null deadline_unix: 253370764800 + +- id: 2 - is_closed: 0 + repo_id: 1 name: milestone2 - num_closed_issues: 0 + content: content2 + is_closed: false num_issues: 0 - repo_id: 1 - updated_unix: null -- closed_date_unix: null + num_closed_issues: 0 completeness: 0 - content: content3 - created_unix: null deadline_unix: 253370764800 + +- id: 3 - is_closed: 1 + repo_id: 1 name: milestone3 - num_closed_issues: 0 + content: content3 + is_closed: true num_issues: 1 - repo_id: 1 - updated_unix: null -- closed_date_unix: null + num_closed_issues: 0 completeness: 0 - content: content random - created_unix: null deadline_unix: 253370764800 + +- id: 4 - is_closed: 0 + repo_id: 42 name: milestone of repo42 - num_closed_issues: 0 + content: content random + is_closed: false num_issues: 0 - repo_id: 42 - updated_unix: null -- closed_date_unix: null + num_closed_issues: 0 completeness: 0 - content: for testing with PRs - created_unix: null deadline_unix: 253370764800 + +- id: 5 - is_closed: 0 + repo_id: 10 name: milestone of repo 10 - num_closed_issues: 0 + content: for testing with PRs + is_closed: false num_issues: 0 - repo_id: 10 - updated_unix: null + num_closed_issues: 0 + completeness: 0 + deadline_unix: 253370764800 diff --git a/models/fixtures/mirror.yml b/models/fixtures/mirror.yml index b895d1ec86db4..97bc4ae60dda2 100644 --- a/models/fixtures/mirror.yml +++ b/models/fixtures/mirror.yml @@ -1,40 +1,49 @@ -- enable_prune: 0 +- id: 1 - interval: 3600 - lfs_enabled: 0 - lfs_endpoint: "" - next_update_unix: 0 repo_id: 5 - updated_unix: 0 -- enable_prune: 0 - id: 2 interval: 3600 - lfs_enabled: 0 - lfs_endpoint: "" + enable_prune: false + updated_unix: 0 next_update_unix: 0 + lfs_enabled: false + lfs_endpoint: "" + +- + id: 2 repo_id: 25 - updated_unix: 0 -- enable_prune: 0 - id: 3 interval: 3600 - lfs_enabled: 0 - lfs_endpoint: "" + enable_prune: false + updated_unix: 0 next_update_unix: 0 + lfs_enabled: false + lfs_endpoint: "" + +- + id: 3 repo_id: 26 - updated_unix: 0 -- enable_prune: 0 - id: 4 interval: 3600 - lfs_enabled: 0 - lfs_endpoint: "" + enable_prune: false + updated_unix: 0 next_update_unix: 0 + lfs_enabled: false + lfs_endpoint: "" + +- + id: 4 repo_id: 27 - updated_unix: 0 -- enable_prune: 0 - id: 5 interval: 3600 - lfs_enabled: 0 - lfs_endpoint: "" + enable_prune: false + updated_unix: 0 next_update_unix: 0 + lfs_enabled: false + lfs_endpoint: "" + +- + id: 5 repo_id: 28 + interval: 3600 + enable_prune: false updated_unix: 0 + next_update_unix: 0 + lfs_enabled: false + lfs_endpoint: "" diff --git a/models/fixtures/notice.yml b/models/fixtures/notice.yml index 1887a061760fb..af08f07bfa137 100644 --- a/models/fixtures/notice.yml +++ b/models/fixtures/notice.yml @@ -1,12 +1,14 @@ -- created_unix: null - description: description1 +- id: 1 - type: 1 -- created_unix: null - description: description2 + type: 1 # NoticeRepository + description: description1 + +- id: 2 - type: 1 -- created_unix: null - description: description3 + type: 1 # NoticeRepository + description: description2 + +- id: 3 - type: 1 + type: 1 # NoticeRepository + description: description3 diff --git a/models/fixtures/notification.yml b/models/fixtures/notification.yml index 148de38f0e835..bd279d4bb284c 100644 --- a/models/fixtures/notification.yml +++ b/models/fixtures/notification.yml @@ -1,55 +1,54 @@ -- comment_id: null - commit_id: null - created_unix: 946684800 +- id: 1 - issue_id: 1 + user_id: 1 repo_id: 1 - source: 1 - status: 1 + status: 1 # unread + source: 1 # issue updated_by: 2 + issue_id: 1 + created_unix: 946684800 updated_unix: 946684820 - user_id: 1 -- comment_id: null - commit_id: null - created_unix: 946685800 + +- id: 2 - issue_id: 2 + user_id: 2 repo_id: 1 - source: 1 - status: 2 + status: 2 # read + source: 1 # issue updated_by: 1 + issue_id: 2 + created_unix: 946685800 updated_unix: 946685820 - user_id: 2 -- comment_id: null - commit_id: null - created_unix: 946686800 + +- id: 3 - issue_id: 3 + user_id: 2 repo_id: 1 - source: 1 - status: 3 + status: 3 # pinned + source: 1 # issue updated_by: 1 + issue_id: 3 + created_unix: 946686800 updated_unix: 946686800 - user_id: 2 -- comment_id: null - commit_id: null - created_unix: 946687800 + +- id: 4 - issue_id: 5 + user_id: 2 repo_id: 1 - source: 1 - status: 1 + status: 1 # unread + source: 1 # issue updated_by: 1 + issue_id: 5 + created_unix: 946687800 updated_unix: 946687800 - user_id: 2 -- comment_id: null - commit_id: null - created_unix: 946688800 + +- id: 5 - issue_id: 4 + user_id: 2 repo_id: 2 - source: 1 - status: 1 + status: 1 # unread + source: 1 # issue updated_by: 5 + issue_id: 4 + created_unix: 946688800 updated_unix: 946688820 - user_id: 2 diff --git a/models/fixtures/oauth2_application.yml b/models/fixtures/oauth2_application.yml index a2b4aa81ca8cc..2f38cb58b6169 100644 --- a/models/fixtures/oauth2_application.yml +++ b/models/fixtures/oauth2_application.yml @@ -1,18 +1,20 @@ -- client_id: da7da3ba-9a13-4167-856f-3899de0b0138 - client_secret: $2a$10$UYRgUSgekzBp6hYe8pAdc.cgB4Gn06QRKsORUnIYTYQADs.YR/uvi - confidential_client: 1 - created_unix: 1546869730 +- id: 1 - name: Test - redirect_uris: '["a", "https://example.com/xyzzy"]' uid: 1 - updated_unix: 1546869730 -- client_id: ce5a1322-42a7-11ed-b878-0242ac120002 - client_secret: $2a$10$UYRgUSgekzBp6hYe8pAdc.cgB4Gn06QRKsORUnIYTYQADs.YR/uvi - confidential_client: 0 + name: "Test" + client_id: "da7da3ba-9a13-4167-856f-3899de0b0138" + client_secret: "$2a$10$UYRgUSgekzBp6hYe8pAdc.cgB4Gn06QRKsORUnIYTYQADs.YR/uvi" # bcrypt of "4MK8Na6R55smdCY0WuCCumZ6hjRPnGY5saWVRHHjJiA= + redirect_uris: '["a", "https://example.com/xyzzy"]' created_unix: 1546869730 + updated_unix: 1546869730 + confidential_client: true +- id: 2 - name: Test native app - redirect_uris: '["http://127.0.0.1"]' uid: 2 + name: "Test native app" + client_id: "ce5a1322-42a7-11ed-b878-0242ac120002" + client_secret: "$2a$10$UYRgUSgekzBp6hYe8pAdc.cgB4Gn06QRKsORUnIYTYQADs.YR/uvi" # bcrypt of "4MK8Na6R55smdCY0WuCCumZ6hjRPnGY5saWVRHHjJiA= + redirect_uris: '["http://127.0.0.1"]' + created_unix: 1546869730 updated_unix: 1546869730 + confidential_client: false diff --git a/models/fixtures/oauth2_authorization_code.yml b/models/fixtures/oauth2_authorization_code.yml index 129d04f059a70..d29502164e67f 100644 --- a/models/fixtures/oauth2_authorization_code.yml +++ b/models/fixtures/oauth2_authorization_code.yml @@ -1,14 +1,15 @@ -- code: authcode - code_challenge: CjvyTLSdR47G5zYenDA-eDWW4lRrO8yvjcWwbD_deOg - code_challenge_method: S256 +- id: 1 grant_id: 1 - id: 1 - redirect_uri: a + code: "authcode" + code_challenge: "CjvyTLSdR47G5zYenDA-eDWW4lRrO8yvjcWwbD_deOg" # Code Verifier: N1Zo9-8Rfwhkt68r1r29ty8YwIraXR8eh_1Qwxg7yQXsonBt + code_challenge_method: "S256" + redirect_uri: "a" valid_until: 3546869730 -- code: authcodepublic - code_challenge: CjvyTLSdR47G5zYenDA-eDWW4lRrO8yvjcWwbD_deOg - code_challenge_method: S256 + +- id: 2 grant_id: 4 - id: 2 - redirect_uri: http://127.0.0.1/ + code: "authcodepublic" + code_challenge: "CjvyTLSdR47G5zYenDA-eDWW4lRrO8yvjcWwbD_deOg" # Code Verifier: N1Zo9-8Rfwhkt68r1r29ty8YwIraXR8eh_1Qwxg7yQXsonBt + code_challenge_method: "S256" + redirect_uri: "http://127.0.0.1/" valid_until: 3546869730 diff --git a/models/fixtures/oauth2_grant.yml b/models/fixtures/oauth2_grant.yml index 658319503f199..e63286878b20f 100644 --- a/models/fixtures/oauth2_grant.yml +++ b/models/fixtures/oauth2_grant.yml @@ -1,32 +1,31 @@ -- application_id: 1 - counter: 1 - created_unix: 1546869730 - id: 1 - nonce: null - scope: openid profile - updated_unix: 1546869730 +- id: 1 user_id: 1 -- application_id: 1 + application_id: 1 counter: 1 + scope: "openid profile" created_unix: 1546869730 - id: 2 - nonce: null - scope: openid updated_unix: 1546869730 + +- id: 2 user_id: 3 -- application_id: 1 + application_id: 1 counter: 1 + scope: "openid" created_unix: 1546869730 - id: 3 - nonce: null - scope: openid profile email updated_unix: 1546869730 + +- id: 3 user_id: 5 -- application_id: 2 + application_id: 1 counter: 1 + scope: "openid profile email" created_unix: 1546869730 - id: 4 - nonce: null - scope: whatever updated_unix: 1546869730 + +- id: 4 user_id: 99 + application_id: 2 + counter: 1 + scope: "whatever" + created_unix: 1546869730 + updated_unix: 1546869730 diff --git a/models/fixtures/org_user.yml b/models/fixtures/org_user.yml index f713c4a53bab2..8d58169a32f17 100644 --- a/models/fixtures/org_user.yml +++ b/models/fixtures/org_user.yml @@ -1,68 +1,101 @@ -- id: 1 - is_public: 1 - org_id: 3 +- + id: 1 uid: 2 -- id: 2 - is_public: 0 org_id: 3 + is_public: true + +- + id: 2 uid: 4 -- id: 3 - is_public: 1 + org_id: 3 + is_public: false + +- + id: 3 + uid: 5 org_id: 6 + is_public: true + +- + id: 4 uid: 5 -- id: 4 - is_public: 0 org_id: 7 - uid: 5 -- id: 5 - is_public: 1 - org_id: 17 + is_public: false + +- + id: 5 uid: 15 -- id: 6 - is_public: 0 org_id: 17 + is_public: true + +- + id: 6 uid: 18 -- id: 7 - is_public: 1 - org_id: 19 + org_id: 17 + is_public: false + +- + id: 7 uid: 20 -- id: 8 - is_public: 1 - org_id: 25 + org_id: 19 + is_public: true + +- + id: 8 uid: 24 -- id: 9 - is_public: 1 + org_id: 25 + is_public: true + +- + id: 9 + uid: 28 org_id: 3 + is_public: true + +- + id: 10 uid: 28 -- id: 10 - is_public: 1 org_id: 6 - uid: 28 -- id: 11 - is_public: 1 - org_id: 17 + is_public: true + +- + id: 11 uid: 29 -- id: 12 - is_public: 1 org_id: 17 + is_public: true + +- + id: 12 uid: 2 -- id: 13 - is_public: 1 - org_id: 19 + org_id: 17 + is_public: true + +- + id: 13 uid: 31 -- id: 14 - is_public: 0 - org_id: 23 + org_id: 19 + is_public: true + +- + id: 14 uid: 5 -- id: 15 - is_public: 1 - org_id: 35 + org_id: 23 + is_public: false + +- + id: 15 uid: 1 -- id: 16 - is_public: 1 - org_id: 36 + org_id: 35 + is_public: true + +- + id: 16 uid: 1 -- id: 17 - is_public: 1 org_id: 36 + is_public: true + +- + id: 17 uid: 5 + org_id: 36 + is_public: true diff --git a/models/fixtures/project.yml b/models/fixtures/project.yml index e40c3c0c622be..1bf8030f6aa57 100644 --- a/models/fixtures/project.yml +++ b/models/fixtures/project.yml @@ -1,52 +1,47 @@ -- board_type: 1 - card_type: null - closed_date_unix: null - created_unix: 1688973030 - creator_id: 2 - description: null +- id: 1 - is_closed: 0 + title: First project owner_id: 0 repo_id: 1 - title: First project + is_closed: false + creator_id: 2 + board_type: 1 type: 2 + created_unix: 1688973030 updated_unix: 1688973030 -- board_type: 1 - card_type: null - closed_date_unix: null - created_unix: 1688973010 - creator_id: 3 - description: null + +- id: 2 - is_closed: 0 + title: second project owner_id: 0 repo_id: 3 - title: second project + is_closed: false + creator_id: 3 + board_type: 1 type: 2 + created_unix: 1688973010 updated_unix: 1688973010 -- board_type: 1 - card_type: null - closed_date_unix: null - created_unix: 1688973020 - creator_id: 5 - description: null + +- id: 3 - is_closed: 1 + title: project on repo with disabled project owner_id: 0 repo_id: 4 - title: project on repo with disabled project + is_closed: true + creator_id: 5 + board_type: 1 type: 2 + created_unix: 1688973020 updated_unix: 1688973020 -- board_type: 1 - card_type: null - closed_date_unix: null - created_unix: 1688973000 - creator_id: 2 - description: null + +- id: 4 - is_closed: 0 + title: project on user2 owner_id: 2 repo_id: 0 - title: project on user2 + is_closed: false + creator_id: 2 + board_type: 1 type: 2 + created_unix: 1688973000 updated_unix: 1688973000 diff --git a/models/fixtures/project_board.yml b/models/fixtures/project_board.yml index abff5b809ecf4..dc4f9cf565d7d 100644 --- a/models/fixtures/project_board.yml +++ b/models/fixtures/project_board.yml @@ -1,36 +1,31 @@ -- color: null - created_unix: 1588117528 - creator_id: 2 - default: 0 +- id: 1 project_id: 1 - sorting: 0 title: To Do - updated_unix: 1588117528 -- color: null - created_unix: 1588117528 creator_id: 2 - default: 0 + created_unix: 1588117528 + updated_unix: 1588117528 + +- id: 2 project_id: 1 - sorting: 0 title: In Progress - updated_unix: 1588117528 -- color: null - created_unix: 1588117528 creator_id: 2 - default: 0 + created_unix: 1588117528 + updated_unix: 1588117528 + +- id: 3 project_id: 1 - sorting: 0 title: Done - updated_unix: 1588117528 -- color: null - created_unix: 1588117528 creator_id: 2 - default: 0 + created_unix: 1588117528 + updated_unix: 1588117528 + +- id: 4 project_id: 4 - sorting: 0 title: Done + creator_id: 2 + created_unix: 1588117528 updated_unix: 1588117528 diff --git a/models/fixtures/project_issue.yml b/models/fixtures/project_issue.yml index 75af43595528e..b1af05908aafb 100644 --- a/models/fixtures/project_issue.yml +++ b/models/fixtures/project_issue.yml @@ -1,20 +1,23 @@ -- id: 1 +- + id: 1 issue_id: 1 - project_board_id: 1 project_id: 1 - sorting: 0 -- id: 2 + project_board_id: 1 + +- + id: 2 issue_id: 2 - project_board_id: 0 project_id: 1 - sorting: 0 -- id: 3 + project_board_id: 0 # no board assigned + +- + id: 3 issue_id: 3 - project_board_id: 2 project_id: 1 - sorting: 0 -- id: 4 + project_board_id: 2 + +- + id: 4 issue_id: 5 - project_board_id: 3 project_id: 1 - sorting: 0 + project_board_id: 3 diff --git a/models/fixtures/protected_branch.yml b/models/fixtures/protected_branch.yml index fe51488c7066f..ca780a73aa0c1 100644 --- a/models/fixtures/protected_branch.yml +++ b/models/fixtures/protected_branch.yml @@ -1 +1 @@ -[] +[] # empty diff --git a/models/fixtures/public_key.yml b/models/fixtures/public_key.yml index 3d925503da00d..08f5c349a7b3d 100644 --- a/models/fixtures/public_key.yml +++ b/models/fixtures/public_key.yml @@ -1,11 +1,11 @@ -- content: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDWVj0fQ5N8wNc0LVNA41wDLYJ89ZIbejrPfg/avyj3u/ZohAKsQclxG4Ju0VirduBFF9EOiuxoiFBRr3xRpqzpsZtnMPkWVWb+akZwBFAx8p+jKdy4QXR/SZqbVobrGwip2UjSrri1CtBxpJikojRIZfCnDaMOyd9Jp6KkujvniFzUWdLmCPxUE9zhTaPu0JsEP7MW0m6yx7ZUhHyfss+NtqmFTaDO+QlMR7L2QkDliN2Jl3Xa3PhuWnKJfWhdAq1Cw4oraKUOmIgXLkuiuxVQ6mD3AiFupkmfqdHq6h+uHHmyQqv3gU+/sD8GbGAhf6ftqhTsXjnv1Aj4R8NoDf9BS6KRkzkeun5UisSzgtfQzjOMEiJtmrep2ZQrMGahrXa+q4VKr0aKJfm+KlLfwm/JztfsBcqQWNcTURiCFqz+fgZw0Ey/de0eyMzldYTdXXNRYCKjs9bvBK+6SSXRM7AhftfQ0ZuoW5+gtinPrnmoOaSCEJbAiEiTO/BzOHgowiM= user2@localhost - created_unix: 1559593109 - fingerprint: SHA256:M3iiFbqQKgLxi+WAoRa38ZVQ9ktdfau2sOu9xuPb9ew +- id: 1 - login_source_id: 0 - mode: 2 - name: user2@localhost owner_id: 2 + name: user2@localhost + fingerprint: "SHA256:M3iiFbqQKgLxi+WAoRa38ZVQ9ktdfau2sOu9xuPb9ew" + content: "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDWVj0fQ5N8wNc0LVNA41wDLYJ89ZIbejrPfg/avyj3u/ZohAKsQclxG4Ju0VirduBFF9EOiuxoiFBRr3xRpqzpsZtnMPkWVWb+akZwBFAx8p+jKdy4QXR/SZqbVobrGwip2UjSrri1CtBxpJikojRIZfCnDaMOyd9Jp6KkujvniFzUWdLmCPxUE9zhTaPu0JsEP7MW0m6yx7ZUhHyfss+NtqmFTaDO+QlMR7L2QkDliN2Jl3Xa3PhuWnKJfWhdAq1Cw4oraKUOmIgXLkuiuxVQ6mD3AiFupkmfqdHq6h+uHHmyQqv3gU+/sD8GbGAhf6ftqhTsXjnv1Aj4R8NoDf9BS6KRkzkeun5UisSzgtfQzjOMEiJtmrep2ZQrMGahrXa+q4VKr0aKJfm+KlLfwm/JztfsBcqQWNcTURiCFqz+fgZw0Ey/de0eyMzldYTdXXNRYCKjs9bvBK+6SSXRM7AhftfQ0ZuoW5+gtinPrnmoOaSCEJbAiEiTO/BzOHgowiM= user2@localhost" + mode: 2 type: 1 + created_unix: 1559593109 updated_unix: 1565224552 - verified: 0 + login_source_id: 0 \ No newline at end of file diff --git a/models/fixtures/pull_request.yml b/models/fixtures/pull_request.yml index 101deeebca562..e5589ac703d77 100644 --- a/models/fixtures/pull_request.yml +++ b/models/fixtures/pull_request.yml @@ -1,140 +1,91 @@ -- allow_maintainer_edit: 0 - base_branch: master - base_repo_id: 1 - changed_protected_files: null - commits_ahead: null - commits_behind: null - conflicted_files: null - flow: 0 - has_merged: 1 - head_branch: branch1 - head_repo_id: 1 +- id: 1 - index: 2 + type: 0 # gitea pull request + status: 2 # mergable issue_id: 2 + index: 2 + head_repo_id: 1 + base_repo_id: 1 + head_branch: branch1 + base_branch: master merge_base: 4a357436d925b5c974181ff12a994538ddc5a269 - merged_commit_id: null - merged_unix: null + has_merged: true merger_id: 2 - status: 2 - type: 0 -- allow_maintainer_edit: 0 - base_branch: master - base_repo_id: 1 - changed_protected_files: null - commits_ahead: null - commits_behind: null - conflicted_files: null - flow: 0 - has_merged: 0 - head_branch: branch2 - head_repo_id: 1 + +- id: 2 - index: 3 + type: 0 # gitea pull request + status: 2 # mergable issue_id: 3 - merge_base: 4a357436d925b5c974181ff12a994538ddc5a269 - merged_commit_id: null - merged_unix: null - merger_id: null - status: 2 - type: 0 -- allow_maintainer_edit: 0 - base_branch: master - base_repo_id: 10 - changed_protected_files: null - commits_ahead: null - commits_behind: null - conflicted_files: null - flow: 0 - has_merged: 0 + index: 3 + head_repo_id: 1 + base_repo_id: 1 head_branch: branch2 - head_repo_id: 11 + base_branch: master + merge_base: 4a357436d925b5c974181ff12a994538ddc5a269 + has_merged: false + +- id: 3 - index: 1 + type: 0 # gitea pull request + status: 2 # mergable issue_id: 8 - merge_base: 0abcb056019adb83 - merged_commit_id: null - merged_unix: null - merger_id: null - status: 2 - type: 0 -- allow_maintainer_edit: 0 + index: 1 + head_repo_id: 11 + base_repo_id: 10 + head_branch: branch2 base_branch: master - base_repo_id: 48 - changed_protected_files: null - commits_ahead: null - commits_behind: null - conflicted_files: null - flow: 0 - has_merged: 0 - head_branch: branch1 - head_repo_id: 48 + merge_base: 0abcb056019adb83 + has_merged: false + +- id: 4 - index: 1 + type: 0 # gitea pull request + status: 2 # mergable issue_id: 9 + index: 1 + head_repo_id: 48 + base_repo_id: 48 + head_branch: branch1 + base_branch: master merge_base: abcdef1234567890 - merged_commit_id: null - merged_unix: null - merger_id: null - status: 2 - type: 0 -- allow_maintainer_edit: 0 - base_branch: branch2 + has_merged: false + +- + id: 5 # this PR is outdated (one commit behind branch1 ) + type: 0 # gitea pull request + status: 2 # mergable + issue_id: 11 + index: 5 + head_repo_id: 1 base_repo_id: 1 - changed_protected_files: null - commits_ahead: null - commits_behind: null - conflicted_files: null - flow: 0 - has_merged: 0 head_branch: pr-to-update - head_repo_id: 1 - id: 5 - index: 5 - issue_id: 11 + base_branch: branch2 merge_base: 985f0301dba5e7b34be866819cd15ad3d8f508ee - merged_commit_id: null - merged_unix: null - merger_id: null - status: 2 - type: 0 -- allow_maintainer_edit: 0 - base_branch: master - base_repo_id: 3 - changed_protected_files: null - commits_ahead: null - commits_behind: null - conflicted_files: null - flow: 0 - has_merged: 0 - head_branch: test_branch - head_repo_id: 3 + has_merged: false + +- id: 6 - index: 2 + type: 0 # gitea pull request + status: 2 # mergable issue_id: 12 + index: 2 + head_repo_id: 3 + base_repo_id: 3 + head_branch: test_branch + base_branch: master merge_base: 2a47ca4b614a9f5a - merged_commit_id: null - merged_unix: null - merger_id: null - status: 2 - type: 0 -- allow_maintainer_edit: 0 - base_branch: main - base_repo_id: 58 - changed_protected_files: null - commits_ahead: null - commits_behind: null - conflicted_files: null - flow: 0 - has_merged: 0 - head_branch: branch1 - head_repo_id: 58 + has_merged: false + +- id: 7 - index: 1 + type: 0 # gitea pull request + status: 2 # mergable issue_id: 19 + index: 1 + head_repo_id: 58 + base_repo_id: 58 + head_branch: branch1 + base_branch: main merge_base: cbff181af4c9c7fee3cf6c106699e07d9a3f54e6 - merged_commit_id: null - merged_unix: null - merger_id: null - status: 2 - type: 0 + has_merged: false diff --git a/models/fixtures/reaction.yml b/models/fixtures/reaction.yml index 150772af2cc09..4925935fe6fe6 100644 --- a/models/fixtures/reaction.yml +++ b/models/fixtures/reaction.yml @@ -1,40 +1,39 @@ -- comment_id: 0 - created_unix: 1573248001 - id: 1 +- + id: 1 #issue reaction + type: zzz # not allowed reaction (added before allowed reaction list has changed) issue_id: 1 - original_author: null - original_author_id: 0 - type: zzz + comment_id: 0 user_id: 2 -- comment_id: 0 - created_unix: 1573248002 - id: 2 + created_unix: 1573248001 + +- + id: 2 #issue reaction + type: zzz # not allowed reaction (added before allowed reaction list has changed) issue_id: 1 - original_author: null - original_author_id: 0 - type: zzz + comment_id: 0 user_id: 1 -- comment_id: 0 - created_unix: 1573248003 - id: 3 + created_unix: 1573248002 + +- + id: 3 #issue reaction + type: eyes # allowed reaction issue_id: 1 - original_author: null - original_author_id: 0 - type: eyes + comment_id: 0 user_id: 2 -- comment_id: 2 - created_unix: 1573248004 - id: 4 + created_unix: 1573248003 + +- + id: 4 #comment reaction + type: laugh # allowed reaction issue_id: 1 - original_author: null - original_author_id: 0 - type: laugh + comment_id: 2 user_id: 2 -- comment_id: 2 - created_unix: 1573248005 - id: 5 + created_unix: 1573248004 + +- + id: 5 #comment reaction + type: laugh # allowed reaction issue_id: 1 - original_author: null - original_author_id: 0 - type: laugh + comment_id: 2 user_id: 1 + created_unix: 1573248005 diff --git a/models/fixtures/release.yml b/models/fixtures/release.yml index 79fcb054b2b48..4ed7df440dbd3 100644 --- a/models/fixtures/release.yml +++ b/models/fixtures/release.yml @@ -1,160 +1,138 @@ -- created_unix: 946684800 - id: 1 - is_draft: 0 - is_prerelease: 0 - is_tag: 0 - lower_tag_name: v1.1 - note: null - num_commits: 10 - original_author: null - original_author_id: null - publisher_id: 2 +- id: 1 repo_id: 1 - sha1: 65f1bf27bc3bf70f64657658635e66094edbcb4d - tag_name: v1.1 - target: master - title: testing-release -- created_unix: 946684800 - id: 2 - is_draft: 0 - is_prerelease: 0 - is_tag: 0 - lower_tag_name: v1.1 - note: null - num_commits: 10 - original_author: null - original_author_id: null publisher_id: 2 - repo_id: 40 - sha1: 65f1bf27bc3bf70f64657658635e66094edbcb4d - tag_name: v1.1 - target: master - title: testing-release -- created_unix: 946684800 - id: 3 - is_draft: 0 - is_prerelease: 0 - is_tag: 1 - lower_tag_name: delete-tag - note: null + tag_name: "v1.1" + lower_tag_name: "v1.1" + target: "master" + title: "testing-release" + sha1: "65f1bf27bc3bf70f64657658635e66094edbcb4d" num_commits: 10 - original_author: null - original_author_id: null + is_draft: false + is_prerelease: false + is_tag: false + created_unix: 946684800 + +- id: 2 + repo_id: 40 publisher_id: 2 + tag_name: "v1.1" + lower_tag_name: "v1.1" + target: "master" + title: "testing-release" + sha1: "65f1bf27bc3bf70f64657658635e66094edbcb4d" + num_commits: 10 + is_draft: false + is_prerelease: false + is_tag: false + created_unix: 946684800 + +- id: 3 repo_id: 1 - sha1: 65f1bf27bc3bf70f64657658635e66094edbcb4d - tag_name: delete-tag - target: master - title: delete-tag -- created_unix: 1619524806 - id: 4 - is_draft: 1 - is_prerelease: 0 - is_tag: 0 - lower_tag_name: draft-release - note: null - num_commits: null - original_author: null - original_author_id: null publisher_id: 2 + tag_name: "delete-tag" + lower_tag_name: "delete-tag" + target: "master" + title: "delete-tag" + sha1: "65f1bf27bc3bf70f64657658635e66094edbcb4d" + num_commits: 10 + is_draft: false + is_prerelease: false + is_tag: true + created_unix: 946684800 + +- id: 4 repo_id: 1 - sha1: null - tag_name: draft-release - target: master - title: draft-release -- created_unix: 946684800 - id: 5 - is_draft: 0 - is_prerelease: 1 - is_tag: 0 - lower_tag_name: v1.0 - note: some text for a pre release - num_commits: 1 - original_author: null - original_author_id: null publisher_id: 2 + tag_name: "draft-release" + lower_tag_name: "draft-release" + target: "master" + title: "draft-release" + is_draft: true + is_prerelease: false + is_tag: false + created_unix: 1619524806 + +- id: 5 repo_id: 1 - sha1: 65f1bf27bc3bf70f64657658635e66094edbcb4d - tag_name: v1.0 - target: master - title: pre-release -- created_unix: 946684801 - id: 6 - is_draft: 0 - is_prerelease: 0 - is_tag: 0 - lower_tag_name: v1.0 - note: null - num_commits: 3 - original_author: null - original_author_id: null publisher_id: 2 + tag_name: "v1.0" + lower_tag_name: "v1.0" + target: "master" + title: "pre-release" + note: "some text for a pre release" + sha1: "65f1bf27bc3bf70f64657658635e66094edbcb4d" + num_commits: 1 + is_draft: false + is_prerelease: true + is_tag: false + created_unix: 946684800 + +- id: 6 repo_id: 57 - sha1: a8a700e8c644c783ba2c6e742bb81bf91e244bff - tag_name: v1.0 - target: main - title: v1.0 -- created_unix: 946684802 - id: 7 - is_draft: 0 - is_prerelease: 0 - is_tag: 0 - lower_tag_name: v1.1 - note: null - num_commits: 5 - original_author: null - original_author_id: null publisher_id: 2 + tag_name: "v1.0" + lower_tag_name: "v1.0" + target: "main" + title: "v1.0" + sha1: "a8a700e8c644c783ba2c6e742bb81bf91e244bff" + num_commits: 3 + is_draft: false + is_prerelease: false + is_tag: false + created_unix: 946684801 + +- id: 7 repo_id: 57 - sha1: cef06e48f2642cd0dc9597b4bea09f4b3f74aad6 - tag_name: v1.1 - target: main - title: v1.1 -- created_unix: 946684803 - id: 8 - is_draft: 0 - is_prerelease: 0 - is_tag: 0 - lower_tag_name: v2.0 - note: null - num_commits: 6 - original_author: null - original_author_id: null publisher_id: 2 - repo_id: 57 - sha1: 7197b56fdc75b453f47c9110938cb46a303579fd - tag_name: v2.0 - target: main - title: v2.0 -- created_unix: 946684803 - id: 9 - is_draft: 0 - is_prerelease: 0 - is_tag: 0 - lower_tag_name: non-existing-target-branch - note: null + tag_name: "v1.1" + lower_tag_name: "v1.1" + target: "main" + title: "v1.1" + sha1: "cef06e48f2642cd0dc9597b4bea09f4b3f74aad6" num_commits: 5 - original_author: null - original_author_id: null + is_draft: false + is_prerelease: false + is_tag: false + created_unix: 946684802 + +- id: 8 + repo_id: 57 publisher_id: 2 + tag_name: "v2.0" + lower_tag_name: "v2.0" + target: "main" + title: "v2.0" + sha1: "7197b56fdc75b453f47c9110938cb46a303579fd" + num_commits: 6 + is_draft: false + is_prerelease: false + is_tag: false + created_unix: 946684803 + +- id: 9 repo_id: 57 - sha1: cef06e48f2642cd0dc9597b4bea09f4b3f74aad6 - tag_name: non-existing-target-branch - target: non-existing - title: non-existing-target-branch -- created_unix: 946684803 - id: 10 - is_draft: 0 - is_prerelease: 0 - is_tag: 0 - lower_tag_name: empty-target-branch - note: null - num_commits: 5 - original_author: null - original_author_id: null publisher_id: 2 + tag_name: "non-existing-target-branch" + lower_tag_name: "non-existing-target-branch" + target: "non-existing" + title: "non-existing-target-branch" + sha1: "cef06e48f2642cd0dc9597b4bea09f4b3f74aad6" + num_commits: 5 + is_draft: false + is_prerelease: false + is_tag: false + created_unix: 946684803 + +- id: 10 repo_id: 57 - sha1: cef06e48f2642cd0dc9597b4bea09f4b3f74aad6 - tag_name: empty-target-branch + publisher_id: 2 + tag_name: "empty-target-branch" + lower_tag_name: "empty-target-branch" target: "" - title: empty-target-branch + title: "empty-target-branch" + sha1: "cef06e48f2642cd0dc9597b4bea09f4b3f74aad6" + num_commits: 5 + is_draft: false + is_prerelease: false + is_tag: false + created_unix: 946684803 diff --git a/models/fixtures/renamed_branch.yml b/models/fixtures/renamed_branch.yml index 6366f0978ca72..efa5130a2b9e9 100644 --- a/models/fixtures/renamed_branch.yml +++ b/models/fixtures/renamed_branch.yml @@ -1,5 +1,5 @@ -- created_unix: null - from: dev +- id: 1 repo_id: 1 + from: dev to: master diff --git a/models/fixtures/repo_archiver.yml b/models/fixtures/repo_archiver.yml index fe51488c7066f..ca780a73aa0c1 100644 --- a/models/fixtures/repo_archiver.yml +++ b/models/fixtures/repo_archiver.yml @@ -1 +1 @@ -[] +[] # empty diff --git a/models/fixtures/repo_indexer_status.yml b/models/fixtures/repo_indexer_status.yml index 7b3f19175f7a1..ca780a73aa0c1 100644 --- a/models/fixtures/repo_indexer_status.yml +++ b/models/fixtures/repo_indexer_status.yml @@ -1,84 +1 @@ -- commit_sha: aacbdfe9e1c4b47f60abe81849045fa4e96f1d75 - id: 5 - indexer_type: 1 - repo_id: 49 -- commit_sha: cdaca8cf1d36e1e4e508a940f6e157e239beccfa - id: 6 - indexer_type: 1 - repo_id: 48 -- commit_sha: cdaca8cf1d36e1e4e508a940f6e157e239beccfa - id: 7 - indexer_type: 1 - repo_id: 47 -- commit_sha: cdaca8cf1d36e1e4e508a940f6e157e239beccfa - id: 8 - indexer_type: 1 - repo_id: 46 -- commit_sha: 2a83b349fa234131fc5db6f2a0498d3f4d3d6038 - id: 9 - indexer_type: 1 - repo_id: 44 -- commit_sha: ef6b814b610d8e7717aa0f71fbe5842bcf814697 - id: 10 - indexer_type: 1 - repo_id: 42 -- commit_sha: 6e75c9f89da9a9b93f4f36e61ed092f7a1625ba0 - id: 11 - indexer_type: 1 - repo_id: 41 -- commit_sha: bf19fd4707acb403c4aca44f126ab69142ac59ce - id: 12 - indexer_type: 1 - repo_id: 40 -- commit_sha: b895782bd271fdd266dd06e5880ea4abdc3a0dc7 - id: 13 - indexer_type: 1 - repo_id: 39 -- commit_sha: 90e402c3937a4639725fcc59ca1f529e7dc8506f - id: 14 - indexer_type: 1 - repo_id: 38 -- commit_sha: 65f1bf27bc3bf70f64657658635e66094edbcb4d - id: 15 - indexer_type: 1 - repo_id: 37 -- commit_sha: 9800fe78cabf4fe774fcf376f97fa2a0ed06987b - id: 16 - indexer_type: 1 - repo_id: 36 -- commit_sha: 3aa73c3499bff049a352b4e265575373e964b89a - id: 17 - indexer_type: 1 - repo_id: 33 -- commit_sha: 808038d2f71b0ab020991439cffd24309c7bc530 - id: 18 - indexer_type: 1 - repo_id: 31 -- commit_sha: 69554a64c1e6030f051e5c3f94bfbd773cd6a324 - id: 19 - indexer_type: 1 - repo_id: 16 -- commit_sha: 65f1bf27bc3bf70f64657658635e66094edbcb4d - id: 20 - indexer_type: 1 - repo_id: 11 -- commit_sha: 65f1bf27bc3bf70f64657658635e66094edbcb4d - id: 21 - indexer_type: 1 - repo_id: 10 -- commit_sha: c7cd3cd144e6d23c9d6f3d07e52b2c1a956e0338 - id: 22 - indexer_type: 1 - repo_id: 4 -- commit_sha: 2a47ca4b614a9f5a43abbd5ad851a54a616ffee6 - id: 23 - indexer_type: 1 - repo_id: 3 -- commit_sha: 1032bbf17fbc0d9c95bb5418dabe8f8c99278700 - id: 24 - indexer_type: 1 - repo_id: 2 -- commit_sha: 65f1bf27bc3bf70f64657658635e66094edbcb4d - id: 25 - indexer_type: 1 - repo_id: 1 +[] # empty diff --git a/models/fixtures/repo_redirect.yml b/models/fixtures/repo_redirect.yml index e1e1335a87f4c..8850c8d780b70 100644 --- a/models/fixtures/repo_redirect.yml +++ b/models/fixtures/repo_redirect.yml @@ -1,4 +1,5 @@ -- id: 1 - lower_name: oldrepo1 +- + id: 1 owner_id: 2 + lower_name: oldrepo1 redirect_repo_id: 1 diff --git a/models/fixtures/repo_topic.yml b/models/fixtures/repo_topic.yml index a0988f3a733c6..f166faccc1d8f 100644 --- a/models/fixtures/repo_topic.yml +++ b/models/fixtures/repo_topic.yml @@ -1,14 +1,27 @@ -- repo_id: 1 +- + repo_id: 1 topic_id: 1 -- repo_id: 1 + +- + repo_id: 1 topic_id: 2 -- repo_id: 1 + +- + repo_id: 1 topic_id: 3 -- repo_id: 33 + +- + repo_id: 33 topic_id: 1 -- repo_id: 33 + +- + repo_id: 33 topic_id: 4 -- repo_id: 2 + +- + repo_id: 2 topic_id: 5 -- repo_id: 2 + +- + repo_id: 2 topic_id: 6 diff --git a/models/fixtures/repo_transfer.yml b/models/fixtures/repo_transfer.yml index b59b61d9c7aa7..b841b5e983a1b 100644 --- a/models/fixtures/repo_transfer.yml +++ b/models/fixtures/repo_transfer.yml @@ -1,7 +1,7 @@ -- created_unix: 1553610671 - doer_id: 3 +- id: 1 + doer_id: 3 recipient_id: 1 repo_id: 3 - team_i_ds: null + created_unix: 1553610671 updated_unix: 1553610671 diff --git a/models/fixtures/repo_unit.yml b/models/fixtures/repo_unit.yml index 902c823c12363..c22eb8c2a2f08 100644 --- a/models/fixtures/repo_unit.yml +++ b/models/fixtures/repo_unit.yml @@ -1,485 +1,651 @@ -- config: '{}' - created_unix: 946684810 +# See models/unit/unit.go for the meaning of the type +- id: 1 repo_id: 1 type: 4 -- config: '{}' + config: "{}" created_unix: 946684810 + +- id: 2 repo_id: 1 type: 5 -- config: '{}' + config: "{}" created_unix: 946684810 + +- id: 3 repo_id: 1 type: 1 -- config: '{"EnableTimetracker":true,"AllowOnlyContributorsToTrackTime":true}' + config: "{}" created_unix: 946684810 + +- id: 4 repo_id: 1 type: 2 -- config: '{"IgnoreWhitespaceConflicts":false,"AllowMerge":true,"AllowRebase":true,"AllowRebaseMerge":true,"AllowSquash":true}' + config: "{\"EnableTimetracker\":true,\"AllowOnlyContributorsToTrackTime\":true}" created_unix: 946684810 + +- id: 5 repo_id: 1 type: 3 -- config: '{}' + config: "{\"IgnoreWhitespaceConflicts\":false,\"AllowMerge\":true,\"AllowRebase\":true,\"AllowRebaseMerge\":true,\"AllowSquash\":true}" created_unix: 946684810 + +- id: 6 repo_id: 3 type: 1 -- config: '{"EnableTimetracker":false,"AllowOnlyContributorsToTrackTime":false}' + config: "{}" created_unix: 946684810 + +- id: 7 repo_id: 3 type: 2 -- config: '{"IgnoreWhitespaceConflicts":true,"AllowMerge":true,"AllowRebase":false,"AllowRebaseMerge":true,"AllowSquash":false}' + config: "{\"EnableTimetracker\":false,\"AllowOnlyContributorsToTrackTime\":false}" created_unix: 946684810 + +- id: 8 repo_id: 3 type: 3 -- config: '{}' + config: "{\"IgnoreWhitespaceConflicts\":true,\"AllowMerge\":true,\"AllowRebase\":false,\"AllowRebaseMerge\":true,\"AllowSquash\":false}" created_unix: 946684810 + +- id: 9 repo_id: 3 type: 4 -- config: '{}' + config: "{}" created_unix: 946684810 + +- id: 10 repo_id: 3 type: 5 -- config: '{}' - created_unix: 1524304355 + config: "{}" + created_unix: 946684810 + +- id: 11 repo_id: 31 type: 1 -- config: '{}' - created_unix: 1535593231 + config: "{}" + created_unix: 1524304355 + +- id: 12 repo_id: 33 type: 1 -- config: '{"EnableTimetracker":true,"AllowOnlyContributorsToTrackTime":true}' + config: "{}" created_unix: 1535593231 + +- id: 13 repo_id: 33 type: 2 -- config: '{"IgnoreWhitespaceConflicts":false,"AllowMerge":true,"AllowRebase":true,"AllowSquash":true}' + config: "{\"EnableTimetracker\":true,\"AllowOnlyContributorsToTrackTime\":true}" created_unix: 1535593231 + +- id: 14 repo_id: 33 type: 3 -- config: '{}' + config: "{\"IgnoreWhitespaceConflicts\":false,\"AllowMerge\":true,\"AllowRebase\":true,\"AllowSquash\":true}" created_unix: 1535593231 + +- id: 15 repo_id: 33 type: 4 -- config: '{}' + config: "{}" created_unix: 1535593231 + +- id: 16 repo_id: 33 type: 5 -- config: '{}' - created_unix: 946684810 + config: "{}" + created_unix: 1535593231 + +- id: 17 repo_id: 4 type: 4 -- config: '{}' + config: "{}" created_unix: 946684810 + +- id: 18 repo_id: 4 type: 5 -- config: '{}' + config: "{}" created_unix: 946684810 + +- id: 19 repo_id: 4 type: 1 -- config: '{"EnableTimetracker":true,"AllowOnlyContributorsToTrackTime":true}' + config: "{}" created_unix: 946684810 + +- id: 20 repo_id: 4 type: 2 -- config: '{"IgnoreWhitespaceConflicts":false,"AllowMerge":true,"AllowRebase":true,"AllowSquash":true}' + config: "{\"EnableTimetracker\":true,\"AllowOnlyContributorsToTrackTime\":true}" created_unix: 946684810 + +- id: 21 repo_id: 4 type: 3 -- config: '{}' + config: "{\"IgnoreWhitespaceConflicts\":false,\"AllowMerge\":true,\"AllowRebase\":true,\"AllowSquash\":true}" created_unix: 946684810 + +- id: 22 repo_id: 2 type: 4 -- config: '{}' + config: "{}" created_unix: 946684810 + +- id: 23 repo_id: 2 type: 5 -- config: '{}' + config: "{}" created_unix: 946684810 + +- id: 24 repo_id: 2 type: 1 -- config: '{}' - created_unix: 1524304355 + config: "{}" + created_unix: 946684810 + +- id: 25 repo_id: 32 type: 1 -- config: '{}' + config: "{}" created_unix: 1524304355 + +- id: 26 repo_id: 32 type: 2 -- config: '{}' + config: "{}" created_unix: 1524304355 + +- id: 27 repo_id: 24 type: 1 -- config: '{}' + config: "{}" created_unix: 1524304355 + +- id: 28 repo_id: 24 type: 2 -- config: '{}' + config: "{}" created_unix: 1524304355 + +- id: 29 repo_id: 16 type: 1 -- config: '{}' + config: "{}" created_unix: 1524304355 + +- id: 30 repo_id: 23 type: 1 -- config: '{}' + config: "{}" created_unix: 1524304355 + +- id: 31 repo_id: 27 type: 1 -- config: '{}' + config: "{}" created_unix: 1524304355 + +- id: 32 repo_id: 28 type: 1 -- config: '{}' + config: "{}" created_unix: 1524304355 + +- id: 33 repo_id: 36 type: 4 -- config: '{}' + config: "{}" created_unix: 1524304355 + +- id: 34 repo_id: 36 type: 5 -- config: '{}' + config: "{}" created_unix: 1524304355 + +- id: 35 repo_id: 36 type: 1 -- config: '{"EnableTimetracker":true,"AllowOnlyContributorsToTrackTime":true}' + config: "{}" created_unix: 1524304355 + +- id: 36 repo_id: 36 type: 2 -- config: '{"IgnoreWhitespaceConflicts":false,"AllowMerge":true,"AllowRebase":true,"AllowRebaseMerge":true,"AllowSquash":true}' + config: "{\"EnableTimetracker\":true,\"AllowOnlyContributorsToTrackTime\":true}" created_unix: 1524304355 + +- id: 37 repo_id: 36 type: 3 -- config: '{}' - created_unix: 946684810 + config: "{\"IgnoreWhitespaceConflicts\":false,\"AllowMerge\":true,\"AllowRebase\":true,\"AllowRebaseMerge\":true,\"AllowSquash\":true}" + created_unix: 1524304355 + +- id: 38 repo_id: 37 type: 4 -- config: '{}' + config: "{}" created_unix: 946684810 + +- id: 39 repo_id: 37 type: 5 -- config: '{}' + config: "{}" created_unix: 946684810 + +- id: 40 repo_id: 37 type: 1 -- config: '{"EnableTimetracker":true,"AllowOnlyContributorsToTrackTime":true}' + config: "{}" created_unix: 946684810 + +- id: 41 repo_id: 37 type: 2 -- config: '{"IgnoreWhitespaceConflicts":false,"AllowMerge":true,"AllowRebase":true,"AllowRebaseMerge":true,"AllowSquash":true}' + config: "{\"EnableTimetracker\":true,\"AllowOnlyContributorsToTrackTime\":true}" created_unix: 946684810 + +- id: 42 repo_id: 37 type: 3 -- config: '{}' + config: "{\"IgnoreWhitespaceConflicts\":false,\"AllowMerge\":true,\"AllowRebase\":true,\"AllowRebaseMerge\":true,\"AllowSquash\":true}" created_unix: 946684810 + +- id: 43 repo_id: 38 type: 1 -- config: '{"EnableTimetracker":true,"AllowOnlyContributorsToTrackTime":true}' + config: "{}" created_unix: 946684810 + +- id: 44 repo_id: 38 type: 2 -- config: '{"IgnoreWhitespaceConflicts":false,"AllowMerge":true,"AllowRebase":true,"AllowRebaseMerge":true,"AllowSquash":true}' + config: "{\"EnableTimetracker\":true,\"AllowOnlyContributorsToTrackTime\":true}" created_unix: 946684810 + +- id: 45 repo_id: 38 type: 3 -- config: '{}' + config: "{\"IgnoreWhitespaceConflicts\":false,\"AllowMerge\":true,\"AllowRebase\":true,\"AllowRebaseMerge\":true,\"AllowSquash\":true}" created_unix: 946684810 + +- id: 46 repo_id: 39 type: 1 -- config: '{"EnableTimetracker":true,"AllowOnlyContributorsToTrackTime":true}' + config: "{}" created_unix: 946684810 + +- id: 47 repo_id: 39 type: 2 -- config: '{"IgnoreWhitespaceConflicts":false,"AllowMerge":true,"AllowRebase":true,"AllowRebaseMerge":true,"AllowSquash":true}' + config: "{\"EnableTimetracker\":true,\"AllowOnlyContributorsToTrackTime\":true}" created_unix: 946684810 + +- id: 48 repo_id: 39 type: 3 -- config: '{}' + config: "{\"IgnoreWhitespaceConflicts\":false,\"AllowMerge\":true,\"AllowRebase\":true,\"AllowRebaseMerge\":true,\"AllowSquash\":true}" created_unix: 946684810 + +- id: 49 repo_id: 40 type: 1 -- config: '{"EnableTimetracker":true,"AllowOnlyContributorsToTrackTime":true}' + config: "{}" created_unix: 946684810 + +- id: 50 repo_id: 40 type: 2 -- config: '{"IgnoreWhitespaceConflicts":false,"AllowMerge":true,"AllowRebase":true,"AllowRebaseMerge":true,"AllowSquash":true}' + config: "{\"EnableTimetracker\":true,\"AllowOnlyContributorsToTrackTime\":true}" created_unix: 946684810 + +- id: 51 repo_id: 40 type: 3 -- config: '{}' + config: "{\"IgnoreWhitespaceConflicts\":false,\"AllowMerge\":true,\"AllowRebase\":true,\"AllowRebaseMerge\":true,\"AllowSquash\":true}" created_unix: 946684810 + +- id: 52 repo_id: 41 type: 1 -- config: '{"EnableTimetracker":true,"AllowOnlyContributorsToTrackTime":true}' + config: "{}" created_unix: 946684810 + +- id: 53 repo_id: 41 type: 2 -- config: '{"IgnoreWhitespaceConflicts":false,"AllowMerge":true,"AllowRebase":true,"AllowRebaseMerge":true,"AllowSquash":true}' + config: "{\"EnableTimetracker\":true,\"AllowOnlyContributorsToTrackTime\":true}" created_unix: 946684810 + +- id: 54 repo_id: 41 type: 3 -- config: '{}' + config: "{\"IgnoreWhitespaceConflicts\":false,\"AllowMerge\":true,\"AllowRebase\":true,\"AllowRebaseMerge\":true,\"AllowSquash\":true}" created_unix: 946684810 + +- id: 55 repo_id: 10 type: 1 -- config: '{"EnableTimetracker":true,"AllowOnlyContributorsToTrackTime":true}' + config: "{}" created_unix: 946684810 + +- id: 56 repo_id: 10 type: 2 -- config: '{"IgnoreWhitespaceConflicts":false,"AllowMerge":true,"AllowRebase":true,"AllowRebaseMerge":true,"AllowSquash":true}' + config: "{\"EnableTimetracker\":true,\"AllowOnlyContributorsToTrackTime\":true}" created_unix: 946684810 + +- id: 57 repo_id: 10 type: 3 -- config: '{}' + config: "{\"IgnoreWhitespaceConflicts\":false,\"AllowMerge\":true,\"AllowRebase\":true,\"AllowRebaseMerge\":true,\"AllowSquash\":true}" created_unix: 946684810 + +- id: 58 repo_id: 11 type: 1 -- config: '{}' + config: "{}" created_unix: 946684810 + +- id: 59 repo_id: 42 type: 1 -- config: '{}' + config: "{}" created_unix: 946684810 + +- id: 60 repo_id: 42 type: 4 -- config: '{}' + config: "{}" created_unix: 946684810 + +- id: 61 repo_id: 42 type: 5 -- config: '{"EnableTimetracker":true,"AllowOnlyContributorsToTrackTime":true}' + config: "{}" created_unix: 946684810 + +- id: 62 repo_id: 42 type: 2 -- config: '{"IgnoreWhitespaceConflicts":false,"AllowMerge":true,"AllowRebase":true,"AllowRebaseMerge":true,"AllowSquash":true}' + config: "{\"EnableTimetracker\":true,\"AllowOnlyContributorsToTrackTime\":true}" created_unix: 946684810 + +- id: 63 repo_id: 42 type: 3 -- config: '{}' + config: "{\"IgnoreWhitespaceConflicts\":false,\"AllowMerge\":true,\"AllowRebase\":true,\"AllowRebaseMerge\":true,\"AllowSquash\":true}" created_unix: 946684810 + +- id: 64 repo_id: 44 type: 1 -- config: '{}' + config: "{}" created_unix: 946684810 + +- id: 65 repo_id: 45 type: 1 -- config: '{"ExternalTrackerURL":"https://tracker.com","ExternalTrackerFormat":"https://tracker.com/{user}/{repo}/issues/{index}","ExternalTrackerStyle":""}' + config: "{}" created_unix: 946684810 + +- id: 66 repo_id: 46 type: 7 -- config: '{"ExternalTrackerURL":"https://tracker.com","ExternalTrackerFormat":"https://tracker.com/{user}/{repo}/issues/{index}","ExternalTrackerStyle":"numeric"}' + config: "{\"ExternalTrackerURL\":\"https://tracker.com\",\"ExternalTrackerFormat\":\"https://tracker.com/{user}/{repo}/issues/{index}\",\"ExternalTrackerStyle\":\"\"}" created_unix: 946684810 + +- id: 67 repo_id: 47 type: 7 -- config: '{"ExternalTrackerURL":"https://tracker.com","ExternalTrackerFormat":"https://tracker.com/{user}/{repo}/issues/{index}","ExternalTrackerStyle":"alphanumeric"}' + config: "{\"ExternalTrackerURL\":\"https://tracker.com\",\"ExternalTrackerFormat\":\"https://tracker.com/{user}/{repo}/issues/{index}\",\"ExternalTrackerStyle\":\"numeric\"}" created_unix: 946684810 + +- id: 68 repo_id: 48 type: 7 -- config: '{}' + config: "{\"ExternalTrackerURL\":\"https://tracker.com\",\"ExternalTrackerFormat\":\"https://tracker.com/{user}/{repo}/issues/{index}\",\"ExternalTrackerStyle\":\"alphanumeric\"}" created_unix: 946684810 +- id: 69 repo_id: 2 type: 2 -- config: '{}' + config: "{}" created_unix: 946684810 + +- id: 70 repo_id: 5 type: 4 -- config: '{}' + config: "{}" created_unix: 946684810 + +- id: 71 repo_id: 5 type: 5 -- config: '{}' + config: "{}" created_unix: 946684810 + +- id: 72 repo_id: 5 type: 1 -- config: '{"EnableTimetracker":true,"AllowOnlyContributorsToTrackTime":true}' + config: "{}" created_unix: 946684810 + +- id: 73 repo_id: 5 type: 2 -- config: '{"IgnoreWhitespaceConflicts":false,"AllowMerge":true,"AllowRebase":true,"AllowRebaseMerge":true,"AllowSquash":true}' + config: "{\"EnableTimetracker\":true,\"AllowOnlyContributorsToTrackTime\":true}" created_unix: 946684810 + +- id: 74 repo_id: 5 type: 3 -- config: null + config: "{\"IgnoreWhitespaceConflicts\":false,\"AllowMerge\":true,\"AllowRebase\":true,\"AllowRebaseMerge\":true,\"AllowSquash\":true}" created_unix: 946684810 + +- id: 75 repo_id: 1 type: 8 -- config: null created_unix: 946684810 + +- id: 76 repo_id: 2 type: 8 -- config: null created_unix: 946684810 + +- id: 77 repo_id: 3 type: 8 -- config: null created_unix: 946684810 + +- id: 78 repo_id: 50 type: 2 -- config: null created_unix: 946684810 + +- id: 79 repo_id: 51 type: 2 -- config: null created_unix: 946684810 + +- id: 80 repo_id: 53 type: 1 -- config: null created_unix: 946684810 + +- id: 81 repo_id: 54 type: 1 -- config: null created_unix: 946684810 + +- id: 82 repo_id: 31 type: 1 -- config: '{"IgnoreWhitespaceConflicts":false,"AllowMerge":true,"AllowRebase":true,"AllowRebaseMerge":true,"AllowSquash":true}' created_unix: 946684810 + +- id: 83 repo_id: 31 type: 3 -- config: null + config: "{\"IgnoreWhitespaceConflicts\":false,\"AllowMerge\":true,\"AllowRebase\":true,\"AllowRebaseMerge\":true,\"AllowSquash\":true}" created_unix: 946684810 + +- id: 84 repo_id: 56 type: 1 -- config: null created_unix: 946684810 +- id: 85 repo_id: 57 type: 1 -- config: null created_unix: 946684810 +- id: 86 repo_id: 57 type: 2 -- config: null created_unix: 946684810 +- id: 87 repo_id: 57 type: 3 -- config: null created_unix: 946684810 +- id: 88 repo_id: 57 type: 4 -- config: null created_unix: 946684810 +- id: 89 repo_id: 57 type: 5 -- config: null created_unix: 946684810 + +- id: 90 repo_id: 52 type: 1 -- config: null created_unix: 946684810 + +- id: 91 repo_id: 58 type: 1 -- config: null created_unix: 946684810 + +- id: 92 repo_id: 58 type: 2 -- config: null created_unix: 946684810 + +- id: 93 repo_id: 58 type: 3 -- config: null created_unix: 946684810 + +- id: 94 repo_id: 58 type: 4 -- config: null created_unix: 946684810 + +- id: 95 repo_id: 58 type: 5 -- config: null created_unix: 946684810 + +- id: 96 repo_id: 49 type: 1 -- config: null created_unix: 946684810 + +- id: 97 repo_id: 49 type: 2 + created_unix: 946684810 diff --git a/models/fixtures/repository.yml b/models/fixtures/repository.yml index 1100c53fc6539..15668e6caed68 100644 --- a/models/fixtures/repository.yml +++ b/models/fixtures/repository.yml @@ -1,2494 +1,1695 @@ -- archived_unix: 0 - avatar: null - close_issues_via_commit_in_any_branch: 0 - created_unix: null - default_branch: master - description: null - fork_id: 0 - git_size: 0 +# don't forget to add fixtures in repo_unit.yml +- id: 1 - is_archived: 0 - is_empty: 0 - is_fork: 0 - is_fsck_enabled: 1 - is_mirror: 0 - is_private: 0 - is_template: 0 - lfs_size: 0 + owner_id: 2 + owner_name: user2 lower_name: repo1 name: repo1 - num_action_runs: 0 - num_closed_action_runs: 0 - num_closed_issues: 1 - num_closed_milestones: 1 - num_closed_projects: 0 - num_closed_pulls: 0 + default_branch: master + num_watches: 4 + num_stars: 0 num_forks: 0 num_issues: 2 + num_closed_issues: 1 + num_pulls: 3 + num_closed_pulls: 0 num_milestones: 3 + num_closed_milestones: 1 num_projects: 1 - num_pulls: 3 - num_stars: 0 - num_watches: 4 - original_service_type: null - original_url: null - owner_id: 2 - owner_name: user2 - size: 7320 + num_closed_projects: 0 + is_private: false + is_empty: false + is_archived: false + is_mirror: false status: 0 - template_id: 0 - topics: null - trust_model: null - updated_unix: null - website: null -- archived_unix: 0 - avatar: null - close_issues_via_commit_in_any_branch: 1 - created_unix: null - default_branch: master - description: null + is_fork: false fork_id: 0 - git_size: 0 + is_template: false + template_id: 0 + size: 7320 + is_fsck_enabled: true + close_issues_via_commit_in_any_branch: false + +- id: 2 - is_archived: 0 - is_empty: 0 - is_fork: 0 - is_fsck_enabled: 1 - is_mirror: 0 - is_private: 1 - is_template: 0 - lfs_size: 0 + owner_id: 2 + owner_name: user2 lower_name: repo2 name: repo2 - num_action_runs: 0 - num_closed_action_runs: 0 - num_closed_issues: 1 - num_closed_milestones: 0 - num_closed_projects: 0 - num_closed_pulls: 0 + default_branch: master + num_watches: 0 + num_stars: 1 num_forks: 0 num_issues: 2 + num_closed_issues: 1 + num_pulls: 0 + num_closed_pulls: 0 num_milestones: 0 + num_closed_milestones: 0 num_projects: 0 - num_pulls: 0 - num_stars: 1 - num_watches: 0 - original_service_type: null - original_url: null - owner_id: 2 - owner_name: user2 - size: 0 + num_closed_projects: 0 + is_private: true + is_empty: false + is_archived: false + is_mirror: false status: 0 - template_id: 0 - topics: null - trust_model: null - updated_unix: null - website: null -- archived_unix: 0 - avatar: null - close_issues_via_commit_in_any_branch: 0 - created_unix: null - default_branch: master - description: null + is_fork: false fork_id: 0 - git_size: 0 + is_template: false + template_id: 0 + size: 0 + is_fsck_enabled: true + close_issues_via_commit_in_any_branch: true + +- id: 3 - is_archived: 0 - is_empty: 0 - is_fork: 0 - is_fsck_enabled: 1 - is_mirror: 0 - is_private: 1 - is_template: 0 - lfs_size: 0 + owner_id: 3 + owner_name: user3 lower_name: repo3 name: repo3 - num_action_runs: 0 - num_closed_action_runs: 0 - num_closed_issues: 0 - num_closed_milestones: 0 - num_closed_projects: 0 - num_closed_pulls: 0 + default_branch: master + num_watches: 0 + num_stars: 0 num_forks: 0 num_issues: 1 + num_closed_issues: 0 + num_pulls: 1 + num_closed_pulls: 0 num_milestones: 0 + num_closed_milestones: 0 num_projects: 1 - num_pulls: 1 - num_stars: 0 - num_watches: 0 - original_service_type: null - original_url: null - owner_id: 3 - owner_name: user3 - size: 0 + num_closed_projects: 0 + is_private: true + is_empty: false + is_archived: false + is_mirror: false status: 0 - template_id: 0 - topics: null - trust_model: null - updated_unix: null - website: null -- archived_unix: 0 - avatar: null - close_issues_via_commit_in_any_branch: 0 - created_unix: null - default_branch: master - description: null + is_fork: false fork_id: 0 - git_size: 0 + is_template: false + template_id: 0 + size: 0 + is_fsck_enabled: true + close_issues_via_commit_in_any_branch: false + +- id: 4 - is_archived: 0 - is_empty: 0 - is_fork: 0 - is_fsck_enabled: 1 - is_mirror: 0 - is_private: 0 - is_template: 0 - lfs_size: 0 + owner_id: 5 + owner_name: user5 lower_name: repo4 name: repo4 - num_action_runs: 0 - num_closed_action_runs: 0 - num_closed_issues: 0 - num_closed_milestones: 0 - num_closed_projects: 1 - num_closed_pulls: 0 + default_branch: master + num_watches: 0 + num_stars: 1 num_forks: 0 num_issues: 0 + num_closed_issues: 0 + num_pulls: 0 + num_closed_pulls: 0 num_milestones: 0 + num_closed_milestones: 0 num_projects: 0 - num_pulls: 0 - num_stars: 1 - num_watches: 0 - original_service_type: null - original_url: null - owner_id: 5 - owner_name: user5 - size: 0 + num_closed_projects: 1 + is_private: false + is_empty: false + is_archived: false + is_mirror: false status: 0 - template_id: 0 - topics: null - trust_model: null - updated_unix: null - website: null -- archived_unix: 0 - avatar: null - close_issues_via_commit_in_any_branch: 0 - created_unix: null - default_branch: null - description: null + is_fork: false fork_id: 0 - git_size: 0 + is_template: false + template_id: 0 + size: 0 + is_fsck_enabled: true + close_issues_via_commit_in_any_branch: false + +- id: 5 - is_archived: 0 - is_empty: 0 - is_fork: 0 - is_fsck_enabled: 1 - is_mirror: 1 - is_private: 1 - is_template: 0 - lfs_size: 0 + owner_id: 3 + owner_name: user3 lower_name: repo5 name: repo5 - num_action_runs: 0 - num_closed_action_runs: 0 - num_closed_issues: 0 - num_closed_milestones: 0 - num_closed_projects: 0 - num_closed_pulls: 0 + num_watches: 0 + num_stars: 0 num_forks: 0 num_issues: 1 + num_closed_issues: 0 + num_pulls: 0 + num_closed_pulls: 0 num_milestones: 0 + num_closed_milestones: 0 num_projects: 0 - num_pulls: 0 - num_stars: 0 - num_watches: 0 - original_service_type: null - original_url: null - owner_id: 3 - owner_name: user3 - size: 0 + num_closed_projects: 0 + is_private: true + is_empty: false + is_archived: false + is_mirror: true status: 0 - template_id: 0 - topics: null - trust_model: null - updated_unix: null - website: null -- archived_unix: 0 - avatar: null - close_issues_via_commit_in_any_branch: 0 - created_unix: null - default_branch: null - description: null + is_fork: false fork_id: 0 - git_size: 0 + is_template: false + template_id: 0 + size: 0 + is_fsck_enabled: true + close_issues_via_commit_in_any_branch: false + +- id: 6 - is_archived: 0 - is_empty: 1 - is_fork: 0 - is_fsck_enabled: 1 - is_mirror: 0 - is_private: 1 - is_template: 0 - lfs_size: 0 + owner_id: 10 + owner_name: user10 lower_name: repo6 name: repo6 - num_action_runs: 0 - num_closed_action_runs: 0 - num_closed_issues: 0 - num_closed_milestones: 0 - num_closed_projects: 0 - num_closed_pulls: 0 + num_watches: 0 + num_stars: 0 num_forks: 0 num_issues: 0 + num_closed_issues: 0 + num_pulls: 0 + num_closed_pulls: 0 num_milestones: 0 + num_closed_milestones: 0 num_projects: 0 - num_pulls: 0 - num_stars: 0 - num_watches: 0 - original_service_type: null - original_url: null - owner_id: 10 - owner_name: user10 - size: 0 + num_closed_projects: 0 + is_private: true + is_empty: true + is_archived: false + is_mirror: false status: 0 - template_id: 0 - topics: null - trust_model: null - updated_unix: null - website: null -- archived_unix: 0 - avatar: null - close_issues_via_commit_in_any_branch: 0 - created_unix: null - default_branch: null - description: null + is_fork: false fork_id: 0 - git_size: 0 + is_template: false + template_id: 0 + size: 0 + is_fsck_enabled: true + close_issues_via_commit_in_any_branch: false + +- id: 7 - is_archived: 0 - is_empty: 1 - is_fork: 0 - is_fsck_enabled: 1 - is_mirror: 0 - is_private: 1 - is_template: 0 - lfs_size: 0 + owner_id: 10 + owner_name: user10 lower_name: repo7 name: repo7 - num_action_runs: 0 - num_closed_action_runs: 0 - num_closed_issues: 0 - num_closed_milestones: 0 - num_closed_projects: 0 - num_closed_pulls: 0 + num_watches: 0 + num_stars: 0 num_forks: 0 num_issues: 0 + num_closed_issues: 0 + num_pulls: 0 + num_closed_pulls: 0 num_milestones: 0 + num_closed_milestones: 0 num_projects: 0 - num_pulls: 0 - num_stars: 0 - num_watches: 0 - original_service_type: null - original_url: null - owner_id: 10 - owner_name: user10 - size: 0 + num_closed_projects: 0 + is_private: true + is_empty: true + is_archived: false + is_mirror: false status: 0 - template_id: 0 - topics: null - trust_model: null - updated_unix: null - website: null -- archived_unix: 0 - avatar: null - close_issues_via_commit_in_any_branch: 0 - created_unix: null - default_branch: null - description: null + is_fork: false fork_id: 0 - git_size: 0 + is_template: false + template_id: 0 + size: 0 + is_fsck_enabled: true + close_issues_via_commit_in_any_branch: false + +- id: 8 - is_archived: 0 - is_empty: 1 - is_fork: 0 - is_fsck_enabled: 1 - is_mirror: 0 - is_private: 0 - is_template: 0 - lfs_size: 0 + owner_id: 10 + owner_name: user10 lower_name: repo8 name: repo8 - num_action_runs: 0 - num_closed_action_runs: 0 - num_closed_issues: 0 - num_closed_milestones: 0 - num_closed_projects: 0 - num_closed_pulls: 0 + num_watches: 0 + num_stars: 0 num_forks: 0 num_issues: 0 + num_closed_issues: 0 + num_pulls: 0 + num_closed_pulls: 0 num_milestones: 0 + num_closed_milestones: 0 num_projects: 0 - num_pulls: 0 - num_stars: 0 - num_watches: 0 - original_service_type: null - original_url: null - owner_id: 10 - owner_name: user10 - size: 0 + num_closed_projects: 0 + is_private: false + is_empty: true + is_archived: false + is_mirror: false status: 0 - template_id: 0 - topics: null - trust_model: null - updated_unix: null - website: null -- archived_unix: 0 - avatar: null - close_issues_via_commit_in_any_branch: 0 - created_unix: null - default_branch: null - description: null + is_fork: false fork_id: 0 - git_size: 0 + is_template: false + template_id: 0 + size: 0 + is_fsck_enabled: true + close_issues_via_commit_in_any_branch: false + +- id: 9 - is_archived: 0 - is_empty: 1 - is_fork: 0 - is_fsck_enabled: 1 - is_mirror: 0 - is_private: 0 - is_template: 0 - lfs_size: 0 + owner_id: 11 + owner_name: user11 lower_name: repo9 name: repo9 - num_action_runs: 0 - num_closed_action_runs: 0 - num_closed_issues: 0 - num_closed_milestones: 0 - num_closed_projects: 0 - num_closed_pulls: 0 + num_watches: 0 + num_stars: 0 num_forks: 0 num_issues: 0 + num_closed_issues: 0 + num_pulls: 0 + num_closed_pulls: 0 num_milestones: 0 + num_closed_milestones: 0 num_projects: 0 - num_pulls: 0 - num_stars: 0 - num_watches: 0 - original_service_type: null - original_url: null - owner_id: 11 - owner_name: user11 - size: 0 + num_closed_projects: 0 + is_private: false + is_empty: true + is_archived: false + is_mirror: false status: 0 - template_id: 0 - topics: null - trust_model: null - updated_unix: null - website: null -- archived_unix: 0 - avatar: null - close_issues_via_commit_in_any_branch: 0 - created_unix: null - default_branch: master - description: null + is_fork: false fork_id: 0 - git_size: 0 + is_template: false + template_id: 0 + size: 0 + is_fsck_enabled: true + close_issues_via_commit_in_any_branch: false + +- id: 10 - is_archived: 0 - is_empty: 0 - is_fork: 0 - is_fsck_enabled: 1 - is_mirror: 0 - is_private: 0 - is_template: 0 - lfs_size: 0 + owner_id: 12 + owner_name: user12 lower_name: repo10 name: repo10 - num_action_runs: 0 - num_closed_action_runs: 0 - num_closed_issues: 0 - num_closed_milestones: 0 - num_closed_projects: 0 - num_closed_pulls: 0 + default_branch: master + num_watches: 0 + num_stars: 0 num_forks: 1 num_issues: 0 + num_closed_issues: 0 + num_pulls: 1 + num_closed_pulls: 0 num_milestones: 1 + num_closed_milestones: 0 num_projects: 0 - num_pulls: 1 - num_stars: 0 - num_watches: 0 - original_service_type: null - original_url: null - owner_id: 12 - owner_name: user12 - size: 0 + num_closed_projects: 0 + is_private: false + is_empty: false + is_archived: false + is_mirror: false status: 0 + is_fork: false + fork_id: 0 + is_template: false template_id: 0 - topics: null - trust_model: null - updated_unix: null - website: null -- archived_unix: 0 - avatar: null - close_issues_via_commit_in_any_branch: 0 - created_unix: null - default_branch: master - description: null - fork_id: 10 - git_size: 0 + size: 0 + is_fsck_enabled: true + close_issues_via_commit_in_any_branch: false + +- id: 11 - is_archived: 0 - is_empty: 0 - is_fork: 0 - is_fsck_enabled: 1 - is_mirror: 0 - is_private: 0 - is_template: 0 - lfs_size: 0 + owner_id: 13 + owner_name: user13 lower_name: repo11 name: repo11 - num_action_runs: 0 - num_closed_action_runs: 0 - num_closed_issues: 0 - num_closed_milestones: 0 - num_closed_projects: 0 - num_closed_pulls: 0 + default_branch: master + num_watches: 0 + num_stars: 0 num_forks: 0 num_issues: 0 + num_closed_issues: 0 + num_pulls: 0 + num_closed_pulls: 0 num_milestones: 0 + num_closed_milestones: 0 num_projects: 0 - num_pulls: 0 - num_stars: 0 - num_watches: 0 - original_service_type: null - original_url: null - owner_id: 13 - owner_name: user13 - size: 0 + num_closed_projects: 0 + is_private: false + is_empty: false + is_archived: false + is_mirror: false status: 0 + is_fork: false + fork_id: 10 + is_template: false template_id: 0 - topics: null - trust_model: null - updated_unix: null - website: null -- archived_unix: 0 - avatar: null - close_issues_via_commit_in_any_branch: 0 - created_unix: null - default_branch: null - description: null - fork_id: 0 - git_size: 0 + size: 0 + is_fsck_enabled: true + close_issues_via_commit_in_any_branch: false + +- id: 12 - is_archived: 0 - is_empty: 1 - is_fork: 0 - is_fsck_enabled: 1 - is_mirror: 0 - is_private: 0 - is_template: 0 - lfs_size: 0 - lower_name: test_repo_12 + owner_id: 14 + owner_name: user14 + lower_name: test_repo_12 name: test_repo_12 - num_action_runs: 0 - num_closed_action_runs: 0 - num_closed_issues: 0 - num_closed_milestones: 0 - num_closed_projects: 0 - num_closed_pulls: 0 + num_watches: 0 + num_stars: 0 num_forks: 0 num_issues: 0 + num_closed_issues: 0 + num_pulls: 0 + num_closed_pulls: 0 num_milestones: 0 + num_closed_milestones: 0 num_projects: 0 - num_pulls: 0 - num_stars: 0 - num_watches: 0 - original_service_type: null - original_url: null - owner_id: 14 - owner_name: user14 - size: 0 + num_closed_projects: 0 + is_private: false + is_empty: true + is_archived: false + is_mirror: false status: 0 - template_id: 0 - topics: null - trust_model: null - updated_unix: null - website: null -- archived_unix: 0 - avatar: null - close_issues_via_commit_in_any_branch: 0 - created_unix: null - default_branch: null - description: null + is_fork: false fork_id: 0 - git_size: 0 + is_template: false + template_id: 0 + size: 0 + is_fsck_enabled: true + close_issues_via_commit_in_any_branch: false + +- id: 13 - is_archived: 0 - is_empty: 1 - is_fork: 0 - is_fsck_enabled: 1 - is_mirror: 0 - is_private: 1 - is_template: 0 - lfs_size: 0 + owner_id: 14 + owner_name: user14 lower_name: test_repo_13 name: test_repo_13 - num_action_runs: 0 - num_closed_action_runs: 0 - num_closed_issues: 0 - num_closed_milestones: 0 - num_closed_projects: 0 - num_closed_pulls: 0 + num_watches: 0 + num_stars: 0 num_forks: 0 num_issues: 0 + num_closed_issues: 0 + num_pulls: 0 + num_closed_pulls: 0 num_milestones: 0 + num_closed_milestones: 0 num_projects: 0 - num_pulls: 0 - num_stars: 0 - num_watches: 0 - original_service_type: null - original_url: null - owner_id: 14 - owner_name: user14 - size: 0 + num_closed_projects: 0 + is_private: true + is_empty: true + is_archived: false + is_mirror: false status: 0 - template_id: 0 - topics: null - trust_model: null - updated_unix: null - website: null -- archived_unix: 0 - avatar: null - close_issues_via_commit_in_any_branch: 0 - created_unix: null - default_branch: null - description: test_description_14 + is_fork: false fork_id: 0 - git_size: 0 + is_template: false + template_id: 0 + size: 0 + is_fsck_enabled: true + close_issues_via_commit_in_any_branch: false + +- id: 14 - is_archived: 0 - is_empty: 1 - is_fork: 0 - is_fsck_enabled: 1 - is_mirror: 0 - is_private: 0 - is_template: 0 - lfs_size: 0 + owner_id: 14 + owner_name: user14 lower_name: test_repo_14 name: test_repo_14 - num_action_runs: 0 - num_closed_action_runs: 0 - num_closed_issues: 0 - num_closed_milestones: 0 - num_closed_projects: 0 - num_closed_pulls: 0 + description: test_description_14 + num_watches: 0 + num_stars: 0 num_forks: 0 num_issues: 0 + num_closed_issues: 0 + num_pulls: 0 + num_closed_pulls: 0 num_milestones: 0 + num_closed_milestones: 0 num_projects: 0 - num_pulls: 0 - num_stars: 0 - num_watches: 0 - original_service_type: null - original_url: null - owner_id: 14 - owner_name: user14 - size: 0 + num_closed_projects: 0 + is_private: false + is_empty: true + is_archived: false + is_mirror: false status: 0 - template_id: 0 - topics: null - trust_model: null - updated_unix: null - website: null -- archived_unix: 0 - avatar: null - close_issues_via_commit_in_any_branch: 0 - created_unix: null - default_branch: master - description: null + is_fork: false fork_id: 0 - git_size: 0 + is_template: false + template_id: 0 + size: 0 + is_fsck_enabled: true + close_issues_via_commit_in_any_branch: false + +- id: 15 - is_archived: 0 - is_empty: 0 - is_fork: 0 - is_fsck_enabled: 1 - is_mirror: 0 - is_private: 1 - is_template: 0 - lfs_size: 0 + owner_id: 2 + owner_name: user2 lower_name: repo15 name: repo15 - num_action_runs: 0 - num_closed_action_runs: 0 - num_closed_issues: 0 - num_closed_milestones: 0 - num_closed_projects: 0 - num_closed_pulls: 0 + default_branch: master + num_watches: 0 + num_stars: 0 num_forks: 0 num_issues: 0 + num_closed_issues: 0 + num_pulls: 0 + num_closed_pulls: 0 num_milestones: 0 + num_closed_milestones: 0 num_projects: 0 - num_pulls: 0 - num_stars: 0 - num_watches: 0 - original_service_type: null - original_url: null - owner_id: 2 - owner_name: user2 - size: 0 + num_closed_projects: 0 + is_private: true + is_empty: false + is_archived: false + is_mirror: false status: 0 - template_id: 0 - topics: null - trust_model: null - updated_unix: null - website: null -- archived_unix: 0 - avatar: null - close_issues_via_commit_in_any_branch: 0 - created_unix: null - default_branch: master - description: null + is_fork: false fork_id: 0 - git_size: 0 + is_template: false + template_id: 0 + size: 0 + is_fsck_enabled: true + close_issues_via_commit_in_any_branch: false + +- id: 16 - is_archived: 0 - is_empty: 0 - is_fork: 0 - is_fsck_enabled: 1 - is_mirror: 0 - is_private: 1 - is_template: 0 - lfs_size: 0 + owner_id: 2 + owner_name: user2 lower_name: repo16 name: repo16 - num_action_runs: 0 - num_closed_action_runs: 0 - num_closed_issues: 0 - num_closed_milestones: 0 - num_closed_projects: 0 - num_closed_pulls: 0 + default_branch: master + num_watches: 0 + num_stars: 0 num_forks: 0 num_issues: 0 + num_closed_issues: 0 + num_pulls: 0 + num_closed_pulls: 0 num_milestones: 0 + num_closed_milestones: 0 num_projects: 0 - num_pulls: 0 - num_stars: 0 - num_watches: 0 - original_service_type: null - original_url: null - owner_id: 2 - owner_name: user2 - size: 0 + num_closed_projects: 0 + is_private: true + is_empty: false + is_archived: false + is_mirror: false status: 0 - template_id: 0 - topics: null - trust_model: null - updated_unix: null - website: null -- archived_unix: 0 - avatar: null - close_issues_via_commit_in_any_branch: 0 - created_unix: null - default_branch: null - description: null + is_fork: false fork_id: 0 - git_size: 0 + is_template: false + template_id: 0 + size: 0 + is_fsck_enabled: true + close_issues_via_commit_in_any_branch: false + +- id: 17 - is_archived: 0 - is_empty: 1 - is_fork: 0 - is_fsck_enabled: 1 - is_mirror: 0 - is_private: 0 - is_template: 0 - lfs_size: 0 + owner_id: 15 + owner_name: user15 lower_name: big_test_public_1 name: big_test_public_1 - num_action_runs: 0 - num_closed_action_runs: 0 - num_closed_issues: 0 - num_closed_milestones: 0 - num_closed_projects: 0 - num_closed_pulls: 0 + num_watches: 0 + num_stars: 0 num_forks: 0 num_issues: 0 + num_closed_issues: 0 + num_pulls: 0 + num_closed_pulls: 0 num_milestones: 0 + num_closed_milestones: 0 num_projects: 0 - num_pulls: 0 - num_stars: 0 - num_watches: 0 - original_service_type: null - original_url: null - owner_id: 15 - owner_name: user15 - size: 0 + num_closed_projects: 0 + is_private: false + is_empty: true + is_archived: false + is_mirror: false status: 0 - template_id: 0 - topics: null - trust_model: null - updated_unix: null - website: null -- archived_unix: 0 - avatar: null - close_issues_via_commit_in_any_branch: 0 - created_unix: null - default_branch: null - description: null + is_fork: false fork_id: 0 - git_size: 0 + is_template: false + template_id: 0 + size: 0 + is_fsck_enabled: true + close_issues_via_commit_in_any_branch: false + +- id: 18 - is_archived: 0 - is_empty: 1 - is_fork: 0 - is_fsck_enabled: 1 - is_mirror: 0 - is_private: 0 - is_template: 0 - lfs_size: 0 + owner_id: 15 + owner_name: user15 lower_name: big_test_public_2 name: big_test_public_2 - num_action_runs: 0 - num_closed_action_runs: 0 - num_closed_issues: 0 - num_closed_milestones: 0 - num_closed_projects: 0 - num_closed_pulls: 0 + num_watches: 0 + num_stars: 0 num_forks: 0 num_issues: 0 + num_closed_issues: 0 + num_pulls: 0 + num_closed_pulls: 0 num_milestones: 0 + num_closed_milestones: 0 num_projects: 0 - num_pulls: 0 - num_stars: 0 - num_watches: 0 - original_service_type: null - original_url: null - owner_id: 15 - owner_name: user15 - size: 0 + num_closed_projects: 0 + is_private: false + is_empty: true + is_archived: false + is_mirror: false status: 0 - template_id: 0 - topics: null - trust_model: null - updated_unix: null - website: null -- archived_unix: 0 - avatar: null - close_issues_via_commit_in_any_branch: 0 - created_unix: null - default_branch: null - description: null + is_fork: false fork_id: 0 - git_size: 0 + is_template: false + template_id: 0 + size: 0 + is_fsck_enabled: true + close_issues_via_commit_in_any_branch: false + +- id: 19 - is_archived: 0 - is_empty: 1 - is_fork: 0 - is_fsck_enabled: 1 - is_mirror: 0 - is_private: 1 - is_template: 0 - lfs_size: 0 + owner_id: 15 + owner_name: user15 lower_name: big_test_private_1 name: big_test_private_1 - num_action_runs: 0 - num_closed_action_runs: 0 - num_closed_issues: 0 - num_closed_milestones: 0 - num_closed_projects: 0 - num_closed_pulls: 0 + num_watches: 0 + num_stars: 0 num_forks: 0 num_issues: 0 + num_closed_issues: 0 + num_pulls: 0 + num_closed_pulls: 0 num_milestones: 0 + num_closed_milestones: 0 num_projects: 0 - num_pulls: 0 - num_stars: 0 - num_watches: 0 - original_service_type: null - original_url: null - owner_id: 15 - owner_name: user15 - size: 0 + num_closed_projects: 0 + is_private: true + is_empty: true + is_archived: false + is_mirror: false status: 0 - template_id: 0 - topics: null - trust_model: null - updated_unix: null - website: null -- archived_unix: 0 - avatar: null - close_issues_via_commit_in_any_branch: 0 - created_unix: null - default_branch: null - description: null + is_fork: false fork_id: 0 - git_size: 0 + is_template: false + template_id: 0 + size: 0 + is_fsck_enabled: true + close_issues_via_commit_in_any_branch: false + +- id: 20 - is_archived: 0 - is_empty: 1 - is_fork: 0 - is_fsck_enabled: 1 - is_mirror: 0 - is_private: 1 - is_template: 0 - lfs_size: 0 + owner_id: 15 + owner_name: user15 lower_name: big_test_private_2 name: big_test_private_2 - num_action_runs: 0 - num_closed_action_runs: 0 - num_closed_issues: 0 - num_closed_milestones: 0 - num_closed_projects: 0 - num_closed_pulls: 0 + num_watches: 0 + num_stars: 0 num_forks: 0 num_issues: 0 + num_closed_issues: 0 + num_pulls: 0 + num_closed_pulls: 0 num_milestones: 0 + num_closed_milestones: 0 num_projects: 0 - num_pulls: 0 - num_stars: 0 - num_watches: 0 - original_service_type: null - original_url: null - owner_id: 15 - owner_name: user15 - size: 0 + num_closed_projects: 0 + is_private: true + is_empty: true + is_archived: false + is_mirror: false status: 0 - template_id: 0 - topics: null - trust_model: null - updated_unix: null - website: null -- archived_unix: 0 - avatar: null - close_issues_via_commit_in_any_branch: 0 - created_unix: null - default_branch: null - description: null + is_fork: false fork_id: 0 - git_size: 0 + is_template: false + template_id: 0 + size: 0 + is_fsck_enabled: true + close_issues_via_commit_in_any_branch: false + +- id: 21 - is_archived: 0 - is_empty: 1 - is_fork: 0 - is_fsck_enabled: 1 - is_mirror: 0 - is_private: 0 - is_template: 0 - lfs_size: 0 + owner_id: 16 + owner_name: user16 lower_name: big_test_public_3 name: big_test_public_3 - num_action_runs: 0 - num_closed_action_runs: 0 - num_closed_issues: 0 - num_closed_milestones: 0 - num_closed_projects: 0 - num_closed_pulls: 0 + num_watches: 0 + num_stars: 0 num_forks: 0 num_issues: 0 + num_closed_issues: 0 + num_pulls: 0 + num_closed_pulls: 0 num_milestones: 0 + num_closed_milestones: 0 num_projects: 0 - num_pulls: 0 - num_stars: 0 - num_watches: 0 - original_service_type: null - original_url: null - owner_id: 16 - owner_name: user16 - size: 0 + num_closed_projects: 0 + is_private: false + is_empty: true + is_archived: false + is_mirror: false status: 0 - template_id: 0 - topics: null - trust_model: null - updated_unix: null - website: null -- archived_unix: 0 - avatar: null - close_issues_via_commit_in_any_branch: 0 - created_unix: null - default_branch: null - description: null + is_fork: false fork_id: 0 - git_size: 0 + is_template: false + template_id: 0 + size: 0 + is_fsck_enabled: true + close_issues_via_commit_in_any_branch: false + +- id: 22 - is_archived: 0 - is_empty: 1 - is_fork: 0 - is_fsck_enabled: 1 - is_mirror: 0 - is_private: 1 - is_template: 0 - lfs_size: 0 + owner_id: 16 + owner_name: user16 lower_name: big_test_private_3 name: big_test_private_3 - num_action_runs: 0 - num_closed_action_runs: 0 - num_closed_issues: 0 - num_closed_milestones: 0 - num_closed_projects: 0 - num_closed_pulls: 0 + num_watches: 0 + num_stars: 0 num_forks: 0 num_issues: 0 + num_closed_issues: 0 + num_pulls: 0 + num_closed_pulls: 0 num_milestones: 0 + num_closed_milestones: 0 num_projects: 0 - num_pulls: 0 - num_stars: 0 - num_watches: 0 - original_service_type: null - original_url: null - owner_id: 16 - owner_name: user16 - size: 0 + num_closed_projects: 0 + is_private: true + is_empty: true + is_archived: false + is_mirror: false status: 0 - template_id: 0 - topics: null - trust_model: null - updated_unix: null - website: null -- archived_unix: 0 - avatar: null - close_issues_via_commit_in_any_branch: 0 - created_unix: null - default_branch: null - description: null + is_fork: false fork_id: 0 - git_size: 0 + is_template: false + template_id: 0 + size: 0 + is_fsck_enabled: true + close_issues_via_commit_in_any_branch: false + +- id: 23 - is_archived: 0 - is_empty: 1 - is_fork: 0 - is_fsck_enabled: 1 - is_mirror: 0 - is_private: 0 - is_template: 0 - lfs_size: 0 + owner_id: 17 + owner_name: user17 lower_name: big_test_public_4 name: big_test_public_4 - num_action_runs: 0 - num_closed_action_runs: 0 + num_watches: 0 + num_stars: 0 + num_forks: 0 + num_issues: 0 num_closed_issues: 0 - num_closed_milestones: 0 - num_closed_projects: 0 + num_pulls: 0 num_closed_pulls: 0 - num_forks: 0 - num_issues: 0 num_milestones: 0 + num_closed_milestones: 0 num_projects: 0 - num_pulls: 0 - num_stars: 0 - num_watches: 0 - original_service_type: null - original_url: null - owner_id: 17 - owner_name: user17 - size: 0 + num_closed_projects: 0 + is_private: false + is_empty: true + is_archived: false + is_mirror: false status: 0 - template_id: 0 - topics: null - trust_model: null - updated_unix: null - website: null -- archived_unix: 0 - avatar: null - close_issues_via_commit_in_any_branch: 0 - created_unix: null - default_branch: null - description: null + is_fork: false fork_id: 0 - git_size: 0 + is_template: false + template_id: 0 + size: 0 + is_fsck_enabled: true + close_issues_via_commit_in_any_branch: false + +- id: 24 - is_archived: 0 - is_empty: 1 - is_fork: 0 - is_fsck_enabled: 1 - is_mirror: 0 - is_private: 1 - is_template: 0 - lfs_size: 0 + owner_id: 17 + owner_name: user17 lower_name: big_test_private_4 name: big_test_private_4 - num_action_runs: 0 - num_closed_action_runs: 0 - num_closed_issues: 0 - num_closed_milestones: 0 - num_closed_projects: 0 - num_closed_pulls: 0 + num_watches: 0 + num_stars: 0 num_forks: 0 num_issues: 0 + num_closed_issues: 0 + num_pulls: 0 + num_closed_pulls: 0 num_milestones: 0 + num_closed_milestones: 0 num_projects: 0 - num_pulls: 0 - num_stars: 0 - num_watches: 0 - original_service_type: null - original_url: null - owner_id: 17 - owner_name: user17 - size: 0 + num_closed_projects: 0 + is_private: true + is_empty: true + is_archived: false + is_mirror: false status: 0 - template_id: 0 - topics: null - trust_model: null - updated_unix: null - website: null -- archived_unix: 0 - avatar: null - close_issues_via_commit_in_any_branch: 0 - created_unix: null - default_branch: null - description: null + is_fork: false fork_id: 0 - git_size: 0 + is_template: false + template_id: 0 + size: 0 + is_fsck_enabled: true + close_issues_via_commit_in_any_branch: false + +- id: 25 - is_archived: 0 - is_empty: 1 - is_fork: 0 - is_fsck_enabled: 1 - is_mirror: 1 - is_private: 0 - is_template: 0 - lfs_size: 0 + owner_id: 20 + owner_name: user20 lower_name: big_test_public_mirror_5 name: big_test_public_mirror_5 - num_action_runs: 0 - num_closed_action_runs: 0 - num_closed_issues: 0 - num_closed_milestones: 0 - num_closed_projects: 0 - num_closed_pulls: 0 + num_watches: 0 + num_stars: 0 num_forks: 0 num_issues: 0 + num_closed_issues: 0 + num_pulls: 0 + num_closed_pulls: 0 num_milestones: 0 + num_closed_milestones: 0 num_projects: 0 - num_pulls: 0 - num_stars: 0 - num_watches: 0 - original_service_type: null - original_url: null - owner_id: 20 - owner_name: user20 - size: 0 + num_closed_projects: 0 + is_private: false + is_empty: true + is_archived: false + is_mirror: true status: 0 - template_id: 0 - topics: null - trust_model: null - updated_unix: null - website: null -- archived_unix: 0 - avatar: null - close_issues_via_commit_in_any_branch: 0 - created_unix: null - default_branch: null - description: null + is_fork: false fork_id: 0 - git_size: 0 + is_template: false + template_id: 0 + size: 0 + is_fsck_enabled: true + close_issues_via_commit_in_any_branch: false + +- id: 26 - is_archived: 0 - is_empty: 1 - is_fork: 0 - is_fsck_enabled: 1 - is_mirror: 1 - is_private: 1 - is_template: 0 - lfs_size: 0 + owner_id: 20 + owner_name: user20 lower_name: big_test_private_mirror_5 name: big_test_private_mirror_5 - num_action_runs: 0 - num_closed_action_runs: 0 - num_closed_issues: 0 - num_closed_milestones: 0 - num_closed_projects: 0 - num_closed_pulls: 0 + num_watches: 0 + num_stars: 0 num_forks: 0 num_issues: 0 + num_closed_issues: 0 + num_pulls: 0 + num_closed_pulls: 0 num_milestones: 0 + num_closed_milestones: 0 num_projects: 0 - num_pulls: 0 - num_stars: 0 - num_watches: 0 - original_service_type: null - original_url: null - owner_id: 20 - owner_name: user20 - size: 0 + num_closed_projects: 0 + is_private: true + is_empty: true + is_archived: false + is_mirror: true status: 0 - template_id: 0 - topics: null - trust_model: null - updated_unix: null - website: null -- archived_unix: 0 - avatar: null - close_issues_via_commit_in_any_branch: 0 - created_unix: null - default_branch: null - description: null + is_fork: false fork_id: 0 - git_size: 0 + is_template: false + template_id: 0 + size: 0 + is_fsck_enabled: true + close_issues_via_commit_in_any_branch: false + +- id: 27 - is_archived: 0 - is_empty: 1 - is_fork: 0 - is_fsck_enabled: 1 - is_mirror: 1 - is_private: 0 - is_template: 0 - lfs_size: 0 + owner_id: 19 + owner_name: user19 lower_name: big_test_public_mirror_6 name: big_test_public_mirror_6 - num_action_runs: 0 - num_closed_action_runs: 0 - num_closed_issues: 0 - num_closed_milestones: 0 - num_closed_projects: 0 - num_closed_pulls: 0 + num_watches: 0 + num_stars: 0 num_forks: 1 num_issues: 0 + num_closed_issues: 0 + num_pulls: 0 + num_closed_pulls: 0 num_milestones: 0 + num_closed_milestones: 0 num_projects: 0 - num_pulls: 0 - num_stars: 0 - num_watches: 0 - original_service_type: null - original_url: null - owner_id: 19 - owner_name: user19 - size: 0 + num_closed_projects: 0 + is_private: false + is_empty: true + is_archived: false + is_mirror: true status: 0 - template_id: 0 - topics: null - trust_model: null - updated_unix: null - website: null -- archived_unix: 0 - avatar: null - close_issues_via_commit_in_any_branch: 0 - created_unix: null - default_branch: null - description: null + is_fork: false fork_id: 0 - git_size: 0 + is_template: false + template_id: 0 + size: 0 + is_fsck_enabled: true + close_issues_via_commit_in_any_branch: false + +- id: 28 - is_archived: 0 - is_empty: 1 - is_fork: 0 - is_fsck_enabled: 1 - is_mirror: 1 - is_private: 1 - is_template: 0 - lfs_size: 0 + owner_id: 19 + owner_name: user19 lower_name: big_test_private_mirror_6 name: big_test_private_mirror_6 - num_action_runs: 0 - num_closed_action_runs: 0 - num_closed_issues: 0 - num_closed_milestones: 0 - num_closed_projects: 0 - num_closed_pulls: 0 + num_watches: 0 + num_stars: 0 num_forks: 1 num_issues: 0 + num_closed_issues: 0 + num_pulls: 0 + num_closed_pulls: 0 num_milestones: 0 + num_closed_milestones: 0 num_projects: 0 - num_pulls: 0 - num_stars: 0 - num_watches: 0 - original_service_type: null - original_url: null - owner_id: 19 - owner_name: user19 - size: 0 + num_closed_projects: 0 + is_private: true + is_empty: true + is_archived: false + is_mirror: true status: 0 + is_fork: false + fork_id: 0 + is_template: false template_id: 0 - topics: null - trust_model: null - updated_unix: null - website: null -- archived_unix: 0 - avatar: null - close_issues_via_commit_in_any_branch: 0 - created_unix: null - default_branch: null - description: null - fork_id: 27 - git_size: 0 + size: 0 + is_fsck_enabled: true + close_issues_via_commit_in_any_branch: false + +- id: 29 - is_archived: 0 - is_empty: 1 - is_fork: 1 - is_fsck_enabled: 1 - is_mirror: 0 - is_private: 0 - is_template: 0 - lfs_size: 0 + owner_id: 20 + owner_name: user20 lower_name: big_test_public_fork_7 name: big_test_public_fork_7 - num_action_runs: 0 - num_closed_action_runs: 0 - num_closed_issues: 0 - num_closed_milestones: 0 - num_closed_projects: 0 - num_closed_pulls: 0 + num_watches: 0 + num_stars: 0 num_forks: 0 num_issues: 0 + num_closed_issues: 0 + num_pulls: 0 + num_closed_pulls: 0 num_milestones: 0 + num_closed_milestones: 0 num_projects: 0 - num_pulls: 0 - num_stars: 0 - num_watches: 0 - original_service_type: null - original_url: null - owner_id: 20 - owner_name: user20 - size: 0 + num_closed_projects: 0 + is_private: false + is_empty: true + is_archived: false + is_mirror: false status: 0 + is_fork: true + fork_id: 27 + is_template: false template_id: 0 - topics: null - trust_model: null - updated_unix: null - website: null -- archived_unix: 0 - avatar: null - close_issues_via_commit_in_any_branch: 0 - created_unix: null - default_branch: null - description: null - fork_id: 28 - git_size: 0 + size: 0 + is_fsck_enabled: true + close_issues_via_commit_in_any_branch: false + +- id: 30 - is_archived: 0 - is_empty: 1 - is_fork: 1 - is_fsck_enabled: 1 - is_mirror: 0 - is_private: 1 - is_template: 0 - lfs_size: 0 + owner_id: 20 + owner_name: user20 lower_name: big_test_private_fork_7 name: big_test_private_fork_7 - num_action_runs: 0 - num_closed_action_runs: 0 - num_closed_issues: 0 - num_closed_milestones: 0 - num_closed_projects: 0 - num_closed_pulls: 0 + num_watches: 0 + num_stars: 0 num_forks: 0 num_issues: 0 + num_closed_issues: 0 + num_pulls: 0 + num_closed_pulls: 0 num_milestones: 0 + num_closed_milestones: 0 num_projects: 0 - num_pulls: 0 - num_stars: 0 - num_watches: 0 - original_service_type: null - original_url: null - owner_id: 20 - owner_name: user20 - size: 0 + num_closed_projects: 0 + is_private: true + is_empty: true + is_archived: false + is_mirror: false status: 0 + is_fork: true + fork_id: 28 + is_template: false template_id: 0 - topics: null - trust_model: null - updated_unix: null - website: null -- archived_unix: 0 - avatar: null - close_issues_via_commit_in_any_branch: 0 - created_unix: null - default_branch: master - description: null - fork_id: 0 - git_size: 0 + size: 0 + is_fsck_enabled: true + close_issues_via_commit_in_any_branch: false + +- id: 31 - is_archived: 0 - is_empty: 0 - is_fork: 0 - is_fsck_enabled: 1 - is_mirror: 0 - is_private: 1 - is_template: 0 - lfs_size: 0 + owner_id: 2 + owner_name: user2 lower_name: repo20 name: repo20 - num_action_runs: 0 - num_closed_action_runs: 0 - num_closed_issues: 0 - num_closed_milestones: 0 - num_closed_projects: 0 - num_closed_pulls: 0 + default_branch: master + num_watches: 0 + num_stars: 0 num_forks: 0 num_issues: 0 + num_closed_issues: 0 + num_pulls: 0 + num_closed_pulls: 0 num_milestones: 0 + num_closed_milestones: 0 num_projects: 0 - num_pulls: 0 - num_stars: 0 - num_watches: 0 - original_service_type: null - original_url: null - owner_id: 2 - owner_name: user2 - size: 0 + num_closed_projects: 0 + is_private: true + is_empty: false + is_archived: false + is_mirror: false status: 0 - template_id: 0 - topics: null - trust_model: null - updated_unix: null - website: null -- archived_unix: 0 - avatar: null - close_issues_via_commit_in_any_branch: 0 - created_unix: null - default_branch: null - description: null + is_fork: false fork_id: 0 - git_size: 0 - id: 32 - is_archived: 0 - is_empty: 1 - is_fork: 0 - is_fsck_enabled: 1 - is_mirror: 0 - is_private: 0 - is_template: 0 - lfs_size: 0 + is_template: false + template_id: 0 + size: 0 + is_fsck_enabled: true + close_issues_via_commit_in_any_branch: false + +- + id: 32 # org public repo + owner_id: 3 + owner_name: user3 lower_name: repo21 name: repo21 - num_action_runs: 0 - num_closed_action_runs: 0 - num_closed_issues: 0 - num_closed_milestones: 0 - num_closed_projects: 0 - num_closed_pulls: 0 + num_watches: 0 + num_stars: 0 num_forks: 0 num_issues: 2 + num_closed_issues: 0 + num_pulls: 0 + num_closed_pulls: 0 num_milestones: 0 + num_closed_milestones: 0 num_projects: 0 - num_pulls: 0 - num_stars: 0 - num_watches: 0 - original_service_type: null - original_url: null - owner_id: 3 - owner_name: user3 - size: 0 + num_closed_projects: 0 + is_private: false + is_empty: true + is_archived: false + is_mirror: false status: 0 - template_id: 0 - topics: null - trust_model: null - updated_unix: null - website: null -- archived_unix: 0 - avatar: null - close_issues_via_commit_in_any_branch: 0 - created_unix: null - default_branch: master - description: null + is_fork: false fork_id: 0 - git_size: 0 + is_template: false + template_id: 0 + size: 0 + is_fsck_enabled: true + close_issues_via_commit_in_any_branch: false + +- id: 33 - is_archived: 0 - is_empty: 0 - is_fork: 0 - is_fsck_enabled: 1 - is_mirror: 0 - is_private: 0 - is_template: 0 - lfs_size: 0 + owner_id: 2 + owner_name: user2 lower_name: utf8 name: utf8 - num_action_runs: 0 - num_closed_action_runs: 0 - num_closed_issues: 0 - num_closed_milestones: 0 - num_closed_projects: 0 - num_closed_pulls: 0 + default_branch: master + num_watches: 0 + num_stars: 0 num_forks: 0 num_issues: 0 + num_closed_issues: 0 + num_pulls: 0 + num_closed_pulls: 0 num_milestones: 0 + num_closed_milestones: 0 num_projects: 0 - num_pulls: 0 - num_stars: 0 - num_watches: 0 - original_service_type: null - original_url: null - owner_id: 2 - owner_name: user2 - size: 0 + num_closed_projects: 0 + is_private: false + is_empty: false + is_archived: false + is_mirror: false status: 0 - template_id: 0 - topics: null - trust_model: null - updated_unix: null - website: null -- archived_unix: 0 - avatar: null - close_issues_via_commit_in_any_branch: 0 - created_unix: null - default_branch: null - description: null + is_fork: false fork_id: 0 - git_size: 0 + is_template: false + template_id: 0 + size: 0 + is_fsck_enabled: true + close_issues_via_commit_in_any_branch: false + +- id: 34 - is_archived: 0 - is_empty: 1 - is_fork: 0 - is_fsck_enabled: 1 - is_mirror: 0 - is_private: 0 - is_template: 0 - lfs_size: 0 + owner_id: 21 + owner_name: user21 lower_name: golang name: golang - num_action_runs: 0 - num_closed_action_runs: 0 - num_closed_issues: 0 - num_closed_milestones: 0 - num_closed_projects: 0 - num_closed_pulls: 0 + num_watches: 0 + num_stars: 0 num_forks: 0 num_issues: 0 + num_closed_issues: 0 + num_pulls: 0 + num_closed_pulls: 0 num_milestones: 0 + num_closed_milestones: 0 num_projects: 0 - num_pulls: 0 - num_stars: 0 - num_watches: 0 - original_service_type: null - original_url: null - owner_id: 21 - owner_name: user21 - size: 0 + num_closed_projects: 0 + is_private: false + is_empty: true + is_archived: false + is_mirror: false status: 0 - template_id: 0 - topics: null - trust_model: null - updated_unix: null - website: null -- archived_unix: 0 - avatar: null - close_issues_via_commit_in_any_branch: 0 - created_unix: null - default_branch: null - description: null + is_fork: false fork_id: 0 - git_size: 0 + is_template: false + template_id: 0 + size: 0 + is_fsck_enabled: true + close_issues_via_commit_in_any_branch: false + +- id: 35 - is_archived: 0 - is_empty: 1 - is_fork: 0 - is_fsck_enabled: 1 - is_mirror: 0 - is_private: 0 - is_template: 0 - lfs_size: 0 + owner_id: 21 + owner_name: user21 lower_name: graphql name: graphql - num_action_runs: 0 - num_closed_action_runs: 0 - num_closed_issues: 0 - num_closed_milestones: 0 - num_closed_projects: 0 - num_closed_pulls: 0 + num_watches: 0 + num_stars: 0 num_forks: 0 num_issues: 0 + num_closed_issues: 0 + num_pulls: 0 + num_closed_pulls: 0 num_milestones: 0 + num_closed_milestones: 0 num_projects: 0 - num_pulls: 0 - num_stars: 0 - num_watches: 0 - original_service_type: null - original_url: null - owner_id: 21 - owner_name: user21 - size: 0 + num_closed_projects: 0 + is_private: false + is_empty: true + is_archived: false + is_mirror: false status: 0 - template_id: 0 - topics: null - trust_model: null - updated_unix: null - website: null -- archived_unix: 0 - avatar: null - close_issues_via_commit_in_any_branch: 0 - created_unix: null - default_branch: master - description: null + is_fork: false fork_id: 0 - git_size: 0 + is_template: false + template_id: 0 + size: 0 + is_fsck_enabled: true + close_issues_via_commit_in_any_branch: false + +- id: 36 - is_archived: 0 - is_empty: 0 - is_fork: 0 - is_fsck_enabled: 1 - is_mirror: 0 - is_private: 0 - is_template: 0 - lfs_size: 0 + owner_id: 2 + owner_name: user2 lower_name: commits_search_test name: commits_search_test - num_action_runs: 0 - num_closed_action_runs: 0 - num_closed_issues: 0 - num_closed_milestones: 0 - num_closed_projects: 0 - num_closed_pulls: 0 + default_branch: master + num_watches: 0 + num_stars: 0 num_forks: 0 num_issues: 0 + num_closed_issues: 0 + num_pulls: 0 + num_closed_pulls: 0 num_milestones: 0 + num_closed_milestones: 0 num_projects: 0 - num_pulls: 0 - num_stars: 0 - num_watches: 0 - original_service_type: null - original_url: null - owner_id: 2 - owner_name: user2 - size: 0 + num_closed_projects: 0 + is_private: false + is_empty: false + is_archived: false + is_mirror: false status: 0 - template_id: 0 - topics: null - trust_model: null - updated_unix: null - website: null -- archived_unix: 0 - avatar: null - close_issues_via_commit_in_any_branch: 0 - created_unix: null - default_branch: master - description: null + is_fork: false fork_id: 0 - git_size: 0 + is_template: false + template_id: 0 + size: 0 + is_fsck_enabled: true + close_issues_via_commit_in_any_branch: false + +- id: 37 - is_archived: 0 - is_empty: 0 - is_fork: 0 - is_fsck_enabled: 1 - is_mirror: 0 - is_private: 0 - is_template: 0 - lfs_size: 0 + owner_id: 2 + owner_name: user2 lower_name: git_hooks_test name: git_hooks_test - num_action_runs: 0 - num_closed_action_runs: 0 - num_closed_issues: 0 - num_closed_milestones: 0 - num_closed_projects: 0 - num_closed_pulls: 0 + default_branch: master + num_watches: 0 + num_stars: 0 num_forks: 0 num_issues: 0 + num_closed_issues: 0 + num_pulls: 0 + num_closed_pulls: 0 num_milestones: 0 + num_closed_milestones: 0 num_projects: 0 - num_pulls: 0 - num_stars: 0 - num_watches: 0 - original_service_type: null - original_url: null - owner_id: 2 - owner_name: user2 - size: 0 + num_closed_projects: 0 + is_private: false + is_empty: false + is_archived: false + is_mirror: false status: 0 - template_id: 0 - topics: null - trust_model: null - updated_unix: null - website: null -- archived_unix: 0 - avatar: null - close_issues_via_commit_in_any_branch: 0 - created_unix: null - default_branch: master - description: null + is_fork: false fork_id: 0 - git_size: 0 + is_template: false + template_id: 0 + size: 0 + is_fsck_enabled: true + close_issues_via_commit_in_any_branch: false + +- id: 38 - is_archived: 0 - is_empty: 0 - is_fork: 0 - is_fsck_enabled: 1 - is_mirror: 0 - is_private: 0 - is_template: 0 - lfs_size: 0 + owner_id: 22 + owner_name: limited_org lower_name: public_repo_on_limited_org name: public_repo_on_limited_org - num_action_runs: 0 - num_closed_action_runs: 0 - num_closed_issues: 0 - num_closed_milestones: 0 - num_closed_projects: 0 - num_closed_pulls: 0 + default_branch: master + num_watches: 0 + num_stars: 0 num_forks: 0 num_issues: 0 + num_closed_issues: 0 + num_pulls: 0 + num_closed_pulls: 0 num_milestones: 0 + num_closed_milestones: 0 num_projects: 0 - num_pulls: 0 - num_stars: 0 - num_watches: 0 - original_service_type: null - original_url: null - owner_id: 22 - owner_name: limited_org - size: 0 + num_closed_projects: 0 + is_private: false + is_empty: false + is_archived: false + is_mirror: false status: 0 - template_id: 0 - topics: null - trust_model: null - updated_unix: null - website: null -- archived_unix: 0 - avatar: null - close_issues_via_commit_in_any_branch: 0 - created_unix: null - default_branch: master - description: null + is_fork: false fork_id: 0 - git_size: 0 + is_template: false + template_id: 0 + size: 0 + is_fsck_enabled: true + close_issues_via_commit_in_any_branch: false + +- id: 39 - is_archived: 0 - is_empty: 0 - is_fork: 0 - is_fsck_enabled: 1 - is_mirror: 0 - is_private: 1 - is_template: 0 - lfs_size: 0 + owner_id: 22 + owner_name: limited_org lower_name: private_repo_on_limited_org name: private_repo_on_limited_org - num_action_runs: 0 - num_closed_action_runs: 0 - num_closed_issues: 0 - num_closed_milestones: 0 - num_closed_projects: 0 - num_closed_pulls: 0 + default_branch: master + num_watches: 0 + num_stars: 0 num_forks: 0 num_issues: 0 + num_closed_issues: 0 + num_pulls: 0 + num_closed_pulls: 0 num_milestones: 0 + num_closed_milestones: 0 num_projects: 0 - num_pulls: 0 - num_stars: 0 - num_watches: 0 - original_service_type: null - original_url: null - owner_id: 22 - owner_name: limited_org - size: 0 + num_closed_projects: 0 + is_private: true + is_empty: false + is_archived: false + is_mirror: false status: 0 - template_id: 0 - topics: null - trust_model: null - updated_unix: null - website: null -- archived_unix: 0 - avatar: null - close_issues_via_commit_in_any_branch: 0 - created_unix: null - default_branch: master - description: null + is_fork: false fork_id: 0 - git_size: 0 + is_template: false + template_id: 0 + size: 0 + is_fsck_enabled: true + close_issues_via_commit_in_any_branch: false + +- id: 40 - is_archived: 0 - is_empty: 0 - is_fork: 0 - is_fsck_enabled: 1 - is_mirror: 0 - is_private: 0 - is_template: 0 - lfs_size: 0 + owner_id: 23 + owner_name: privated_org lower_name: public_repo_on_private_org name: public_repo_on_private_org - num_action_runs: 0 - num_closed_action_runs: 0 - num_closed_issues: 0 - num_closed_milestones: 0 - num_closed_projects: 0 - num_closed_pulls: 0 + default_branch: master + num_watches: 0 + num_stars: 0 num_forks: 0 num_issues: 0 + num_closed_issues: 0 + num_pulls: 0 + num_closed_pulls: 0 num_milestones: 0 + num_closed_milestones: 0 num_projects: 0 - num_pulls: 0 - num_stars: 0 - num_watches: 0 - original_service_type: null - original_url: null - owner_id: 23 - owner_name: privated_org - size: 0 + num_closed_projects: 0 + is_private: false + is_empty: false + is_archived: false + is_mirror: false status: 0 - template_id: 0 - topics: null - trust_model: null - updated_unix: null - website: null -- archived_unix: 0 - avatar: null - close_issues_via_commit_in_any_branch: 0 - created_unix: null - default_branch: master - description: null + is_fork: false fork_id: 0 - git_size: 0 + is_template: false + template_id: 0 + size: 0 + is_fsck_enabled: true + close_issues_via_commit_in_any_branch: false + +- id: 41 - is_archived: 0 - is_empty: 0 - is_fork: 0 - is_fsck_enabled: 1 - is_mirror: 0 - is_private: 1 - is_template: 0 - lfs_size: 0 + owner_id: 23 + owner_name: privated_org lower_name: private_repo_on_private_org name: private_repo_on_private_org - num_action_runs: 0 - num_closed_action_runs: 0 - num_closed_issues: 0 - num_closed_milestones: 0 - num_closed_projects: 0 - num_closed_pulls: 0 + default_branch: master + num_watches: 0 + num_stars: 0 num_forks: 0 num_issues: 0 + num_closed_issues: 0 + num_pulls: 0 + num_closed_pulls: 0 num_milestones: 0 + num_closed_milestones: 0 num_projects: 0 - num_pulls: 0 - num_stars: 0 - num_watches: 0 - original_service_type: null - original_url: null - owner_id: 23 - owner_name: privated_org - size: 0 + num_closed_projects: 0 + is_private: true + is_empty: false + is_archived: false + is_mirror: false status: 0 - template_id: 0 - topics: null - trust_model: null - updated_unix: null - website: null -- archived_unix: 0 - avatar: null - close_issues_via_commit_in_any_branch: 0 - created_unix: null - default_branch: master - description: null + is_fork: false fork_id: 0 - git_size: 0 + is_template: false + template_id: 0 + size: 0 + is_fsck_enabled: true + close_issues_via_commit_in_any_branch: false + +- id: 42 - is_archived: 0 - is_empty: 0 - is_fork: 0 - is_fsck_enabled: 1 - is_mirror: 0 - is_private: 0 - is_template: 0 - lfs_size: 0 + owner_id: 2 + owner_name: user2 lower_name: glob name: glob - num_action_runs: 0 - num_closed_action_runs: 0 - num_closed_issues: 0 - num_closed_milestones: 0 - num_closed_projects: 0 - num_closed_pulls: 0 + default_branch: master + num_watches: 0 + num_stars: 0 num_forks: 0 num_issues: 1 + num_closed_issues: 0 + num_pulls: 0 + num_closed_pulls: 0 num_milestones: 1 + num_closed_milestones: 0 num_projects: 0 - num_pulls: 0 - num_stars: 0 - num_watches: 0 - original_service_type: null - original_url: null - owner_id: 2 - owner_name: user2 - size: 0 + num_closed_projects: 0 + is_private: false + is_empty: false + is_archived: false + is_mirror: false status: 0 - template_id: 0 - topics: null - trust_model: null - updated_unix: null - website: null -- archived_unix: 0 - avatar: null - close_issues_via_commit_in_any_branch: 0 - created_unix: null - default_branch: null - description: null + is_fork: false fork_id: 0 - git_size: 0 + is_template: false + template_id: 0 + size: 0 + is_fsck_enabled: true + close_issues_via_commit_in_any_branch: false + +- id: 43 - is_archived: 0 - is_empty: 1 - is_fork: 0 - is_fsck_enabled: 1 - is_mirror: 0 - is_private: 1 - is_template: 0 - lfs_size: 0 + owner_id: 26 + owner_name: org26 lower_name: repo26 name: repo26 - num_action_runs: 0 - num_closed_action_runs: 0 - num_closed_issues: 0 - num_closed_milestones: 0 - num_closed_projects: 0 - num_closed_pulls: 0 + num_watches: 0 + num_stars: 0 num_forks: 0 num_issues: 0 + num_closed_issues: 0 + num_pulls: 0 + num_closed_pulls: 0 num_milestones: 0 + num_closed_milestones: 0 num_projects: 0 - num_pulls: 0 - num_stars: 0 - num_watches: 0 - original_service_type: null - original_url: null - owner_id: 26 - owner_name: org26 - size: 0 + num_closed_projects: 0 + is_private: true + is_empty: true + is_archived: false + is_mirror: false status: 0 - template_id: 0 - topics: null - trust_model: null - updated_unix: null - website: null -- archived_unix: 0 - avatar: null - close_issues_via_commit_in_any_branch: 0 - created_unix: null - default_branch: master - description: null + is_fork: false fork_id: 0 - git_size: 0 + is_template: false + template_id: 0 + size: 0 + is_fsck_enabled: true + close_issues_via_commit_in_any_branch: false + +- id: 44 - is_archived: 0 - is_empty: 0 - is_fork: 0 - is_fsck_enabled: 1 - is_mirror: 0 - is_private: 0 - is_template: 1 - lfs_size: 0 + owner_id: 27 + owner_name: user27 lower_name: template1 name: template1 - num_action_runs: 0 - num_closed_action_runs: 0 - num_closed_issues: 0 - num_closed_milestones: 0 - num_closed_projects: 0 - num_closed_pulls: 0 + default_branch: master + num_watches: 0 + num_stars: 0 num_forks: 0 num_issues: 0 + num_closed_issues: 0 + num_pulls: 0 + num_closed_pulls: 0 num_milestones: 0 + num_closed_milestones: 0 num_projects: 0 - num_pulls: 0 - num_stars: 0 - num_watches: 0 - original_service_type: null - original_url: null - owner_id: 27 - owner_name: user27 - size: 0 + num_closed_projects: 0 + is_private: false + is_empty: false + is_archived: false + is_mirror: false status: 0 - template_id: 0 - topics: null - trust_model: null - updated_unix: null - website: null -- archived_unix: 0 - avatar: null - close_issues_via_commit_in_any_branch: 0 - created_unix: null - default_branch: null - description: null + is_fork: false fork_id: 0 - git_size: 0 + is_template: true + template_id: 0 + size: 0 + is_fsck_enabled: true + close_issues_via_commit_in_any_branch: false + +- id: 45 - is_archived: 0 - is_empty: 1 - is_fork: 0 - is_fsck_enabled: 1 - is_mirror: 0 - is_private: 0 - is_template: 1 - lfs_size: 0 + owner_id: 27 + owner_name: user27 lower_name: template2 name: template2 - num_action_runs: 0 - num_closed_action_runs: 0 - num_closed_issues: 0 - num_closed_milestones: 0 - num_closed_projects: 0 - num_closed_pulls: 0 + num_watches: 0 + num_stars: 0 num_forks: 0 num_issues: 0 - num_milestones: 0 - num_projects: 0 + num_closed_issues: 0 num_pulls: 0 - num_stars: 0 - num_watches: 0 - original_service_type: null - original_url: null - owner_id: 27 - owner_name: user27 - size: 0 + num_closed_pulls: 0 + num_milestones: 0 + num_closed_milestones: 0 + num_projects: 0 + num_closed_projects: 0 + is_private: false + is_empty: true + is_archived: false + is_mirror: false status: 0 - template_id: 0 - topics: null - trust_model: null - updated_unix: null - website: null -- archived_unix: 0 - avatar: null - close_issues_via_commit_in_any_branch: 0 - created_unix: null - default_branch: master - description: null + is_fork: false fork_id: 0 - git_size: 0 + is_template: true + template_id: 0 + size: 0 + is_fsck_enabled: true + close_issues_via_commit_in_any_branch: false + +- id: 46 - is_archived: 0 - is_empty: 0 - is_fork: 0 - is_fsck_enabled: 1 - is_mirror: 0 - is_private: 0 - is_template: 0 - lfs_size: 0 + owner_id: 26 + owner_name: org26 lower_name: repo_external_tracker name: repo_external_tracker - num_action_runs: 0 - num_closed_action_runs: 0 - num_closed_issues: 0 - num_closed_milestones: 0 - num_closed_projects: 0 - num_closed_pulls: 0 + default_branch: master + num_watches: 0 + num_stars: 0 num_forks: 0 num_issues: 0 + num_closed_issues: 0 + num_pulls: 0 + num_closed_pulls: 0 num_milestones: 0 + num_closed_milestones: 0 num_projects: 0 - num_pulls: 0 - num_stars: 0 - num_watches: 0 - original_service_type: null - original_url: null - owner_id: 26 - owner_name: org26 - size: 0 + num_closed_projects: 0 + is_private: false + is_empty: false + is_archived: false + is_mirror: false status: 0 - template_id: 0 - topics: null - trust_model: null - updated_unix: null - website: null -- archived_unix: 0 - avatar: null - close_issues_via_commit_in_any_branch: 0 - created_unix: null - default_branch: master - description: null + is_fork: false fork_id: 0 - git_size: 0 + is_template: false + template_id: 0 + size: 0 + is_fsck_enabled: true + close_issues_via_commit_in_any_branch: false + +- id: 47 - is_archived: 0 - is_empty: 0 - is_fork: 0 - is_fsck_enabled: 1 - is_mirror: 0 - is_private: 0 - is_template: 0 - lfs_size: 0 + owner_id: 26 + owner_name: org26 lower_name: repo_external_tracker_numeric name: repo_external_tracker_numeric - num_action_runs: 0 - num_closed_action_runs: 0 - num_closed_issues: 0 - num_closed_milestones: 0 - num_closed_projects: 0 - num_closed_pulls: 0 + default_branch: master + num_watches: 0 + num_stars: 0 num_forks: 0 num_issues: 0 + num_closed_issues: 0 + num_pulls: 0 + num_closed_pulls: 0 num_milestones: 0 + num_closed_milestones: 0 num_projects: 0 - num_pulls: 0 - num_stars: 0 - num_watches: 0 - original_service_type: null - original_url: null - owner_id: 26 - owner_name: org26 - size: 0 + num_closed_projects: 0 + is_private: false + is_empty: false + is_archived: false + is_mirror: false status: 0 - template_id: 0 - topics: null - trust_model: null - updated_unix: null - website: null -- archived_unix: 0 - avatar: null - close_issues_via_commit_in_any_branch: 0 - created_unix: null - default_branch: master - description: null + is_fork: false fork_id: 0 - git_size: 0 + is_template: false + template_id: 0 + size: 0 + is_fsck_enabled: true + close_issues_via_commit_in_any_branch: false + +- id: 48 - is_archived: 0 - is_empty: 0 - is_fork: 0 - is_fsck_enabled: 1 - is_mirror: 0 - is_private: 0 - is_template: 0 - lfs_size: 0 + owner_id: 26 + owner_name: org26 lower_name: repo_external_tracker_alpha name: repo_external_tracker_alpha - num_action_runs: 0 - num_closed_action_runs: 0 - num_closed_issues: 0 - num_closed_milestones: 0 - num_closed_projects: 0 - num_closed_pulls: 0 + default_branch: master + num_watches: 0 + num_stars: 0 num_forks: 0 num_issues: 0 + num_closed_issues: 0 + num_pulls: 1 + num_closed_pulls: 0 num_milestones: 0 + num_closed_milestones: 0 num_projects: 0 - num_pulls: 1 - num_stars: 0 - num_watches: 0 - original_service_type: null - original_url: null - owner_id: 26 - owner_name: org26 - size: 0 + num_closed_projects: 0 + is_private: false + is_empty: false + is_archived: false + is_mirror: false status: 0 - template_id: 0 - topics: null - trust_model: null - updated_unix: null - website: null -- archived_unix: 0 - avatar: null - close_issues_via_commit_in_any_branch: 0 - created_unix: null - default_branch: master - description: null + is_fork: false fork_id: 0 - git_size: 0 + is_template: false + template_id: 0 + size: 0 + is_fsck_enabled: true + close_issues_via_commit_in_any_branch: false + +- id: 49 - is_archived: 0 - is_empty: 0 - is_fork: 0 - is_fsck_enabled: 1 - is_mirror: 0 - is_private: 0 - is_template: 0 - lfs_size: 0 + owner_id: 27 + owner_name: user27 lower_name: repo49 name: repo49 - num_action_runs: 0 - num_closed_action_runs: 0 - num_closed_issues: 0 - num_closed_milestones: 0 - num_closed_projects: 0 - num_closed_pulls: 0 + default_branch: master + num_watches: 0 + num_stars: 0 num_forks: 0 num_issues: 0 + num_closed_issues: 0 + num_pulls: 0 + num_closed_pulls: 0 num_milestones: 0 + num_closed_milestones: 0 num_projects: 0 - num_pulls: 0 - num_stars: 0 - num_watches: 0 - original_service_type: null - original_url: null - owner_id: 27 - owner_name: user27 - size: 0 + num_closed_projects: 0 + is_private: false + is_empty: false + is_archived: false + is_mirror: false status: 0 - template_id: 0 - topics: null - trust_model: null - updated_unix: null - website: null -- archived_unix: 0 - avatar: null - close_issues_via_commit_in_any_branch: 0 - created_unix: null - default_branch: master - description: null + is_fork: false fork_id: 0 - git_size: 0 + is_template: false + template_id: 0 + size: 0 + is_fsck_enabled: true + close_issues_via_commit_in_any_branch: false + +- id: 50 - is_archived: 0 - is_empty: 0 - is_fork: 0 - is_fsck_enabled: 1 - is_mirror: 0 - is_private: 0 - is_template: 0 - lfs_size: 0 + owner_id: 30 + owner_name: user30 lower_name: repo50 name: repo50 - num_action_runs: 0 - num_closed_action_runs: 0 - num_closed_issues: 0 - num_closed_milestones: 0 - num_closed_projects: 0 - num_closed_pulls: 0 + default_branch: master + num_watches: 0 + num_stars: 0 num_forks: 0 num_issues: 1 + num_closed_issues: 0 + num_pulls: 0 + num_closed_pulls: 0 num_milestones: 0 + num_closed_milestones: 0 num_projects: 0 - num_pulls: 0 - num_stars: 0 - num_watches: 0 - original_service_type: null - original_url: null - owner_id: 30 - owner_name: user30 - size: 0 + num_closed_projects: 0 + is_private: false + is_empty: false + is_archived: false + is_mirror: false status: 0 - template_id: 0 - topics: null - trust_model: null - updated_unix: null - website: null -- archived_unix: 0 - avatar: null - close_issues_via_commit_in_any_branch: 0 - created_unix: null - default_branch: master - description: null + is_fork: false fork_id: 0 - git_size: 0 + is_template: false + template_id: 0 + size: 0 + is_fsck_enabled: true + close_issues_via_commit_in_any_branch: false + +- id: 51 - is_archived: 1 - is_empty: 0 - is_fork: 0 - is_fsck_enabled: 1 - is_mirror: 0 - is_private: 0 - is_template: 0 - lfs_size: 0 + owner_id: 30 + owner_name: user30 lower_name: repo51 name: repo51 - num_action_runs: 0 - num_closed_action_runs: 0 - num_closed_issues: 0 - num_closed_milestones: 0 - num_closed_projects: 0 - num_closed_pulls: 0 + default_branch: master + num_watches: 0 + num_stars: 0 num_forks: 0 num_issues: 1 + num_closed_issues: 0 + num_pulls: 0 + num_closed_pulls: 0 num_milestones: 0 + num_closed_milestones: 0 num_projects: 0 - num_pulls: 0 - num_stars: 0 - num_watches: 0 - original_service_type: null - original_url: null - owner_id: 30 - owner_name: user30 - size: 0 + num_closed_projects: 0 + is_private: false + is_empty: false + is_archived: true + is_mirror: false status: 0 - template_id: 0 - topics: null - trust_model: null - updated_unix: null - website: null -- archived_unix: 0 - avatar: null - close_issues_via_commit_in_any_branch: 0 - created_unix: null - default_branch: master - description: null + is_fork: false fork_id: 0 - git_size: 0 + is_template: false + template_id: 0 + size: 0 + is_fsck_enabled: true + close_issues_via_commit_in_any_branch: false + +- id: 52 - is_archived: 0 - is_empty: 1 - is_fork: 0 - is_fsck_enabled: 1 - is_mirror: 0 - is_private: 1 - is_template: 0 - lfs_size: 0 + owner_id: 30 + owner_name: user30 lower_name: empty name: empty - num_action_runs: 0 - num_closed_action_runs: 0 - num_closed_issues: 0 - num_closed_milestones: 0 - num_closed_projects: 0 - num_closed_pulls: 0 + default_branch: master + num_watches: 0 + num_stars: 0 num_forks: 0 num_issues: 0 + num_closed_issues: 0 + num_pulls: 0 + num_closed_pulls: 0 num_milestones: 0 + num_closed_milestones: 0 num_projects: 0 - num_pulls: 0 - num_stars: 0 - num_watches: 0 - original_service_type: null - original_url: null - owner_id: 30 - owner_name: user30 - size: 0 + num_closed_projects: 0 + is_private: true + is_empty: true + is_archived: false + is_mirror: false status: 0 - template_id: 0 - topics: null - trust_model: null - updated_unix: null - website: null -- archived_unix: 0 - avatar: null - close_issues_via_commit_in_any_branch: 0 - created_unix: null - default_branch: master - description: null + is_fork: false fork_id: 0 - git_size: 0 + is_template: false + template_id: 0 + size: 0 + is_fsck_enabled: true + close_issues_via_commit_in_any_branch: false + +- id: 53 - is_archived: 0 - is_empty: 0 - is_fork: 0 - is_fsck_enabled: 1 - is_mirror: null - is_private: 0 - is_template: 0 - lfs_size: 0 + owner_id: 30 + owner_name: user30 lower_name: renderer name: renderer - num_action_runs: 0 - num_closed_action_runs: 0 + default_branch: master + is_archived: false + is_empty: false + is_private: false + num_issues: 0 num_closed_issues: 0 - num_closed_milestones: 0 - num_closed_projects: 0 + num_pulls: 0 num_closed_pulls: 0 - num_forks: null - num_issues: 0 num_milestones: 0 - num_projects: 0 - num_pulls: 0 - num_stars: null + num_closed_milestones: 0 num_watches: 0 - original_service_type: null - original_url: null - owner_id: 30 - owner_name: user30 - size: 0 + num_projects: 0 + num_closed_projects: 0 status: 0 + is_fork: false + fork_id: 0 + is_template: false template_id: 0 - topics: null - trust_model: null - updated_unix: null - website: null -- archived_unix: 0 - avatar: null - close_issues_via_commit_in_any_branch: 0 - created_unix: null - default_branch: master - description: null - fork_id: null - git_size: 0 + size: 0 + is_fsck_enabled: true + close_issues_via_commit_in_any_branch: false + +- id: 54 - is_archived: 0 - is_empty: 0 - is_fork: 0 - is_fsck_enabled: 1 - is_mirror: null - is_private: 1 - is_template: 0 - lfs_size: 0 - lower_name: lfs - name: lfs - num_action_runs: 0 - num_closed_action_runs: 0 - num_closed_issues: null - num_closed_milestones: 0 - num_closed_projects: 0 - num_closed_pulls: null - num_forks: null - num_issues: null - num_milestones: 0 - num_projects: 0 - num_pulls: null - num_stars: null - num_watches: null - original_service_type: null - original_url: null owner_id: 2 owner_name: user2 - size: 0 + lower_name: lfs + name: lfs + default_branch: master + is_empty: false + is_archived: false + is_private: true status: 0 - template_id: null - topics: null - trust_model: null - updated_unix: null - website: null -- archived_unix: 0 - avatar: null - close_issues_via_commit_in_any_branch: 0 - created_unix: null - default_branch: null - description: null - fork_id: null - git_size: 0 + +- id: 55 - is_archived: 0 - is_empty: 0 - is_fork: 0 - is_fsck_enabled: 1 - is_mirror: null - is_private: 1 - is_template: 0 - lfs_size: 0 + owner_id: 2 + owner_name: user2 lower_name: scoped_label name: scoped_label - num_action_runs: 0 - num_closed_action_runs: 0 - num_closed_issues: null - num_closed_milestones: 0 - num_closed_projects: 0 - num_closed_pulls: null - num_forks: null + is_empty: false + is_archived: false + is_private: true num_issues: 1 - num_milestones: 0 - num_projects: 0 - num_pulls: null - num_stars: null - num_watches: null - original_service_type: null - original_url: null - owner_id: 2 - owner_name: user2 - size: 0 status: 0 - template_id: null - topics: null - trust_model: null - updated_unix: null - website: null -- archived_unix: 0 - avatar: null - close_issues_via_commit_in_any_branch: 0 - created_unix: null - default_branch: master - description: null - fork_id: null - git_size: 0 + +- id: 56 - is_archived: 0 - is_empty: 0 - is_fork: 0 - is_fsck_enabled: 1 - is_mirror: null - is_private: 1 - is_template: 0 - lfs_size: 0 + owner_id: 2 + owner_name: user2 lower_name: readme-test name: readme-test - num_action_runs: 0 - num_closed_action_runs: 0 - num_closed_issues: null - num_closed_milestones: 0 - num_closed_projects: 0 - num_closed_pulls: null - num_forks: null + default_branch: master + is_empty: false + is_archived: false + is_private: true + status: 0 num_issues: 0 - num_milestones: 0 - num_projects: 0 - num_pulls: null - num_stars: null - num_watches: null - original_service_type: null - original_url: null + +- + id: 57 owner_id: 2 owner_name: user2 - size: 0 - status: 0 - template_id: null - topics: null - trust_model: null - updated_unix: null - website: null -- archived_unix: 0 - avatar: null - close_issues_via_commit_in_any_branch: 0 - created_unix: null - default_branch: main - description: null - fork_id: null - git_size: 0 - id: 57 - is_archived: 0 - is_empty: 0 - is_fork: 0 - is_fsck_enabled: 1 - is_mirror: null - is_private: 0 - is_template: 0 - lfs_size: 0 lower_name: repo-release name: repo-release - num_action_runs: 0 - num_closed_action_runs: 0 - num_closed_issues: null - num_closed_milestones: 0 - num_closed_projects: 0 - num_closed_pulls: null - num_forks: null + default_branch: main + is_empty: false + is_archived: false + is_private: false + status: 0 num_issues: 0 - num_milestones: 0 - num_projects: 0 - num_pulls: null - num_stars: null - num_watches: null - original_service_type: null - original_url: null + +- + id: 58 # org public repo owner_id: 2 owner_name: user2 - size: 0 - status: 0 - template_id: null - topics: null - trust_model: null - updated_unix: null - website: null -- archived_unix: 0 - avatar: null - close_issues_via_commit_in_any_branch: 0 - created_unix: null - default_branch: main - description: null - fork_id: 0 - git_size: 0 - id: 58 - is_archived: 0 - is_empty: 0 - is_fork: 0 - is_fsck_enabled: 1 - is_mirror: 0 - is_private: 0 - is_template: 0 - lfs_size: 0 lower_name: commitsonpr name: commitsonpr - num_action_runs: 0 - num_closed_action_runs: 0 - num_closed_issues: 0 - num_closed_milestones: 0 - num_closed_projects: 0 - num_closed_pulls: 0 + default_branch: main + num_watches: 0 + num_stars: 0 num_forks: 0 num_issues: 0 + num_closed_issues: 0 + num_pulls: 1 + num_closed_pulls: 0 num_milestones: 0 + num_closed_milestones: 0 num_projects: 0 - num_pulls: 1 - num_stars: 0 - num_watches: 0 - original_service_type: null - original_url: null - owner_id: 2 - owner_name: user2 - size: 0 + num_closed_projects: 0 + is_private: false + is_empty: false + is_archived: false + is_mirror: false status: 0 + is_fork: false + fork_id: 0 + is_template: false template_id: 0 - topics: null - trust_model: null - updated_unix: null - website: null + size: 0 + is_fsck_enabled: true + close_issues_via_commit_in_any_branch: false diff --git a/models/fixtures/review.yml b/models/fixtures/review.yml index 8be37916cc9db..cc2c7e06e73e2 100644 --- a/models/fixtures/review.yml +++ b/models/fixtures/review.yml @@ -1,210 +1,134 @@ -- commit_id: null - content: Demo Review - created_unix: 946684810 - dismissed: 0 +- id: 1 - issue_id: 2 - official: 0 - original_author: null - original_author_id: null - reviewer_id: 1 - reviewer_team_id: 0 - stale: 0 type: 1 + reviewer_id: 1 + issue_id: 2 + content: "Demo Review" updated_unix: 946684810 -- commit_id: null - content: 'Invalid Review #1' created_unix: 946684810 - dismissed: 0 +- id: 2 - issue_id: 534543 - official: 0 - original_author: null - original_author_id: null - reviewer_id: 534543 - reviewer_team_id: 0 - stale: 0 type: 1 + reviewer_id: 534543 + issue_id: 534543 + content: "Invalid Review #1" updated_unix: 946684810 -- commit_id: null - content: 'Invalid Review #2' created_unix: 946684810 - dismissed: 0 +- id: 3 - issue_id: 343545 - official: 0 - original_author: null - original_author_id: null - reviewer_id: 1 - reviewer_team_id: 0 - stale: 0 type: 1 + reviewer_id: 1 + issue_id: 343545 + content: "Invalid Review #2" updated_unix: 946684810 -- commit_id: null - content: Pending Review created_unix: 946684810 - dismissed: 0 +- id: 4 - issue_id: 2 - official: 0 - original_author: null - original_author_id: null + type: 0 # Pending review reviewer_id: 1 - reviewer_team_id: 0 - stale: 0 - type: 0 + issue_id: 2 + content: "Pending Review" updated_unix: 946684810 -- commit_id: null - content: New review 1 created_unix: 946684810 - dismissed: 0 +- id: 5 - issue_id: 3 - official: 0 - original_author: null - original_author_id: null - reviewer_id: 1 - reviewer_team_id: 0 - stale: 0 type: 2 + reviewer_id: 1 + issue_id: 3 + content: "New review 1" updated_unix: 946684810 -- commit_id: null - content: New review 3 - created_unix: 946684811 - dismissed: 0 + created_unix: 946684810 +- id: 6 + type: 0 + reviewer_id: 2 issue_id: 3 - official: 0 - original_author: null + content: "New review 3" original_author_id: 0 - reviewer_id: 2 - reviewer_team_id: 0 - stale: 0 - type: 0 updated_unix: 946684811 -- commit_id: null - content: New review 4 - created_unix: 946684812 - dismissed: 0 + created_unix: 946684811 +- id: 7 + type: 3 + reviewer_id: 3 issue_id: 3 - official: 0 - original_author: null + content: "New review 4" original_author_id: 0 - reviewer_id: 3 - reviewer_team_id: 0 - stale: 0 - type: 3 updated_unix: 946684812 -- commit_id: 8091a55037cd59e47293aca02981b5a67076b364 - content: New review 5 - created_unix: 946684813 - dismissed: 0 + created_unix: 946684812 +- id: 8 + type: 1 + reviewer_id: 4 issue_id: 3 - official: 0 - original_author: null original_author_id: 0 - reviewer_id: 4 - reviewer_team_id: 0 - stale: 1 - type: 1 + content: "New review 5" + commit_id: 8091a55037cd59e47293aca02981b5a67076b364 + stale: true updated_unix: 946684813 -- commit_id: null - content: New review 3 rejected - created_unix: 946684814 - dismissed: 0 + created_unix: 946684813 +- id: 9 - issue_id: 3 - official: 0 - original_author: null - original_author_id: 0 - reviewer_id: 2 - reviewer_team_id: 0 - stale: 0 type: 3 + reviewer_id: 2 + issue_id: 3 + content: "New review 3 rejected" updated_unix: 946684814 -- commit_id: null - content: a deleted user's review - created_unix: 946684815 - dismissed: 0 + created_unix: 946684814 + original_author_id: 0 + +- id: 10 - issue_id: 3 - official: 1 - original_author: null - original_author_id: null - reviewer_id: 100 - reviewer_team_id: 0 - stale: 0 type: 3 + reviewer_id: 100 + issue_id: 3 + content: "a deleted user's review" + official: true updated_unix: 946684815 -- commit_id: null - content: null - created_unix: 1602936509 - dismissed: 0 + created_unix: 946684815 + +- id: 11 - issue_id: 12 - official: 1 - original_author: null - original_author_id: null + type: 4 reviewer_id: 0 reviewer_team_id: 7 - stale: 0 - type: 4 + issue_id: 12 + official: true updated_unix: 1602936509 -- commit_id: null - content: null - created_unix: 1603196749 - dismissed: 0 + created_unix: 1602936509 + +- id: 12 - issue_id: 12 - official: 1 - original_author: null - original_author_id: null - reviewer_id: 1 - reviewer_team_id: 0 - stale: 0 type: 4 + reviewer_id: 1 + issue_id: 12 + official: true updated_unix: 1603196749 -- commit_id: null - content: old review from user5 - created_unix: 946684820 - dismissed: 0 + created_unix: 1603196749 + +- id: 13 - issue_id: 11 - official: 0 - original_author: null - original_author_id: null - reviewer_id: 5 - reviewer_team_id: 0 - stale: 0 type: 1 + reviewer_id: 5 + issue_id: 11 + content: "old review from user5" updated_unix: 946684820 -- commit_id: null - content: duplicate review from user5 (latest) - created_unix: 946684830 - dismissed: 0 + created_unix: 946684820 + +- id: 14 - issue_id: 11 - official: 0 - original_author: null - original_author_id: null - reviewer_id: 5 - reviewer_team_id: 0 - stale: 0 type: 1 + reviewer_id: 5 + issue_id: 11 + content: "duplicate review from user5 (latest)" updated_unix: 946684830 -- commit_id: null - content: singular review from user6 and final review for this pr - created_unix: 946684831 - dismissed: 0 + created_unix: 946684830 + +- id: 15 - issue_id: 11 - official: 0 - original_author: null - original_author_id: null - reviewer_id: 6 - reviewer_team_id: 0 - stale: 0 type: 1 + reviewer_id: 6 + issue_id: 11 + content: "singular review from user6 and final review for this pr" updated_unix: 946684831 + created_unix: 946684831 diff --git a/models/fixtures/star.yml b/models/fixtures/star.yml index dcb8db6af3359..860f26b8e2282 100644 --- a/models/fixtures/star.yml +++ b/models/fixtures/star.yml @@ -1,8 +1,9 @@ -- created_unix: null +- id: 1 - repo_id: 2 uid: 2 -- created_unix: null + repo_id: 2 + +- id: 2 - repo_id: 4 uid: 2 + repo_id: 4 diff --git a/models/fixtures/stopwatch.yml b/models/fixtures/stopwatch.yml index da4d66237682e..b7919d6fbbd6e 100644 --- a/models/fixtures/stopwatch.yml +++ b/models/fixtures/stopwatch.yml @@ -1,8 +1,11 @@ -- created_unix: 1500988001 +- id: 1 - issue_id: 1 user_id: 1 -- created_unix: 1500988002 + issue_id: 1 + created_unix: 1500988001 + +- id: 2 - issue_id: 2 user_id: 2 + issue_id: 2 + created_unix: 1500988002 diff --git a/models/fixtures/system_setting.yml b/models/fixtures/system_setting.yml index 98e9aa4c957b5..6c960168fcb81 100644 --- a/models/fixtures/system_setting.yml +++ b/models/fixtures/system_setting.yml @@ -1,12 +1,15 @@ -- created: 1653533198 +- id: 1 - setting_key: disable_gravatar - setting_value: "false" - updated: 1653533198 + setting_key: 'disable_gravatar' + setting_value: 'false' version: 1 -- created: 1653533198 - id: 2 - setting_key: enable_federated_avatar - setting_value: "false" + created: 1653533198 updated: 1653533198 + +- + id: 2 + setting_key: 'enable_federated_avatar' + setting_value: 'false' version: 1 + created: 1653533198 + updated: 1653533198 diff --git a/models/fixtures/team.yml b/models/fixtures/team.yml index 2fe1c40f13b91..65326eedbf476 100644 --- a/models/fixtures/team.yml +++ b/models/fixtures/team.yml @@ -1,200 +1,219 @@ -- authorize: 4 - can_create_org_repo: 1 - description: null +- id: 1 - includes_all_repositories: 0 + org_id: 3 lower_name: owners name: Owners - num_members: 1 + authorize: 4 # owner num_repos: 3 - org_id: 3 -- authorize: 2 - can_create_org_repo: 0 - description: null + num_members: 1 + includes_all_repositories: false + can_create_org_repo: true + +- id: 2 - includes_all_repositories: 0 + org_id: 3 lower_name: team1 name: team1 - num_members: 2 + authorize: 2 # write num_repos: 1 - org_id: 3 -- authorize: 4 - can_create_org_repo: 1 - description: null + num_members: 2 + includes_all_repositories: false + can_create_org_repo: false + +- id: 3 - includes_all_repositories: 0 + org_id: 6 lower_name: owners name: Owners - num_members: 1 + authorize: 4 # owner num_repos: 0 - org_id: 6 -- authorize: 4 - can_create_org_repo: 1 - description: null + num_members: 1 + includes_all_repositories: false + can_create_org_repo: true + +- id: 4 - includes_all_repositories: 0 + org_id: 7 lower_name: owners name: Owners - num_members: 1 + authorize: 4 # owner num_repos: 0 - org_id: 7 -- authorize: 4 - can_create_org_repo: 1 - description: null + num_members: 1 + includes_all_repositories: false + can_create_org_repo: true + +- id: 5 - includes_all_repositories: 0 + org_id: 17 lower_name: owners name: Owners - num_members: 2 + authorize: 4 # owner num_repos: 2 - org_id: 17 -- authorize: 4 - can_create_org_repo: 1 - description: null + num_members: 2 + includes_all_repositories: false + can_create_org_repo: true + +- id: 6 - includes_all_repositories: 0 + org_id: 19 lower_name: owners name: Owners - num_members: 2 + authorize: 4 # owner num_repos: 2 - org_id: 19 -- authorize: 2 - can_create_org_repo: 0 - description: null + num_members: 2 + includes_all_repositories: false + can_create_org_repo: true + +- id: 7 - includes_all_repositories: 0 + org_id: 3 lower_name: test_team name: test_team - num_members: 1 + authorize: 2 # write num_repos: 1 - org_id: 3 -- authorize: 2 - can_create_org_repo: 0 - description: null + num_members: 1 + includes_all_repositories: false + can_create_org_repo: false + +- id: 8 - includes_all_repositories: 0 + org_id: 17 lower_name: test_team name: test_team - num_members: 1 + authorize: 2 # write num_repos: 1 - org_id: 17 -- authorize: 1 - can_create_org_repo: 0 - description: null + num_members: 1 + includes_all_repositories: false + can_create_org_repo: false + +- id: 9 - includes_all_repositories: 0 + org_id: 17 lower_name: review_team name: review_team - num_members: 2 + authorize: 1 # read num_repos: 1 - org_id: 17 -- authorize: 1 - can_create_org_repo: 0 - description: null + num_members: 2 + includes_all_repositories: false + can_create_org_repo: false + +- id: 10 - includes_all_repositories: 0 + org_id: 25 lower_name: notowners name: NotOwners - num_members: 1 + authorize: 1 # read num_repos: 0 - org_id: 25 -- authorize: 1 - can_create_org_repo: 0 - description: null + num_members: 1 + includes_all_repositories: false + can_create_org_repo: false + +- id: 11 - includes_all_repositories: 0 + org_id: 26 lower_name: team11 name: team11 - num_members: 0 + authorize: 1 # read num_repos: 0 - org_id: 26 -- authorize: 3 - can_create_org_repo: 1 - description: null + num_members: 0 + includes_all_repositories: false + can_create_org_repo: false + +- id: 12 - includes_all_repositories: 0 + org_id: 3 lower_name: team12creators name: team12Creators - num_members: 1 + authorize: 3 # admin num_repos: 0 - org_id: 3 -- authorize: 3 - can_create_org_repo: 0 - description: null + num_members: 1 + includes_all_repositories: false + can_create_org_repo: true + +- id: 13 - includes_all_repositories: 0 + org_id: 6 lower_name: team13notcreators name: team13NotCreators - num_members: 1 + authorize: 3 # admin num_repos: 0 - org_id: 6 -- authorize: 2 - can_create_org_repo: 1 - description: null + num_members: 1 + includes_all_repositories: false + can_create_org_repo: false + +- id: 14 - includes_all_repositories: 0 + org_id: 3 lower_name: teamcreaterepo name: teamCreateRepo - num_members: 1 + authorize: 2 # write num_repos: 0 - org_id: 3 -- authorize: 4 - can_create_org_repo: 1 - description: null + num_members: 1 + includes_all_repositories: false + can_create_org_repo: true + +- id: 15 - includes_all_repositories: 0 + org_id: 22 lower_name: owners name: Owners - num_members: 0 + authorize: 4 # owner num_repos: 0 - org_id: 22 -- authorize: 4 - can_create_org_repo: 1 - description: null + num_members: 0 + includes_all_repositories: false + can_create_org_repo: true + +- id: 16 - includes_all_repositories: 0 + org_id: 23 lower_name: owners name: Owners - num_members: 0 + authorize: 4 # owner num_repos: 0 - org_id: 23 -- authorize: 2 - can_create_org_repo: 1 - description: null + num_members: 0 + includes_all_repositories: false + can_create_org_repo: true + +- id: 17 - includes_all_repositories: 0 + org_id: 23 lower_name: team14writeauth name: team14WriteAuth - num_members: 1 + authorize: 2 # write num_repos: 0 - org_id: 23 -- authorize: 4 - can_create_org_repo: 1 - description: null + num_members: 1 + includes_all_repositories: false + can_create_org_repo: true + +- id: 18 - includes_all_repositories: 0 + org_id: 35 lower_name: owners name: Owners - num_members: 1 + authorize: 4 # owner num_repos: 0 - org_id: 35 -- authorize: 4 - can_create_org_repo: 1 - description: null + num_members: 1 + includes_all_repositories: false + can_create_org_repo: true + +- id: 19 - includes_all_repositories: 0 + org_id: 36 lower_name: owners name: Owners - num_members: 1 + authorize: 4 # owner num_repos: 0 - org_id: 36 -- authorize: 1 - can_create_org_repo: 1 - description: null + num_members: 1 + includes_all_repositories: false + can_create_org_repo: true + +- id: 20 - includes_all_repositories: 0 + org_id: 36 lower_name: team20writepackage name: team20writepackage - num_members: 1 + authorize: 1 num_repos: 0 - org_id: 36 + num_members: 1 + includes_all_repositories: false + can_create_org_repo: true diff --git a/models/fixtures/team_repo.yml b/models/fixtures/team_repo.yml index daea39bfb344e..a523a90b204d2 100644 --- a/models/fixtures/team_repo.yml +++ b/models/fixtures/team_repo.yml @@ -1,44 +1,65 @@ -- id: 1 +- + id: 1 org_id: 3 - repo_id: 3 team_id: 1 -- id: 2 - org_id: 3 repo_id: 3 + +- + id: 2 + org_id: 3 team_id: 2 -- id: 3 + repo_id: 3 + +- + id: 3 org_id: 3 - repo_id: 5 team_id: 1 -- id: 4 + repo_id: 5 + +- + id: 4 org_id: 17 - repo_id: 23 team_id: 5 -- id: 5 + repo_id: 23 + +- + id: 5 org_id: 17 - repo_id: 24 team_id: 5 -- id: 6 + repo_id: 24 + +- + id: 6 org_id: 19 - repo_id: 27 team_id: 6 -- id: 7 + repo_id: 27 + +- + id: 7 org_id: 19 - repo_id: 28 team_id: 6 -- id: 8 + repo_id: 28 + +- + id: 8 org_id: 3 - repo_id: 32 team_id: 1 -- id: 9 - org_id: 3 repo_id: 32 + +- + id: 9 + org_id: 3 team_id: 7 -- id: 10 + repo_id: 32 + +- + id: 10 org_id: 17 - repo_id: 24 team_id: 8 -- id: 11 - org_id: 17 repo_id: 24 + +- + id: 11 + org_id: 17 team_id: 9 + repo_id: 24 \ No newline at end of file diff --git a/models/fixtures/team_unit.yml b/models/fixtures/team_unit.yml index 1579062a668c6..c5531aa57af52 100644 --- a/models/fixtures/team_unit.yml +++ b/models/fixtures/team_unit.yml @@ -1,240 +1,288 @@ -- access_mode: 4 +- id: 1 - org_id: null team_id: 1 type: 1 -- access_mode: 4 + access_mode: 4 + +- id: 2 - org_id: null team_id: 1 type: 2 -- access_mode: 4 + access_mode: 4 + +- id: 3 - org_id: null team_id: 1 type: 3 -- access_mode: 4 + access_mode: 4 + +- id: 4 - org_id: null team_id: 1 type: 4 -- access_mode: 4 + access_mode: 4 + +- id: 5 - org_id: null team_id: 1 type: 5 -- access_mode: 4 + access_mode: 4 + +- id: 6 - org_id: null team_id: 1 type: 6 -- access_mode: 4 + access_mode: 4 + +- id: 7 - org_id: null team_id: 1 type: 7 -- access_mode: 2 + access_mode: 4 + +- id: 8 - org_id: null team_id: 2 type: 1 -- access_mode: 2 + access_mode: 2 + +- id: 9 - org_id: null team_id: 2 type: 2 -- access_mode: 2 + access_mode: 2 + +- id: 10 - org_id: null team_id: 2 type: 3 -- access_mode: 2 + access_mode: 2 + +- id: 11 - org_id: null team_id: 2 type: 4 -- access_mode: 2 + access_mode: 2 + +- id: 12 - org_id: null team_id: 2 type: 5 -- access_mode: 2 + access_mode: 2 + +- id: 13 - org_id: null team_id: 2 type: 6 -- access_mode: 2 + access_mode: 2 + +- id: 14 - org_id: null team_id: 2 type: 7 -- access_mode: 4 + access_mode: 2 + +- id: 15 - org_id: null team_id: 3 type: 1 -- access_mode: 4 + access_mode: 4 + +- id: 16 - org_id: null team_id: 3 type: 2 -- access_mode: 4 + access_mode: 4 + +- id: 17 - org_id: null team_id: 3 type: 3 -- access_mode: 4 + access_mode: 4 + +- id: 18 - org_id: null team_id: 3 type: 4 -- access_mode: 4 + access_mode: 4 + +- id: 19 - org_id: null team_id: 3 type: 5 -- access_mode: 4 + access_mode: 4 + +- id: 20 - org_id: null team_id: 3 type: 6 -- access_mode: 4 + access_mode: 4 + +- id: 21 - org_id: null team_id: 3 type: 7 -- access_mode: 4 + access_mode: 4 + +- id: 22 - org_id: null team_id: 4 type: 1 -- access_mode: 4 + access_mode: 4 + +- id: 23 - org_id: null team_id: 4 type: 2 -- access_mode: 4 + access_mode: 4 + +- id: 24 - org_id: null team_id: 4 type: 3 -- access_mode: 4 + access_mode: 4 + +- id: 25 - org_id: null team_id: 4 type: 4 -- access_mode: 4 + access_mode: 4 + +- id: 26 - org_id: null team_id: 4 type: 5 -- access_mode: 4 + access_mode: 4 + +- id: 27 - org_id: null team_id: 4 type: 6 -- access_mode: 4 + access_mode: 4 + +- id: 28 - org_id: null team_id: 4 type: 7 -- access_mode: 4 + access_mode: 4 + +- id: 29 - org_id: null team_id: 5 type: 1 -- access_mode: 4 + access_mode: 4 + +- id: 30 - org_id: null team_id: 5 type: 2 -- access_mode: 4 + access_mode: 4 + +- id: 31 - org_id: null team_id: 5 type: 3 -- access_mode: 4 + access_mode: 4 + +- id: 32 - org_id: null team_id: 5 type: 4 -- access_mode: 4 + access_mode: 4 + +- id: 33 - org_id: null team_id: 5 type: 5 -- access_mode: 4 + access_mode: 4 + +- id: 34 - org_id: null team_id: 5 type: 6 -- access_mode: 4 + access_mode: 4 + +- id: 35 - org_id: null team_id: 5 type: 7 -- access_mode: 4 + access_mode: 4 + +- id: 36 - org_id: null team_id: 6 type: 1 -- access_mode: 4 + access_mode: 4 + +- id: 37 - org_id: null team_id: 6 type: 2 -- access_mode: 4 + access_mode: 4 + +- id: 38 - org_id: null team_id: 6 type: 3 -- access_mode: 4 + access_mode: 4 + +- id: 39 - org_id: null team_id: 6 type: 4 -- access_mode: 4 + access_mode: 4 + +- id: 40 - org_id: null team_id: 6 type: 5 -- access_mode: 4 + access_mode: 4 + +- id: 41 - org_id: null team_id: 6 type: 6 -- access_mode: 4 + access_mode: 4 + +- id: 42 - org_id: null team_id: 6 type: 7 -- access_mode: 2 + access_mode: 4 + +- id: 43 org_id: 3 team_id: 7 - type: 2 -- access_mode: 2 + type: 2 # issues + access_mode: 2 + +- id: 44 - org_id: null team_id: 8 - type: 2 -- access_mode: 1 + type: 2 # issues + access_mode: 2 + +- id: 45 - org_id: null team_id: 9 - type: 1 -- access_mode: 2 + type: 1 # code + access_mode: 1 + +- id: 46 - org_id: null team_id: 17 - type: 9 -- access_mode: 2 + type: 9 # package + access_mode: 2 + +- id: 47 - org_id: null team_id: 20 - type: 9 -- access_mode: 2 + type: 9 # package + access_mode: 2 + +- id: 48 - org_id: null team_id: 2 type: 8 + access_mode: 2 diff --git a/models/fixtures/team_user.yml b/models/fixtures/team_user.yml index 6caba4f2ffd23..feace5f2a531d 100644 --- a/models/fixtures/team_user.yml +++ b/models/fixtures/team_user.yml @@ -1,84 +1,125 @@ -- id: 1 +- + id: 1 org_id: 3 team_id: 1 uid: 2 -- id: 2 + +- + id: 2 org_id: 3 team_id: 2 uid: 2 -- id: 3 + +- + id: 3 org_id: 3 team_id: 2 uid: 4 -- id: 4 + +- + id: 4 org_id: 6 team_id: 3 uid: 5 -- id: 5 + +- + id: 5 org_id: 7 team_id: 4 uid: 5 -- id: 6 + +- + id: 6 org_id: 17 team_id: 5 uid: 15 -- id: 7 + +- + id: 7 org_id: 17 team_id: 5 uid: 18 -- id: 8 + +- + id: 8 org_id: 19 team_id: 6 uid: 20 -- id: 9 + +- + id: 9 org_id: 3 team_id: 7 uid: 15 -- id: 10 + +- + id: 10 org_id: 17 team_id: 8 uid: 2 -- id: 11 + +- + id: 11 org_id: 17 team_id: 9 uid: 20 -- id: 12 + +- + id: 12 org_id: 25 team_id: 10 uid: 24 -- id: 13 + +- + id: 13 org_id: 3 team_id: 12 uid: 28 -- id: 14 + +- + id: 14 org_id: 6 team_id: 13 uid: 28 -- id: 15 + +- + id: 15 org_id: 17 team_id: 9 uid: 29 -- id: 16 + +- + id: 16 org_id: 19 team_id: 6 uid: 31 -- id: 17 + +- + id: 17 org_id: 3 team_id: 14 uid: 2 -- id: 18 + +- + id: 18 org_id: 23 team_id: 17 uid: 5 -- id: 19 + +- + id: 19 org_id: 35 team_id: 18 uid: 1 -- id: 20 + +- + id: 20 org_id: 36 team_id: 19 uid: 1 -- id: 21 + +- + id: 21 org_id: 36 team_id: 20 uid: 5 diff --git a/models/fixtures/topic.yml b/models/fixtures/topic.yml index 462f7645377ac..055addf510e20 100644 --- a/models/fixtures/topic.yml +++ b/models/fixtures/topic.yml @@ -1,30 +1,29 @@ -- created_unix: null +- id: 1 name: golang repo_count: 2 - updated_unix: null -- created_unix: null + +- id: 2 name: database repo_count: 1 - updated_unix: null -- created_unix: null + +- id: 3 name: SQL repo_count: 1 - updated_unix: null -- created_unix: null + +- id: 4 name: graphql repo_count: 1 - updated_unix: null -- created_unix: null + +- id: 5 name: topicname1 repo_count: 1 - updated_unix: null -- created_unix: null + +- id: 6 name: topicname2 repo_count: 2 - updated_unix: null diff --git a/models/fixtures/tracked_time.yml b/models/fixtures/tracked_time.yml index 44d6efc12f19d..768af38d9e20f 100644 --- a/models/fixtures/tracked_time.yml +++ b/models/fixtures/tracked_time.yml @@ -1,54 +1,71 @@ -- created_unix: 946684800 - deleted: 0 +- id: 1 + user_id: 1 issue_id: 1 time: 400 - user_id: 1 -- created_unix: 946684801 - deleted: 0 + created_unix: 946684800 + deleted: false + +- id: 2 + user_id: 2 issue_id: 2 time: 3661 - user_id: 2 -- created_unix: 946684802 - deleted: 0 + created_unix: 946684801 + deleted: false + +- id: 3 + user_id: 2 issue_id: 2 time: 1 - user_id: 2 -- created_unix: 946684803 - deleted: 0 + created_unix: 946684802 + deleted: false + +- id: 4 + user_id: -1 issue_id: 4 time: 1 - user_id: -1 -- created_unix: 946684804 - deleted: 0 + created_unix: 946684803 + deleted: false + +- id: 5 + user_id: 2 issue_id: 5 time: 1 - user_id: 2 -- created_unix: 946684812 - deleted: 0 + created_unix: 946684804 + deleted: false + +- id: 6 + user_id: 1 issue_id: 2 time: 20 - user_id: 1 -- created_unix: 946684813 - deleted: 0 + created_unix: 946684812 + deleted: false + +- id: 7 + user_id: 2 issue_id: 4 time: 3 - user_id: 2 -- created_unix: 947688814 - deleted: 0 + created_unix: 946684813 + deleted: false + +- id: 8 + user_id: 1 issue_id: 4 time: 71 - user_id: 1 -- created_unix: 947688815 - deleted: 1 + created_unix: 947688814 + deleted: false + +- id: 9 + user_id: 2 issue_id: 2 time: 100000 - user_id: 2 + created_unix: 947688815 + deleted: true diff --git a/models/fixtures/two_factor.yml b/models/fixtures/two_factor.yml index b23db8f64f18a..d8cb85274b687 100644 --- a/models/fixtures/two_factor.yml +++ b/models/fixtures/two_factor.yml @@ -1,8 +1,9 @@ -- created_unix: 1564253724 +- id: 1 - last_used_passcode: null - scratch_hash: 068eb9b8746e0bcfe332fac4457693df1bda55800eb0f6894d14ebb736ae6a24e0fc8fc5333c19f57f81599788f0b8e51ec1 - scratch_salt: Qb5bq2DyR2 - secret: KlDporn6Ile4vFcKI8z7Z6sqK1Scj2Qp0ovtUzCZO6jVbRW2lAoT7UDxDPtrab8d2B9zKOocBRdBJnS8orsrUNrsyETY+jJHb79M82uZRioKbRUz15sfOpmJmEzkFeSg6S4LicUBQos= uid: 24 + secret: KlDporn6Ile4vFcKI8z7Z6sqK1Scj2Qp0ovtUzCZO6jVbRW2lAoT7UDxDPtrab8d2B9zKOocBRdBJnS8orsrUNrsyETY+jJHb79M82uZRioKbRUz15sfOpmJmEzkFeSg6S4LicUBQos= + scratch_salt: Qb5bq2DyR2 + scratch_hash: 068eb9b8746e0bcfe332fac4457693df1bda55800eb0f6894d14ebb736ae6a24e0fc8fc5333c19f57f81599788f0b8e51ec1 + last_used_passcode: + created_unix: 1564253724 updated_unix: 1564253724 diff --git a/models/fixtures/user.yml b/models/fixtures/user.yml index a006a90481bff..c7c5c024be89a 100644 --- a/models/fixtures/user.yml +++ b/models/fixtures/user.yml @@ -1,1656 +1,1334 @@ -- allow_create_organization: 1 - allow_git_hook: 0 - allow_import_local: 0 - avatar: avatar1 - avatar_email: user1@example.com - created_unix: null - description: null - diff_view_style: "" +# NOTE: all users should have a password of "password" + +- # NOTE: this user (id=1) is the admin + id: 1 + lower_name: user1 + name: user1 + full_name: User One email: user1@example.com + keep_email_private: false email_notifications_preference: enabled - full_name: User One - id: 1 - is_active: 1 - is_admin: 1 - is_restricted: 0 - keep_activity_private: 0 - keep_email_private: 0 - language: null - last_login_unix: null - last_repo_visibility: null - location: null - login_name: user1 + passwd: ZogKvWdyEx:password + passwd_hash_algo: dummy + must_change_password: false login_source: 0 - login_type: null - lower_name: user1 + login_name: user1 + type: 0 + salt: ZogKvWdyEx max_repo_creation: -1 - must_change_password: 0 - name: user1 + is_active: true + is_admin: true + is_restricted: false + allow_git_hook: false + allow_import_local: false + allow_create_organization: true + prohibit_login: false + avatar: avatar1 + avatar_email: user1@example.com + use_custom_avatar: false num_followers: 0 num_following: 0 - num_members: 0 - num_repos: 0 num_stars: 0 + num_repos: 0 num_teams: 0 - passwd: ZogKvWdyEx:password - passwd_hash_algo: dummy - prohibit_login: 0 - rands: null - repo_admin_change_team_access: 0 - salt: ZogKvWdyEx - theme: "" - type: 0 - updated_unix: null - use_custom_avatar: 0 + num_members: 0 visibility: 0 - website: null -- allow_create_organization: 1 - allow_git_hook: 0 - allow_import_local: 0 - avatar: avatar2 - avatar_email: user2@example.com - created_unix: null - description: null - diff_view_style: "" + repo_admin_change_team_access: false + theme: "" + keep_activity_private: false + +- + id: 2 + lower_name: user2 + name: user2 + full_name: ' < Ur Tw >< ' email: user2@example.com + keep_email_private: true email_notifications_preference: enabled - full_name: ' < Ur Tw >< ' - id: 2 - is_active: 1 - is_admin: 0 - is_restricted: 0 - keep_activity_private: 0 - keep_email_private: 1 - language: null - last_login_unix: null - last_repo_visibility: null - location: null - login_name: user2 + passwd: ZogKvWdyEx:password + passwd_hash_algo: dummy + must_change_password: false login_source: 0 - login_type: null - lower_name: user2 + login_name: user2 + type: 0 + salt: ZogKvWdyEx max_repo_creation: -1 - must_change_password: 0 - name: user2 + is_active: true + is_admin: false + is_restricted: false + allow_git_hook: false + allow_import_local: false + allow_create_organization: true + prohibit_login: false + avatar: avatar2 + avatar_email: user2@example.com + use_custom_avatar: false num_followers: 2 num_following: 1 - num_members: 0 - num_repos: 14 num_stars: 2 + num_repos: 14 num_teams: 0 - passwd: ZogKvWdyEx:password - passwd_hash_algo: dummy - prohibit_login: 0 - rands: null - repo_admin_change_team_access: 0 - salt: ZogKvWdyEx - theme: "" - type: 0 - updated_unix: null - use_custom_avatar: 0 + num_members: 0 visibility: 0 - website: null -- allow_create_organization: 1 - allow_git_hook: 0 - allow_import_local: 0 - avatar: avatar3 - avatar_email: user3@example.com - created_unix: null - description: null - diff_view_style: "" + repo_admin_change_team_access: false + theme: "" + keep_activity_private: false + +- + id: 3 + lower_name: user3 + name: user3 + full_name: ' <<<< >> >> > >> > >>> >> ' email: user3@example.com + keep_email_private: false email_notifications_preference: onmention - full_name: ' <<<< >> >> > >> > >>> >> ' - id: 3 - is_active: 0 - is_admin: 0 - is_restricted: 0 - keep_activity_private: 0 - keep_email_private: 0 - language: null - last_login_unix: null - last_repo_visibility: null - location: null - login_name: user3 + passwd: ZogKvWdyEx:password + passwd_hash_algo: dummy + must_change_password: false login_source: 0 - login_type: null - lower_name: user3 + login_name: user3 + type: 1 + salt: ZogKvWdyEx max_repo_creation: -1 - must_change_password: 0 - name: user3 + is_active: false + is_admin: false + is_restricted: false + allow_git_hook: false + allow_import_local: false + allow_create_organization: true + prohibit_login: false + avatar: avatar3 + avatar_email: user3@example.com + use_custom_avatar: false num_followers: 0 num_following: 0 - num_members: 3 - num_repos: 3 num_stars: 0 + num_repos: 3 num_teams: 5 - passwd: ZogKvWdyEx:password - passwd_hash_algo: dummy - prohibit_login: 0 - rands: null - repo_admin_change_team_access: 0 - salt: ZogKvWdyEx - theme: "" - type: 1 - updated_unix: null - use_custom_avatar: 0 + num_members: 3 visibility: 0 - website: null -- allow_create_organization: 1 - allow_git_hook: 0 - allow_import_local: 0 - avatar: avatar4 - avatar_email: user4@example.com - created_unix: null - description: null - diff_view_style: "" + repo_admin_change_team_access: false + theme: "" + keep_activity_private: false + +- + id: 4 + lower_name: user4 + name: user4 + full_name: ' ' email: user4@example.com + keep_email_private: false email_notifications_preference: onmention - full_name: ' ' - id: 4 - is_active: 1 - is_admin: 0 - is_restricted: 0 - keep_activity_private: 0 - keep_email_private: 0 - language: null - last_login_unix: null - last_repo_visibility: null - location: null - login_name: user4 + passwd: ZogKvWdyEx:password + passwd_hash_algo: dummy + must_change_password: false login_source: 0 - login_type: null - lower_name: user4 + login_name: user4 + type: 0 + salt: ZogKvWdyEx max_repo_creation: -1 - must_change_password: 0 - name: user4 + is_active: true + is_admin: false + is_restricted: false + allow_git_hook: false + allow_import_local: false + allow_create_organization: true + prohibit_login: false + avatar: avatar4 + avatar_email: user4@example.com + use_custom_avatar: false num_followers: 0 num_following: 1 - num_members: 0 - num_repos: 0 num_stars: 0 + num_repos: 0 num_teams: 0 - passwd: ZogKvWdyEx:password - passwd_hash_algo: dummy - prohibit_login: 0 - rands: null - repo_admin_change_team_access: 0 - salt: ZogKvWdyEx - theme: "" - type: 0 - updated_unix: null - use_custom_avatar: 0 + num_members: 0 visibility: 0 - website: null -- allow_create_organization: 0 - allow_git_hook: 0 - allow_import_local: 0 - avatar: avatar5 - avatar_email: user5@example.com - created_unix: null - description: null - diff_view_style: "" + repo_admin_change_team_access: false + theme: "" + keep_activity_private: false + +- + id: 5 + lower_name: user5 + name: user5 + full_name: User Five email: user5@example.com + keep_email_private: false email_notifications_preference: enabled - full_name: User Five - id: 5 - is_active: 1 - is_admin: 0 - is_restricted: 0 - keep_activity_private: 0 - keep_email_private: 0 - language: null - last_login_unix: null - last_repo_visibility: null - location: null - login_name: user5 + passwd: ZogKvWdyEx:password + passwd_hash_algo: dummy + must_change_password: false login_source: 0 - login_type: null - lower_name: user5 + login_name: user5 + type: 0 + salt: ZogKvWdyEx max_repo_creation: -1 - must_change_password: 0 - name: user5 + is_active: true + is_admin: false + is_restricted: false + allow_git_hook: false + allow_import_local: false + allow_create_organization: false + prohibit_login: false + avatar: avatar5 + avatar_email: user5@example.com + use_custom_avatar: false num_followers: 0 num_following: 0 - num_members: 0 - num_repos: 1 num_stars: 0 + num_repos: 1 num_teams: 0 - passwd: ZogKvWdyEx:password - passwd_hash_algo: dummy - prohibit_login: 0 - rands: null - repo_admin_change_team_access: 0 - salt: ZogKvWdyEx - theme: "" - type: 0 - updated_unix: null - use_custom_avatar: 0 + num_members: 0 visibility: 0 - website: null -- allow_create_organization: 1 - allow_git_hook: 0 - allow_import_local: 0 - avatar: avatar6 - avatar_email: user6@example.com - created_unix: null - description: null - diff_view_style: "" + repo_admin_change_team_access: false + theme: "" + keep_activity_private: false + +- + id: 6 + lower_name: user6 + name: user6 + full_name: User Six email: user6@example.com + keep_email_private: false email_notifications_preference: enabled - full_name: User Six - id: 6 - is_active: 0 - is_admin: 0 - is_restricted: 0 - keep_activity_private: 0 - keep_email_private: 0 - language: null - last_login_unix: null - last_repo_visibility: null - location: null - login_name: user6 + passwd: ZogKvWdyEx:password + passwd_hash_algo: dummy + must_change_password: false login_source: 0 - login_type: null - lower_name: user6 + login_name: user6 + type: 1 + salt: ZogKvWdyEx max_repo_creation: -1 - must_change_password: 0 - name: user6 + is_active: false + is_admin: false + is_restricted: false + allow_git_hook: false + allow_import_local: false + allow_create_organization: true + prohibit_login: false + avatar: avatar6 + avatar_email: user6@example.com + use_custom_avatar: false num_followers: 0 num_following: 0 - num_members: 2 - num_repos: 0 num_stars: 0 + num_repos: 0 num_teams: 2 - passwd: ZogKvWdyEx:password - passwd_hash_algo: dummy - prohibit_login: 0 - rands: null - repo_admin_change_team_access: 0 - salt: ZogKvWdyEx - theme: "" - type: 1 - updated_unix: null - use_custom_avatar: 0 + num_members: 2 visibility: 0 - website: null -- allow_create_organization: 1 - allow_git_hook: 0 - allow_import_local: 0 - avatar: avatar7 - avatar_email: user7@example.com - created_unix: null - description: null - diff_view_style: "" + repo_admin_change_team_access: false + theme: "" + keep_activity_private: false + +- + id: 7 + lower_name: user7 + name: user7 + full_name: User Seven email: user7@example.com + keep_email_private: false email_notifications_preference: disabled - full_name: User Seven - id: 7 - is_active: 0 - is_admin: 0 - is_restricted: 0 - keep_activity_private: 0 - keep_email_private: 0 - language: null - last_login_unix: null - last_repo_visibility: null - location: null - login_name: user7 + passwd: ZogKvWdyEx:password + passwd_hash_algo: dummy + must_change_password: false login_source: 0 - login_type: null - lower_name: user7 + login_name: user7 + type: 1 + salt: ZogKvWdyEx max_repo_creation: -1 - must_change_password: 0 - name: user7 + is_active: false + is_admin: false + is_restricted: false + allow_git_hook: false + allow_import_local: false + allow_create_organization: true + prohibit_login: false + avatar: avatar7 + avatar_email: user7@example.com + use_custom_avatar: false num_followers: 0 num_following: 0 - num_members: 1 - num_repos: 0 num_stars: 0 + num_repos: 0 num_teams: 1 - passwd: ZogKvWdyEx:password - passwd_hash_algo: dummy - prohibit_login: 0 - rands: null - repo_admin_change_team_access: 0 - salt: ZogKvWdyEx - theme: "" - type: 1 - updated_unix: null - use_custom_avatar: 0 + num_members: 1 visibility: 0 - website: null -- allow_create_organization: 1 - allow_git_hook: 0 - allow_import_local: 0 - avatar: avatar8 - avatar_email: user8@example.com - created_unix: null - description: null - diff_view_style: "" + repo_admin_change_team_access: false + theme: "" + keep_activity_private: false + +- + id: 8 + lower_name: user8 + name: user8 + full_name: User Eight email: user8@example.com + keep_email_private: false email_notifications_preference: enabled - full_name: User Eight - id: 8 - is_active: 1 - is_admin: 0 - is_restricted: 0 - keep_activity_private: 0 - keep_email_private: 0 - language: null - last_login_unix: null - last_repo_visibility: null - location: null - login_name: user8 + passwd: ZogKvWdyEx:password + passwd_hash_algo: dummy + must_change_password: false login_source: 0 - login_type: null - lower_name: user8 + login_name: user8 + type: 0 + salt: ZogKvWdyEx max_repo_creation: -1 - must_change_password: 0 - name: user8 + is_active: true + is_admin: false + is_restricted: false + allow_git_hook: false + allow_import_local: false + allow_create_organization: true + prohibit_login: false + avatar: avatar8 + avatar_email: user8@example.com + use_custom_avatar: false num_followers: 1 num_following: 1 - num_members: 0 - num_repos: 0 num_stars: 0 + num_repos: 0 num_teams: 0 - passwd: ZogKvWdyEx:password - passwd_hash_algo: dummy - prohibit_login: 0 - rands: null - repo_admin_change_team_access: 0 - salt: ZogKvWdyEx - theme: "" - type: 0 - updated_unix: null - use_custom_avatar: 0 + num_members: 0 visibility: 0 - website: null -- allow_create_organization: 1 - allow_git_hook: 0 - allow_import_local: 0 - avatar: avatar9 - avatar_email: user9@example.com - created_unix: null - description: null - diff_view_style: "" + repo_admin_change_team_access: false + theme: "" + keep_activity_private: false + +- + id: 9 + lower_name: user9 + name: user9 + full_name: User Nine email: user9@example.com + keep_email_private: false email_notifications_preference: onmention - full_name: User Nine - id: 9 - is_active: 0 - is_admin: 0 - is_restricted: 0 - keep_activity_private: 0 - keep_email_private: 0 - language: null - last_login_unix: null - last_repo_visibility: null - location: null - login_name: user9 + passwd: ZogKvWdyEx:password + passwd_hash_algo: dummy + must_change_password: false login_source: 0 - login_type: null - lower_name: user9 + login_name: user9 + type: 0 + salt: ZogKvWdyEx max_repo_creation: -1 - must_change_password: 0 - name: user9 + is_active: false + is_admin: false + is_restricted: false + allow_git_hook: false + allow_import_local: false + allow_create_organization: true + prohibit_login: false + avatar: avatar9 + avatar_email: user9@example.com + use_custom_avatar: false num_followers: 0 num_following: 0 - num_members: 0 - num_repos: 0 num_stars: 0 + num_repos: 0 num_teams: 0 + num_members: 0 + visibility: 0 + repo_admin_change_team_access: false + theme: "" + keep_activity_private: false + +- + id: 10 + lower_name: user10 + name: user10 + full_name: User Ten + email: user10@example.com + keep_email_private: false + email_notifications_preference: enabled passwd: ZogKvWdyEx:password passwd_hash_algo: dummy - prohibit_login: 0 - rands: null - repo_admin_change_team_access: 0 - salt: ZogKvWdyEx - theme: "" + must_change_password: false + login_source: 0 + login_name: user10 type: 0 - updated_unix: null - use_custom_avatar: 0 - visibility: 0 - website: null -- allow_create_organization: 1 - allow_git_hook: 0 - allow_import_local: 0 + salt: ZogKvWdyEx + max_repo_creation: -1 + is_active: true + is_admin: false + is_restricted: false + allow_git_hook: false + allow_import_local: false + allow_create_organization: true + prohibit_login: false avatar: avatar10 avatar_email: user10@example.com - created_unix: null - description: null - diff_view_style: "" - email: user10@example.com - email_notifications_preference: enabled - full_name: User Ten - id: 10 - is_active: 1 - is_admin: 0 - is_restricted: 0 - keep_activity_private: 0 - keep_email_private: 0 - language: null - last_login_unix: null - last_repo_visibility: null - location: null - login_name: user10 - login_source: 0 - login_type: null - lower_name: user10 - max_repo_creation: -1 - must_change_password: 0 - name: user10 + use_custom_avatar: false num_followers: 0 num_following: 0 - num_members: 0 - num_repos: 3 num_stars: 0 + num_repos: 3 num_teams: 0 - passwd: ZogKvWdyEx:password - passwd_hash_algo: dummy - prohibit_login: 0 - rands: null - repo_admin_change_team_access: 0 - salt: ZogKvWdyEx - theme: "" - type: 0 - updated_unix: null - use_custom_avatar: 0 + num_members: 0 visibility: 0 - website: null -- allow_create_organization: 1 - allow_git_hook: 0 - allow_import_local: 0 - avatar: avatar11 - avatar_email: user11@example.com - created_unix: null - description: null - diff_view_style: "" + repo_admin_change_team_access: false + theme: "" + keep_activity_private: false + +- + id: 11 + lower_name: user11 + name: user11 + full_name: User Eleven email: user11@example.com + keep_email_private: false email_notifications_preference: enabled - full_name: User Eleven - id: 11 - is_active: 1 - is_admin: 0 - is_restricted: 0 - keep_activity_private: 0 - keep_email_private: 0 - language: null - last_login_unix: null - last_repo_visibility: null - location: null - login_name: user11 + passwd: ZogKvWdyEx:password + passwd_hash_algo: dummy + must_change_password: false login_source: 0 - login_type: null - lower_name: user11 + login_name: user11 + type: 0 + salt: ZogKvWdyEx max_repo_creation: -1 - must_change_password: 0 - name: user11 + is_active: true + is_admin: false + is_restricted: false + allow_git_hook: false + allow_import_local: false + allow_create_organization: true + prohibit_login: false + avatar: avatar11 + avatar_email: user11@example.com + use_custom_avatar: false num_followers: 0 num_following: 0 - num_members: 0 - num_repos: 1 num_stars: 0 + num_repos: 1 num_teams: 0 - passwd: ZogKvWdyEx:password - passwd_hash_algo: dummy - prohibit_login: 0 - rands: null - repo_admin_change_team_access: 0 - salt: ZogKvWdyEx - theme: "" - type: 0 - updated_unix: null - use_custom_avatar: 0 + num_members: 0 visibility: 0 - website: null -- allow_create_organization: 1 - allow_git_hook: 0 - allow_import_local: 0 - avatar: avatar12 - avatar_email: user12@example.com - created_unix: null - description: null - diff_view_style: "" + repo_admin_change_team_access: false + theme: "" + keep_activity_private: false + +- + id: 12 + lower_name: user12 + name: user12 + full_name: User 12 email: user12@example.com + keep_email_private: false email_notifications_preference: enabled - full_name: User 12 - id: 12 - is_active: 1 - is_admin: 0 - is_restricted: 0 - keep_activity_private: 0 - keep_email_private: 0 - language: null - last_login_unix: null - last_repo_visibility: null - location: null - login_name: user12 + passwd: ZogKvWdyEx:password + passwd_hash_algo: dummy + must_change_password: false login_source: 0 - login_type: null - lower_name: user12 + login_name: user12 + type: 0 + salt: ZogKvWdyEx max_repo_creation: -1 - must_change_password: 0 - name: user12 + is_active: true + is_admin: false + is_restricted: false + allow_git_hook: false + allow_import_local: false + allow_create_organization: true + prohibit_login: false + avatar: avatar12 + avatar_email: user12@example.com + use_custom_avatar: false num_followers: 0 num_following: 0 - num_members: 0 - num_repos: 1 num_stars: 0 + num_repos: 1 num_teams: 0 - passwd: ZogKvWdyEx:password - passwd_hash_algo: dummy - prohibit_login: 0 - rands: null - repo_admin_change_team_access: 0 - salt: ZogKvWdyEx - theme: "" - type: 0 - updated_unix: null - use_custom_avatar: 0 + num_members: 0 visibility: 0 - website: null -- allow_create_organization: 1 - allow_git_hook: 0 - allow_import_local: 0 - avatar: avatar13 - avatar_email: user13@example.com - created_unix: null - description: null - diff_view_style: "" + repo_admin_change_team_access: false + theme: "" + keep_activity_private: false + +- + id: 13 + lower_name: user13 + name: user13 + full_name: User 13 email: user13@example.com + keep_email_private: false email_notifications_preference: enabled - full_name: User 13 - id: 13 - is_active: 1 - is_admin: 0 - is_restricted: 0 - keep_activity_private: 0 - keep_email_private: 0 - language: null - last_login_unix: null - last_repo_visibility: null - location: null - login_name: user13 + passwd: ZogKvWdyEx:password + passwd_hash_algo: dummy + must_change_password: false login_source: 0 - login_type: null - lower_name: user13 + login_name: user13 + type: 0 + salt: ZogKvWdyEx max_repo_creation: -1 - must_change_password: 0 - name: user13 + is_active: true + is_admin: false + is_restricted: false + allow_git_hook: false + allow_import_local: false + allow_create_organization: true + prohibit_login: false + avatar: avatar13 + avatar_email: user13@example.com + use_custom_avatar: false num_followers: 0 num_following: 0 - num_members: 0 - num_repos: 1 num_stars: 0 + num_repos: 1 num_teams: 0 - passwd: ZogKvWdyEx:password - passwd_hash_algo: dummy - prohibit_login: 0 - rands: null - repo_admin_change_team_access: 0 - salt: ZogKvWdyEx - theme: "" - type: 0 - updated_unix: null - use_custom_avatar: 0 + num_members: 0 visibility: 0 - website: null -- allow_create_organization: 1 - allow_git_hook: 0 - allow_import_local: 0 - avatar: avatar14 - avatar_email: user13@example.com - created_unix: null - description: null - diff_view_style: "" + repo_admin_change_team_access: false + theme: "" + keep_activity_private: false + +- + id: 14 + lower_name: user14 + name: user14 + full_name: User 14 email: user14@example.com + keep_email_private: false email_notifications_preference: enabled - full_name: User 14 - id: 14 - is_active: 1 - is_admin: 0 - is_restricted: 0 - keep_activity_private: 0 - keep_email_private: 0 - language: null - last_login_unix: null - last_repo_visibility: null - location: null - login_name: user14 + passwd: ZogKvWdyEx:password + passwd_hash_algo: dummy + must_change_password: false login_source: 0 - login_type: null - lower_name: user14 + login_name: user14 + type: 0 + salt: ZogKvWdyEx max_repo_creation: -1 - must_change_password: 0 - name: user14 + is_active: true + is_admin: false + is_restricted: false + allow_git_hook: false + allow_import_local: false + allow_create_organization: true + prohibit_login: false + avatar: avatar14 + avatar_email: user13@example.com + use_custom_avatar: false num_followers: 0 num_following: 0 - num_members: 0 - num_repos: 3 num_stars: 0 + num_repos: 3 num_teams: 0 - passwd: ZogKvWdyEx:password - passwd_hash_algo: dummy - prohibit_login: 0 - rands: null - repo_admin_change_team_access: 0 - salt: ZogKvWdyEx - theme: "" - type: 0 - updated_unix: null - use_custom_avatar: 0 + num_members: 0 visibility: 0 - website: null -- allow_create_organization: 1 - allow_git_hook: 0 - allow_import_local: 0 - avatar: avatar15 - avatar_email: user15@example.com - created_unix: null - description: null - diff_view_style: "" + repo_admin_change_team_access: false + theme: "" + keep_activity_private: false + +- + id: 15 + lower_name: user15 + name: user15 + full_name: User 15 email: user15@example.com + keep_email_private: false email_notifications_preference: enabled - full_name: User 15 - id: 15 - is_active: 1 - is_admin: 0 - is_restricted: 0 - keep_activity_private: 0 - keep_email_private: 0 - language: null - last_login_unix: null - last_repo_visibility: null - location: null - login_name: user15 + passwd: ZogKvWdyEx:password + passwd_hash_algo: dummy + must_change_password: false login_source: 0 - login_type: null - lower_name: user15 + login_name: user15 + type: 0 + salt: ZogKvWdyEx max_repo_creation: -1 - must_change_password: 0 - name: user15 + is_active: true + is_admin: false + is_restricted: false + allow_git_hook: false + allow_import_local: false + allow_create_organization: true + prohibit_login: false + avatar: avatar15 + avatar_email: user15@example.com + use_custom_avatar: false num_followers: 0 num_following: 0 - num_members: 0 - num_repos: 4 num_stars: 0 + num_repos: 4 num_teams: 0 - passwd: ZogKvWdyEx:password - passwd_hash_algo: dummy - prohibit_login: 0 - rands: null - repo_admin_change_team_access: 0 - salt: ZogKvWdyEx - theme: "" - type: 0 - updated_unix: null - use_custom_avatar: 0 + num_members: 0 visibility: 0 - website: null -- allow_create_organization: 1 - allow_git_hook: 0 - allow_import_local: 0 - avatar: avatar16 - avatar_email: user16@example.com - created_unix: null - description: null - diff_view_style: "" + repo_admin_change_team_access: false + theme: "" + keep_activity_private: false + +- + id: 16 + lower_name: user16 + name: user16 + full_name: User 16 email: user16@example.com + keep_email_private: false email_notifications_preference: enabled - full_name: User 16 - id: 16 - is_active: 1 - is_admin: 0 - is_restricted: 0 - keep_activity_private: 0 - keep_email_private: 0 - language: null - last_login_unix: null - last_repo_visibility: null - location: null - login_name: user16 + passwd: ZogKvWdyEx:password + passwd_hash_algo: dummy + must_change_password: false login_source: 0 - login_type: null - lower_name: user16 + login_name: user16 + type: 0 + salt: ZogKvWdyEx max_repo_creation: -1 - must_change_password: 0 - name: user16 + is_active: true + is_admin: false + is_restricted: false + allow_git_hook: false + allow_import_local: false + allow_create_organization: true + prohibit_login: false + avatar: avatar16 + avatar_email: user16@example.com + use_custom_avatar: false num_followers: 0 num_following: 0 - num_members: 0 - num_repos: 2 num_stars: 0 + num_repos: 2 num_teams: 0 - passwd: ZogKvWdyEx:password - passwd_hash_algo: dummy - prohibit_login: 0 - rands: null - repo_admin_change_team_access: 0 - salt: ZogKvWdyEx - theme: "" - type: 0 - updated_unix: null - use_custom_avatar: 0 + num_members: 0 visibility: 0 - website: null -- allow_create_organization: 1 - allow_git_hook: 0 - allow_import_local: 0 - avatar: avatar17 - avatar_email: user17@example.com - created_unix: null - description: null - diff_view_style: "" + repo_admin_change_team_access: false + theme: "" + keep_activity_private: false + +- + id: 17 + lower_name: user17 + name: user17 + full_name: User 17 email: user17@example.com + keep_email_private: false email_notifications_preference: enabled - full_name: User 17 - id: 17 - is_active: 1 - is_admin: 0 - is_restricted: 0 - keep_activity_private: 0 - keep_email_private: 0 - language: null - last_login_unix: null - last_repo_visibility: null - location: null - login_name: user17 + passwd: ZogKvWdyEx:password + passwd_hash_algo: dummy + must_change_password: false login_source: 0 - login_type: null - lower_name: user17 + login_name: user17 + type: 1 + salt: ZogKvWdyEx max_repo_creation: -1 - must_change_password: 0 - name: user17 + is_active: true + is_admin: false + is_restricted: false + allow_git_hook: false + allow_import_local: false + allow_create_organization: true + prohibit_login: false + avatar: avatar17 + avatar_email: user17@example.com + use_custom_avatar: false num_followers: 0 num_following: 0 - num_members: 4 - num_repos: 2 num_stars: 0 + num_repos: 2 num_teams: 3 - passwd: ZogKvWdyEx:password - passwd_hash_algo: dummy - prohibit_login: 0 - rands: null - repo_admin_change_team_access: 0 - salt: ZogKvWdyEx - theme: "" - type: 1 - updated_unix: null - use_custom_avatar: 0 + num_members: 4 visibility: 0 - website: null -- allow_create_organization: 1 - allow_git_hook: 0 - allow_import_local: 0 - avatar: avatar18 - avatar_email: user18@example.com - created_unix: null - description: null - diff_view_style: "" + repo_admin_change_team_access: false + theme: "" + keep_activity_private: false + +- + id: 18 + lower_name: user18 + name: user18 + full_name: User 18 email: user18@example.com + keep_email_private: false email_notifications_preference: enabled - full_name: User 18 - id: 18 - is_active: 1 - is_admin: 0 - is_restricted: 0 - keep_activity_private: 0 - keep_email_private: 0 - language: null - last_login_unix: null - last_repo_visibility: null - location: null - login_name: user18 + passwd: ZogKvWdyEx:password + passwd_hash_algo: dummy + must_change_password: false login_source: 0 - login_type: null - lower_name: user18 + login_name: user18 + type: 0 + salt: ZogKvWdyEx max_repo_creation: -1 - must_change_password: 0 - name: user18 + is_active: true + is_admin: false + is_restricted: false + allow_git_hook: false + allow_import_local: false + allow_create_organization: true + prohibit_login: false + avatar: avatar18 + avatar_email: user18@example.com + use_custom_avatar: false num_followers: 0 num_following: 0 - num_members: 0 - num_repos: 0 num_stars: 0 + num_repos: 0 num_teams: 0 - passwd: ZogKvWdyEx:password - passwd_hash_algo: dummy - prohibit_login: 0 - rands: null - repo_admin_change_team_access: 0 - salt: ZogKvWdyEx - theme: "" - type: 0 - updated_unix: null - use_custom_avatar: 0 + num_members: 0 visibility: 0 - website: null -- allow_create_organization: 1 - allow_git_hook: 0 - allow_import_local: 0 - avatar: avatar19 - avatar_email: user19@example.com - created_unix: null - description: null - diff_view_style: "" + repo_admin_change_team_access: false + theme: "" + keep_activity_private: false + +- + id: 19 + lower_name: user19 + name: user19 + full_name: User 19 email: user19@example.com + keep_email_private: false email_notifications_preference: enabled - full_name: User 19 - id: 19 - is_active: 1 - is_admin: 0 - is_restricted: 0 - keep_activity_private: 0 - keep_email_private: 0 - language: null - last_login_unix: null - last_repo_visibility: null - location: null - login_name: user19 + passwd: ZogKvWdyEx:password + passwd_hash_algo: dummy + must_change_password: false login_source: 0 - login_type: null - lower_name: user19 + login_name: user19 + type: 1 + salt: ZogKvWdyEx max_repo_creation: -1 - must_change_password: 0 - name: user19 + is_active: true + is_admin: false + is_restricted: false + allow_git_hook: false + allow_import_local: false + allow_create_organization: true + prohibit_login: false + avatar: avatar19 + avatar_email: user19@example.com + use_custom_avatar: false num_followers: 0 num_following: 0 - num_members: 2 - num_repos: 2 num_stars: 0 + num_repos: 2 num_teams: 1 - passwd: ZogKvWdyEx:password - passwd_hash_algo: dummy - prohibit_login: 0 - rands: null - repo_admin_change_team_access: 0 - salt: ZogKvWdyEx - theme: "" - type: 1 - updated_unix: null - use_custom_avatar: 0 + num_members: 2 visibility: 0 - website: null -- allow_create_organization: 1 - allow_git_hook: 0 - allow_import_local: 0 - avatar: avatar20 - avatar_email: user20@example.com - created_unix: null - description: null - diff_view_style: "" + repo_admin_change_team_access: false + theme: "" + keep_activity_private: false + +- + id: 20 + lower_name: user20 + name: user20 + full_name: User 20 email: user20@example.com + keep_email_private: false email_notifications_preference: enabled - full_name: User 20 - id: 20 - is_active: 1 - is_admin: 0 - is_restricted: 0 - keep_activity_private: 0 - keep_email_private: 0 - language: null - last_login_unix: null - last_repo_visibility: null - location: null - login_name: user20 + passwd: ZogKvWdyEx:password + passwd_hash_algo: dummy + must_change_password: false login_source: 0 - login_type: null - lower_name: user20 + login_name: user20 + type: 0 + salt: ZogKvWdyEx max_repo_creation: -1 - must_change_password: 0 - name: user20 + is_active: true + is_admin: false + is_restricted: false + allow_git_hook: false + allow_import_local: false + allow_create_organization: true + prohibit_login: false + avatar: avatar20 + avatar_email: user20@example.com + use_custom_avatar: false num_followers: 0 num_following: 0 - num_members: 0 - num_repos: 4 num_stars: 0 + num_repos: 4 num_teams: 0 - passwd: ZogKvWdyEx:password - passwd_hash_algo: dummy - prohibit_login: 0 - rands: null - repo_admin_change_team_access: 0 - salt: ZogKvWdyEx - theme: "" - type: 0 - updated_unix: null - use_custom_avatar: 0 + num_members: 0 visibility: 0 - website: null -- allow_create_organization: 1 - allow_git_hook: 0 - allow_import_local: 0 - avatar: avatar21 - avatar_email: user21@example.com - created_unix: null - description: null - diff_view_style: "" + repo_admin_change_team_access: false + theme: "" + keep_activity_private: false + +- + id: 21 + lower_name: user21 + name: user21 + full_name: User 21 email: user21@example.com + keep_email_private: false email_notifications_preference: enabled - full_name: User 21 - id: 21 - is_active: 1 - is_admin: 0 - is_restricted: 0 - keep_activity_private: 0 - keep_email_private: 0 - language: null - last_login_unix: null - last_repo_visibility: null - location: null - login_name: user21 + passwd: ZogKvWdyEx:password + passwd_hash_algo: dummy + must_change_password: false login_source: 0 - login_type: null - lower_name: user21 + login_name: user21 + type: 0 + salt: ZogKvWdyEx max_repo_creation: -1 - must_change_password: 0 - name: user21 + is_active: true + is_admin: false + is_restricted: false + allow_git_hook: false + allow_import_local: false + allow_create_organization: true + prohibit_login: false + avatar: avatar21 + avatar_email: user21@example.com + use_custom_avatar: false num_followers: 0 num_following: 0 - num_members: 0 - num_repos: 2 num_stars: 0 + num_repos: 2 num_teams: 0 - passwd: ZogKvWdyEx:password - passwd_hash_algo: dummy - prohibit_login: 0 - rands: null - repo_admin_change_team_access: 0 - salt: ZogKvWdyEx - theme: "" - type: 0 - updated_unix: null - use_custom_avatar: 0 + num_members: 0 visibility: 0 - website: null -- allow_create_organization: 1 - allow_git_hook: 0 - allow_import_local: 0 - avatar: avatar22 - avatar_email: limited_org@example.com - created_unix: null - description: null - diff_view_style: "" + repo_admin_change_team_access: false + theme: "" + keep_activity_private: false + +- + id: 22 + lower_name: limited_org + name: limited_org + full_name: Limited Org email: limited_org@example.com + keep_email_private: false email_notifications_preference: enabled - full_name: Limited Org - id: 22 - is_active: 1 - is_admin: 0 - is_restricted: 0 - keep_activity_private: 0 - keep_email_private: 0 - language: null - last_login_unix: null - last_repo_visibility: null - location: null - login_name: limited_org + passwd: ZogKvWdyEx:password + passwd_hash_algo: dummy + must_change_password: false login_source: 0 - login_type: null - lower_name: limited_org + login_name: limited_org + type: 1 + salt: ZogKvWdyEx max_repo_creation: -1 - must_change_password: 0 - name: limited_org + is_active: true + is_admin: false + is_restricted: false + allow_git_hook: false + allow_import_local: false + allow_create_organization: true + prohibit_login: false + avatar: avatar22 + avatar_email: limited_org@example.com + use_custom_avatar: false num_followers: 0 num_following: 0 - num_members: 0 - num_repos: 2 num_stars: 0 + num_repos: 2 num_teams: 1 - passwd: ZogKvWdyEx:password - passwd_hash_algo: dummy - prohibit_login: 0 - rands: null - repo_admin_change_team_access: 0 - salt: ZogKvWdyEx - theme: "" - type: 1 - updated_unix: null - use_custom_avatar: 0 + num_members: 0 visibility: 1 - website: null -- allow_create_organization: 1 - allow_git_hook: 0 - allow_import_local: 0 - avatar: avatar23 - avatar_email: privated_org@example.com - created_unix: null - description: null - diff_view_style: "" + repo_admin_change_team_access: false + theme: "" + keep_activity_private: false + +- + id: 23 + lower_name: privated_org + name: privated_org + full_name: Privated Org email: privated_org@example.com + keep_email_private: false email_notifications_preference: enabled - full_name: Privated Org - id: 23 - is_active: 1 - is_admin: 0 - is_restricted: 0 - keep_activity_private: 0 - keep_email_private: 0 - language: null - last_login_unix: null - last_repo_visibility: null - location: null - login_name: privated_org + passwd: ZogKvWdyEx:password + passwd_hash_algo: dummy + must_change_password: false login_source: 0 - login_type: null - lower_name: privated_org + login_name: privated_org + type: 1 + salt: ZogKvWdyEx max_repo_creation: -1 - must_change_password: 0 - name: privated_org + is_active: true + is_admin: false + is_restricted: false + allow_git_hook: false + allow_import_local: false + allow_create_organization: true + prohibit_login: false + avatar: avatar23 + avatar_email: privated_org@example.com + use_custom_avatar: false num_followers: 0 num_following: 0 - num_members: 1 - num_repos: 2 num_stars: 0 + num_repos: 2 num_teams: 2 - passwd: ZogKvWdyEx:password - passwd_hash_algo: dummy - prohibit_login: 0 - rands: null - repo_admin_change_team_access: 0 - salt: ZogKvWdyEx - theme: "" - type: 1 - updated_unix: null - use_custom_avatar: 0 + num_members: 1 visibility: 2 - website: null -- allow_create_organization: 1 - allow_git_hook: 0 - allow_import_local: 0 - avatar: avatar24 - avatar_email: user24@example.com - created_unix: null - description: null - diff_view_style: "" + repo_admin_change_team_access: false + theme: "" + keep_activity_private: false + +- + id: 24 + lower_name: user24 + name: user24 + full_name: user24 email: user24@example.com + keep_email_private: true email_notifications_preference: enabled - full_name: user24 - id: 24 - is_active: 1 - is_admin: 0 - is_restricted: 0 - keep_activity_private: 0 - keep_email_private: 1 - language: null - last_login_unix: null - last_repo_visibility: null - location: null - login_name: user24 + passwd: ZogKvWdyEx:password + passwd_hash_algo: dummy + must_change_password: false login_source: 0 - login_type: null - lower_name: user24 + login_name: user24 + type: 0 + salt: ZogKvWdyEx max_repo_creation: -1 - must_change_password: 0 - name: user24 + is_active: true + is_admin: false + is_restricted: false + allow_git_hook: false + allow_import_local: false + allow_create_organization: true + prohibit_login: false + avatar: avatar24 + avatar_email: user24@example.com + use_custom_avatar: false num_followers: 0 num_following: 0 - num_members: 0 - num_repos: 0 num_stars: 0 + num_repos: 0 num_teams: 0 - passwd: ZogKvWdyEx:password - passwd_hash_algo: dummy - prohibit_login: 0 - rands: null - repo_admin_change_team_access: 0 - salt: ZogKvWdyEx - theme: "" - type: 0 - updated_unix: null - use_custom_avatar: 0 + num_members: 0 visibility: 0 - website: null -- allow_create_organization: 1 - allow_git_hook: 0 - allow_import_local: 0 - avatar: avatar25 - avatar_email: org25@example.com - created_unix: null - description: null - diff_view_style: "" + repo_admin_change_team_access: false + theme: "" + keep_activity_private: false + +- + id: 25 + lower_name: org25 + name: org25 + full_name: org25 email: org25@example.com + keep_email_private: false email_notifications_preference: enabled - full_name: org25 - id: 25 - is_active: 0 - is_admin: 0 - is_restricted: 0 - keep_activity_private: 0 - keep_email_private: 0 - language: null - last_login_unix: null - last_repo_visibility: null - location: null - login_name: org25 + passwd: ZogKvWdyEx:password + passwd_hash_algo: dummy + must_change_password: false login_source: 0 - login_type: null - lower_name: org25 + login_name: org25 + type: 1 + salt: ZogKvWdyEx max_repo_creation: -1 - must_change_password: 0 - name: org25 + is_active: false + is_admin: false + is_restricted: false + allow_git_hook: false + allow_import_local: false + allow_create_organization: true + prohibit_login: false + avatar: avatar25 + avatar_email: org25@example.com + use_custom_avatar: false num_followers: 0 num_following: 0 - num_members: 1 - num_repos: 0 num_stars: 0 + num_repos: 0 num_teams: 1 - passwd: ZogKvWdyEx:password - passwd_hash_algo: dummy - prohibit_login: 0 - rands: null - repo_admin_change_team_access: 0 - salt: ZogKvWdyEx - theme: "" - type: 1 - updated_unix: null - use_custom_avatar: 0 + num_members: 1 visibility: 0 - website: null -- allow_create_organization: 1 - allow_git_hook: 0 - allow_import_local: 0 - avatar: avatar26 - avatar_email: org26@example.com - created_unix: null - description: null - diff_view_style: "" + repo_admin_change_team_access: false + theme: "" + keep_activity_private: false + +- + id: 26 + lower_name: org26 + name: org26 + full_name: Org26 email: org26@example.com + keep_email_private: false email_notifications_preference: onmention - full_name: Org26 - id: 26 - is_active: 0 - is_admin: 0 - is_restricted: 0 - keep_activity_private: 0 - keep_email_private: 0 - language: null - last_login_unix: null - last_repo_visibility: null - location: null - login_name: org26 + passwd: ZogKvWdyEx:password + passwd_hash_algo: dummy + must_change_password: false login_source: 0 - login_type: null - lower_name: org26 + login_name: org26 + type: 1 + salt: ZogKvWdyEx max_repo_creation: -1 - must_change_password: 0 - name: org26 + is_active: false + is_admin: false + is_restricted: false + allow_git_hook: false + allow_import_local: false + allow_create_organization: true + prohibit_login: false + avatar: avatar26 + avatar_email: org26@example.com + use_custom_avatar: false num_followers: 0 num_following: 0 - num_members: 0 - num_repos: 4 num_stars: 0 + num_repos: 4 num_teams: 1 - passwd: ZogKvWdyEx:password - passwd_hash_algo: dummy - prohibit_login: 0 - rands: null - repo_admin_change_team_access: 1 - salt: ZogKvWdyEx - theme: "" - type: 1 - updated_unix: null - use_custom_avatar: 0 + num_members: 0 visibility: 0 - website: null -- allow_create_organization: 1 - allow_git_hook: 0 - allow_import_local: 0 - avatar: avatar27 - avatar_email: user27@example.com - created_unix: null - description: null - diff_view_style: "" + repo_admin_change_team_access: true + theme: "" + keep_activity_private: false + +- + id: 27 + lower_name: user27 + name: user27 + full_name: User Twenty-Seven email: user27@example.com + keep_email_private: false email_notifications_preference: enabled - full_name: User Twenty-Seven - id: 27 - is_active: 1 - is_admin: 0 - is_restricted: 0 - keep_activity_private: 0 - keep_email_private: 0 - language: null - last_login_unix: null - last_repo_visibility: null - location: null - login_name: user27 + passwd: ZogKvWdyEx:password + passwd_hash_algo: dummy + must_change_password: false login_source: 0 - login_type: null - lower_name: user27 + login_name: user27 + type: 0 + salt: ZogKvWdyEx max_repo_creation: -1 - must_change_password: 0 - name: user27 + is_active: true + is_admin: false + is_restricted: false + allow_git_hook: false + allow_import_local: false + allow_create_organization: true + prohibit_login: false + avatar: avatar27 + avatar_email: user27@example.com + use_custom_avatar: false num_followers: 0 num_following: 0 - num_members: 0 - num_repos: 3 num_stars: 0 - num_teams: 0 - passwd: ZogKvWdyEx:password - passwd_hash_algo: dummy - prohibit_login: 0 - rands: null - repo_admin_change_team_access: 0 - salt: ZogKvWdyEx - theme: "" - type: 0 - updated_unix: null - use_custom_avatar: 0 + num_repos: 3 + num_teams: 0 + num_members: 0 visibility: 0 - website: null -- allow_create_organization: 1 - allow_git_hook: 0 - allow_import_local: 0 - avatar: avatar28 - avatar_email: user28@example.com - created_unix: null - description: null - diff_view_style: "" + repo_admin_change_team_access: false + theme: "" + keep_activity_private: false + +- + id: 28 + lower_name: user28 + name: user28 + full_name: user27 email: user28@example.com + keep_email_private: true email_notifications_preference: enabled - full_name: user27 - id: 28 - is_active: 1 - is_admin: 0 - is_restricted: 0 - keep_activity_private: 0 - keep_email_private: 1 - language: null - last_login_unix: null - last_repo_visibility: null - location: null - login_name: user28 + passwd: ZogKvWdyEx:password + passwd_hash_algo: dummy + must_change_password: false login_source: 0 - login_type: null - lower_name: user28 + login_name: user28 + type: 0 + salt: ZogKvWdyEx max_repo_creation: -1 - must_change_password: 0 - name: user28 + is_active: true + is_admin: false + is_restricted: false + allow_git_hook: false + allow_import_local: false + allow_create_organization: true + prohibit_login: false + avatar: avatar28 + avatar_email: user28@example.com + use_custom_avatar: false num_followers: 0 num_following: 0 - num_members: 0 - num_repos: 0 num_stars: 0 + num_repos: 0 num_teams: 0 - passwd: ZogKvWdyEx:password - passwd_hash_algo: dummy - prohibit_login: 0 - rands: null - repo_admin_change_team_access: 0 - salt: ZogKvWdyEx - theme: "" - type: 0 - updated_unix: null - use_custom_avatar: 0 + num_members: 0 visibility: 0 - website: null -- allow_create_organization: 1 - allow_git_hook: 0 - allow_import_local: 0 - avatar: avatar29 - avatar_email: user29@example.com - created_unix: null - description: null - diff_view_style: "" + repo_admin_change_team_access: false + theme: "" + keep_activity_private: false + +- + id: 29 + lower_name: user29 + name: user29 + full_name: User 29 email: user29@example.com + keep_email_private: false email_notifications_preference: enabled - full_name: User 29 - id: 29 - is_active: 1 - is_admin: 0 - is_restricted: 1 - keep_activity_private: 0 - keep_email_private: 0 - language: null - last_login_unix: null - last_repo_visibility: null - location: null - login_name: user29 + passwd: ZogKvWdyEx:password + passwd_hash_algo: dummy + must_change_password: false login_source: 0 - login_type: null - lower_name: user29 + login_name: user29 + type: 0 + salt: ZogKvWdyEx max_repo_creation: -1 - must_change_password: 0 - name: user29 + is_active: true + is_admin: false + is_restricted: true + allow_git_hook: false + allow_import_local: false + allow_create_organization: true + prohibit_login: false + avatar: avatar29 + avatar_email: user29@example.com + use_custom_avatar: false num_followers: 0 num_following: 0 - num_members: 0 - num_repos: 0 num_stars: 0 + num_repos: 0 num_teams: 0 - passwd: ZogKvWdyEx:password - passwd_hash_algo: dummy - prohibit_login: 0 - rands: null - repo_admin_change_team_access: 0 - salt: ZogKvWdyEx - theme: "" - type: 0 - updated_unix: null - use_custom_avatar: 0 + num_members: 0 visibility: 0 - website: null -- allow_create_organization: 1 - allow_git_hook: 0 - allow_import_local: 0 - avatar: avatar29 - avatar_email: user30@example.com - created_unix: null - description: null - diff_view_style: "" + repo_admin_change_team_access: false + theme: "" + keep_activity_private: false + +- + id: 30 + lower_name: user30 + name: user30 + full_name: User Thirty email: user30@example.com + keep_email_private: false email_notifications_preference: enabled - full_name: User Thirty - id: 30 - is_active: 1 - is_admin: 0 - is_restricted: 0 - keep_activity_private: 0 - keep_email_private: 0 - language: null - last_login_unix: null - last_repo_visibility: null - location: null - login_name: user30 + passwd: ZogKvWdyEx:password + passwd_hash_algo: dummy + must_change_password: false login_source: 0 - login_type: null - lower_name: user30 + login_name: user30 + type: 0 + salt: ZogKvWdyEx max_repo_creation: -1 - must_change_password: 0 - name: user30 + is_active: true + is_admin: false + is_restricted: false + allow_git_hook: false + allow_import_local: false + allow_create_organization: true + prohibit_login: true + avatar: avatar29 + avatar_email: user30@example.com + use_custom_avatar: false num_followers: 0 num_following: 0 - num_members: 0 - num_repos: 4 num_stars: 0 + num_repos: 4 num_teams: 0 - passwd: ZogKvWdyEx:password - passwd_hash_algo: dummy - prohibit_login: 1 - rands: null - repo_admin_change_team_access: 0 - salt: ZogKvWdyEx - theme: "" - type: 0 - updated_unix: null - use_custom_avatar: 0 + num_members: 0 visibility: 0 - website: null -- allow_create_organization: 1 - allow_git_hook: 0 - allow_import_local: 0 - avatar: avatar31 - avatar_email: user31@example.com - created_unix: null - description: null - diff_view_style: "" + repo_admin_change_team_access: false + theme: "" + keep_activity_private: false + +- + id: 31 + lower_name: user31 + name: user31 + full_name: user31 email: user31@example.com + keep_email_private: false email_notifications_preference: enabled - full_name: user31 - id: 31 - is_active: 1 - is_admin: 0 - is_restricted: 0 - keep_activity_private: 0 - keep_email_private: 0 - language: null - last_login_unix: null - last_repo_visibility: null - location: null - login_name: user31 + passwd: ZogKvWdyEx:password + passwd_hash_algo: dummy + must_change_password: false login_source: 0 - login_type: null - lower_name: user31 + login_name: user31 + type: 0 + salt: ZogKvWdyEx max_repo_creation: -1 - must_change_password: 0 - name: user31 + is_active: true + is_admin: false + is_restricted: false + allow_git_hook: false + allow_import_local: false + allow_create_organization: true + prohibit_login: false + avatar: avatar31 + avatar_email: user31@example.com + use_custom_avatar: false num_followers: 0 num_following: 1 - num_members: 0 - num_repos: 0 num_stars: 0 + num_repos: 0 num_teams: 0 - passwd: ZogKvWdyEx:password - passwd_hash_algo: dummy - prohibit_login: 0 - rands: null - repo_admin_change_team_access: 0 - salt: ZogKvWdyEx - theme: "" - type: 0 - updated_unix: null - use_custom_avatar: 0 + num_members: 0 visibility: 2 - website: null -- allow_create_organization: 1 - allow_git_hook: 0 - allow_import_local: 0 - avatar: avatar32 - avatar_email: user30@example.com - created_unix: null - description: null - diff_view_style: "" + repo_admin_change_team_access: false + theme: "" + keep_activity_private: false + +- + id: 32 + lower_name: user32 + name: user32 + full_name: User 32 (U2F test) email: user32@example.com + keep_email_private: false email_notifications_preference: enabled - full_name: User 32 (U2F test) - id: 32 - is_active: 1 - is_admin: 0 - is_restricted: 0 - keep_activity_private: 0 - keep_email_private: 0 - language: null - last_login_unix: null - last_repo_visibility: null - location: null - login_name: user32 + passwd: ZogKvWdyEx:notpassword + passwd_hash_algo: dummy + must_change_password: false login_source: 0 - login_type: null - lower_name: user32 + login_name: user32 + type: 0 + salt: ZogKvWdyEx max_repo_creation: -1 - must_change_password: 0 - name: user32 + is_active: true + is_admin: false + is_restricted: false + allow_git_hook: false + allow_import_local: false + allow_create_organization: true + prohibit_login: false + avatar: avatar32 + avatar_email: user30@example.com + use_custom_avatar: false num_followers: 0 num_following: 0 - num_members: 0 - num_repos: 0 num_stars: 0 + num_repos: 0 num_teams: 0 - passwd: ZogKvWdyEx:notpassword - passwd_hash_algo: dummy - prohibit_login: 0 - rands: null - repo_admin_change_team_access: 0 - salt: ZogKvWdyEx - theme: "" - type: 0 - updated_unix: null - use_custom_avatar: 0 + num_members: 0 visibility: 0 - website: null -- allow_create_organization: 1 - allow_git_hook: 0 - allow_import_local: 0 - avatar: avatar33 - avatar_email: user33@example.com - created_unix: null - description: null - diff_view_style: "" + repo_admin_change_team_access: false + theme: "" + keep_activity_private: false + +- + id: 33 + lower_name: user33 + name: user33 + full_name: User 33 (Limited Visibility) email: user33@example.com + keep_email_private: false email_notifications_preference: enabled - full_name: User 33 (Limited Visibility) - id: 33 - is_active: 1 - is_admin: 0 - is_restricted: 0 - keep_activity_private: 0 - keep_email_private: 0 - language: null - last_login_unix: null - last_repo_visibility: null - location: null - login_name: user33 + passwd: ZogKvWdyEx:password + passwd_hash_algo: dummy + must_change_password: false login_source: 0 - login_type: null - lower_name: user33 + login_name: user33 + type: 0 + salt: ZogKvWdyEx max_repo_creation: -1 - must_change_password: 0 - name: user33 + is_active: true + is_admin: false + is_restricted: false + allow_git_hook: false + allow_import_local: false + allow_create_organization: true + prohibit_login: false + avatar: avatar33 + avatar_email: user33@example.com + use_custom_avatar: false num_followers: 1 num_following: 0 - num_members: 0 - num_repos: 0 num_stars: 0 + num_repos: 0 num_teams: 0 - passwd: ZogKvWdyEx:password - passwd_hash_algo: dummy - prohibit_login: 0 - rands: null - repo_admin_change_team_access: 0 - salt: ZogKvWdyEx - theme: "" - type: 0 - updated_unix: null - use_custom_avatar: 0 + num_members: 0 visibility: 1 - website: null -- allow_create_organization: 0 - allow_git_hook: 0 - allow_import_local: 0 - avatar: avatar34 - avatar_email: user34@example.com - created_unix: null - description: some [commonmark](https://commonmark.org/)! - diff_view_style: "" + repo_admin_change_team_access: false + theme: "" + keep_activity_private: false + +- + id: 34 + lower_name: the_34-user.with.all.allowedchars + name: the_34-user.with.all.allowedChars + full_name: the_1-user.with.all.allowedChars + description: 'some [commonmark](https://commonmark.org/)!' email: user34@example.com + keep_email_private: false email_notifications_preference: enabled - full_name: the_1-user.with.all.allowedChars - id: 34 - is_active: 1 - is_admin: 0 - is_restricted: 0 - keep_activity_private: 0 - keep_email_private: 0 - language: null - last_login_unix: null - last_repo_visibility: null - location: null - login_name: the_34-user.with.all.allowedchars + passwd: ZogKvWdyEx:password + passwd_hash_algo: dummy + must_change_password: false login_source: 0 - login_type: null - lower_name: the_34-user.with.all.allowedchars + login_name: the_34-user.with.all.allowedchars + type: 0 + salt: ZogKvWdyEx max_repo_creation: -1 - must_change_password: 0 - name: the_34-user.with.all.allowedChars + is_active: true + is_admin: false + is_restricted: false + allow_git_hook: false + allow_import_local: false + allow_create_organization: false + prohibit_login: false + avatar: avatar34 + avatar_email: user34@example.com + use_custom_avatar: true num_followers: 0 num_following: 0 - num_members: 0 - num_repos: 0 num_stars: 0 + num_repos: 0 num_teams: 0 - passwd: ZogKvWdyEx:password - passwd_hash_algo: dummy - prohibit_login: 0 - rands: null - repo_admin_change_team_access: 0 - salt: ZogKvWdyEx - theme: "" - type: 0 - updated_unix: null - use_custom_avatar: 1 + num_members: 0 visibility: 0 - website: null -- allow_create_organization: 1 - allow_git_hook: 0 - allow_import_local: 0 - avatar: avatar35 - avatar_email: private_org35@example.com - created_unix: null - description: null - diff_view_style: "" + repo_admin_change_team_access: false + theme: "" + keep_activity_private: false + +- + id: 35 + lower_name: private_org35 + name: private_org35 + full_name: Private Org 35 email: private_org35@example.com + keep_email_private: false email_notifications_preference: enabled - full_name: Private Org 35 - id: 35 - is_active: 1 - is_admin: 0 - is_restricted: 0 - keep_activity_private: 0 - keep_email_private: 0 - language: null - last_login_unix: null - last_repo_visibility: null - location: null - login_name: private_org35 + passwd: ZogKvWdyEx:password + passwd_hash_algo: dummy + must_change_password: false login_source: 0 - login_type: null - lower_name: private_org35 + login_name: private_org35 + type: 1 + salt: ZogKvWdyEx max_repo_creation: -1 - must_change_password: 0 - name: private_org35 + is_active: true + is_admin: false + is_restricted: false + allow_git_hook: false + allow_import_local: false + allow_create_organization: true + prohibit_login: false + avatar: avatar35 + avatar_email: private_org35@example.com + use_custom_avatar: false num_followers: 0 num_following: 0 - num_members: 1 - num_repos: 0 num_stars: 0 + num_repos: 0 num_teams: 1 - passwd: ZogKvWdyEx:password - passwd_hash_algo: dummy - prohibit_login: 0 - rands: null - repo_admin_change_team_access: 0 - salt: ZogKvWdyEx - theme: "" - type: 1 - updated_unix: null - use_custom_avatar: 0 + num_members: 1 visibility: 2 - website: null -- allow_create_organization: 1 - allow_git_hook: 0 - allow_import_local: 0 - avatar: avatar22 - avatar_email: limited_org36@example.com - created_unix: null - description: null - diff_view_style: "" + repo_admin_change_team_access: false + theme: "" + keep_activity_private: false + +- + id: 36 + lower_name: limited_org36 + name: limited_org36 + full_name: Limited Org 36 email: limited_org36@example.com + keep_email_private: false email_notifications_preference: enabled - full_name: Limited Org 36 - id: 36 - is_active: 1 - is_admin: 0 - is_restricted: 0 - keep_activity_private: 0 - keep_email_private: 0 - language: null - last_login_unix: null - last_repo_visibility: null - location: null - login_name: limited_org36 + passwd: ZogKvWdyEx:password + passwd_hash_algo: dummy + must_change_password: false login_source: 0 - login_type: null - lower_name: limited_org36 + login_name: limited_org36 + type: 1 + salt: ZogKvWdyEx max_repo_creation: -1 - must_change_password: 0 - name: limited_org36 + is_active: true + is_admin: false + is_restricted: false + allow_git_hook: false + allow_import_local: false + allow_create_organization: true + prohibit_login: false + avatar: avatar22 + avatar_email: limited_org36@example.com + use_custom_avatar: false num_followers: 0 num_following: 0 - num_members: 2 - num_repos: 0 num_stars: 0 + num_repos: 0 num_teams: 2 - passwd: ZogKvWdyEx:password - passwd_hash_algo: dummy - prohibit_login: 0 - rands: null - repo_admin_change_team_access: 0 - salt: ZogKvWdyEx - theme: "" - type: 1 - updated_unix: null - use_custom_avatar: 0 + num_members: 2 visibility: 1 - website: null + repo_admin_change_team_access: false + theme: "" + keep_activity_private: false diff --git a/models/fixtures/user_open_id.yml b/models/fixtures/user_open_id.yml index ca3161d706f01..d3a367b99dfa3 100644 --- a/models/fixtures/user_open_id.yml +++ b/models/fixtures/user_open_id.yml @@ -1,12 +1,17 @@ -- id: 1 - show: 0 +- + id: 1 uid: 1 uri: https://user1.domain1.tld/ -- id: 2 - show: 1 + show: false + +- + id: 2 uid: 1 uri: http://user1.domain2.tld/ -- id: 3 - show: 1 + show: true + +- + id: 3 uid: 2 uri: https://domain1.tld/user2/ + show: true diff --git a/models/fixtures/user_redirect.yml b/models/fixtures/user_redirect.yml index 5391cb24395ef..8ff79933983eb 100644 --- a/models/fixtures/user_redirect.yml +++ b/models/fixtures/user_redirect.yml @@ -1,3 +1,4 @@ -- id: 1 +- + id: 1 lower_name: olduser1 redirect_user_id: 1 diff --git a/models/fixtures/watch.yml b/models/fixtures/watch.yml index 8f7cce97120ce..c29f6bb65a889 100644 --- a/models/fixtures/watch.yml +++ b/models/fixtures/watch.yml @@ -1,30 +1,29 @@ -- created_unix: null +- id: 1 - mode: 1 - repo_id: 1 - updated_unix: null user_id: 1 -- created_unix: null - id: 2 - mode: 1 repo_id: 1 - updated_unix: null + mode: 1 # normal + +- + id: 2 user_id: 4 -- created_unix: null - id: 3 - mode: 1 repo_id: 1 - updated_unix: null + mode: 1 # normal + +- + id: 3 user_id: 9 -- created_unix: null - id: 4 - mode: 2 repo_id: 1 - updated_unix: null + mode: 1 # normal + +- + id: 4 user_id: 8 -- created_unix: null - id: 5 - mode: 3 repo_id: 1 - updated_unix: null + mode: 2 # don't watch + +- + id: 5 user_id: 11 + repo_id: 1 + mode: 3 # auto diff --git a/models/fixtures/webauthn_credential.yml b/models/fixtures/webauthn_credential.yml index 1221b40af499e..bc43127fcd46d 100644 --- a/models/fixtures/webauthn_credential.yml +++ b/models/fixtures/webauthn_credential.yml @@ -1,12 +1,9 @@ -- aaguid: null - attestation_type: none - clone_warning: 0 - created_unix: 946684800 - credential_id: null +- id: 1 - lower_name: null name: WebAuthn credential - public_key: null + user_id: 32 + attestation_type: none sign_count: 0 + clone_warning: false + created_unix: 946684800 updated_unix: 946684800 - user_id: 32 diff --git a/models/fixtures/webhook.yml b/models/fixtures/webhook.yml index 535fd2abab8ab..f62bae1f311ce 100644 --- a/models/fixtures/webhook.yml +++ b/models/fixtures/webhook.yml @@ -1,64 +1,31 @@ -- content_type: 1 - created_unix: null - events: '{"push_only":true,"send_everything":false,"choose_events":false,"events":{"create":false,"push":true,"pull_request":false}}' - header_authorization_encrypted: null - http_method: null +- id: 1 - is_active: 1 - is_system_webhook: null - last_status: null - meta: null - owner_id: null repo_id: 1 - secret: null - type: null - updated_unix: null url: www.example.com/url1 -- content_type: 1 - created_unix: null - events: '{"push_only":false,"send_everything":false,"choose_events":false,"events":{"create":false,"push":true,"pull_request":true}}' - header_authorization_encrypted: null - http_method: null + content_type: 1 # json + events: '{"push_only":true,"send_everything":false,"choose_events":false,"events":{"create":false,"push":true,"pull_request":false}}' + is_active: true + +- id: 2 - is_active: 0 - is_system_webhook: null - last_status: null - meta: null - owner_id: null repo_id: 1 - secret: null - type: null - updated_unix: null url: www.example.com/url2 -- content_type: 1 - created_unix: null + content_type: 1 # json events: '{"push_only":false,"send_everything":false,"choose_events":false,"events":{"create":false,"push":true,"pull_request":true}}' - header_authorization_encrypted: null - http_method: null + is_active: false + +- id: 3 - is_active: 1 - is_system_webhook: null - last_status: null - meta: null owner_id: 3 repo_id: 3 - secret: null - type: null - updated_unix: null url: www.example.com/url3 -- content_type: 1 - created_unix: null - events: '{"push_only":true,"branch_filter":"{master,feature*}"}' - header_authorization_encrypted: null - http_method: null + content_type: 1 # json + events: '{"push_only":false,"send_everything":false,"choose_events":false,"events":{"create":false,"push":true,"pull_request":true}}' + is_active: true +- id: 4 - is_active: 1 - is_system_webhook: null - last_status: null - meta: null - owner_id: null repo_id: 2 - secret: null - type: null - updated_unix: null url: www.example.com/url4 + content_type: 1 # json + events: '{"push_only":true,"branch_filter":"{master,feature*}"}' + is_active: true diff --git a/tests/gitea-repositories-meta/limited_org/private_repo_on_limited_org.git/hooks/post-receive b/tests/gitea-repositories-meta/limited_org/private_repo_on_limited_org.git/hooks/post-receive deleted file mode 100755 index 4b3d452abcce2..0000000000000 --- a/tests/gitea-repositories-meta/limited_org/private_repo_on_limited_org.git/hooks/post-receive +++ /dev/null @@ -1,7 +0,0 @@ -#!/usr/bin/env bash -ORI_DIR=`pwd` -SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) -cd "$ORI_DIR" -for i in `ls "$SHELL_FOLDER/post-receive.d"`; do - sh "$SHELL_FOLDER/post-receive.d/$i" -done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/limited_org/private_repo_on_limited_org.git/hooks/post-receive.d/gitea b/tests/gitea-repositories-meta/limited_org/private_repo_on_limited_org.git/hooks/post-receive.d/gitea deleted file mode 100755 index 43a948da3a983..0000000000000 --- a/tests/gitea-repositories-meta/limited_org/private_repo_on_limited_org.git/hooks/post-receive.d/gitea +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env bash -"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" post-receive diff --git a/tests/gitea-repositories-meta/limited_org/private_repo_on_limited_org.git/hooks/pre-receive b/tests/gitea-repositories-meta/limited_org/private_repo_on_limited_org.git/hooks/pre-receive deleted file mode 100755 index 412701305369c..0000000000000 --- a/tests/gitea-repositories-meta/limited_org/private_repo_on_limited_org.git/hooks/pre-receive +++ /dev/null @@ -1,7 +0,0 @@ -#!/usr/bin/env bash -ORI_DIR=`pwd` -SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) -cd "$ORI_DIR" -for i in `ls "$SHELL_FOLDER/pre-receive.d"`; do - sh "$SHELL_FOLDER/pre-receive.d/$i" -done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/limited_org/private_repo_on_limited_org.git/hooks/pre-receive.d/gitea b/tests/gitea-repositories-meta/limited_org/private_repo_on_limited_org.git/hooks/pre-receive.d/gitea deleted file mode 100755 index 49d09406364a5..0000000000000 --- a/tests/gitea-repositories-meta/limited_org/private_repo_on_limited_org.git/hooks/pre-receive.d/gitea +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env bash -"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" pre-receive diff --git a/tests/gitea-repositories-meta/limited_org/private_repo_on_limited_org.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/limited_org/private_repo_on_limited_org.git/hooks/proc-receive.d/gitea deleted file mode 100755 index e69de29bb2d1d..0000000000000 diff --git a/tests/gitea-repositories-meta/limited_org/private_repo_on_limited_org.git/hooks/update b/tests/gitea-repositories-meta/limited_org/private_repo_on_limited_org.git/hooks/update deleted file mode 100755 index c186fe4a18b0f..0000000000000 --- a/tests/gitea-repositories-meta/limited_org/private_repo_on_limited_org.git/hooks/update +++ /dev/null @@ -1,7 +0,0 @@ -#!/usr/bin/env bash -ORI_DIR=`pwd` -SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) -cd "$ORI_DIR" -for i in `ls "$SHELL_FOLDER/update.d"`; do - sh "$SHELL_FOLDER/update.d/$i" $1 $2 $3 -done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/limited_org/private_repo_on_limited_org.git/hooks/update.d/gitea b/tests/gitea-repositories-meta/limited_org/private_repo_on_limited_org.git/hooks/update.d/gitea deleted file mode 100755 index 38101c242664a..0000000000000 --- a/tests/gitea-repositories-meta/limited_org/private_repo_on_limited_org.git/hooks/update.d/gitea +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env bash -"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" update $1 $2 $3 diff --git a/tests/gitea-repositories-meta/limited_org/public_repo_on_limited_org.git/hooks/post-receive b/tests/gitea-repositories-meta/limited_org/public_repo_on_limited_org.git/hooks/post-receive deleted file mode 100755 index 4b3d452abcce2..0000000000000 --- a/tests/gitea-repositories-meta/limited_org/public_repo_on_limited_org.git/hooks/post-receive +++ /dev/null @@ -1,7 +0,0 @@ -#!/usr/bin/env bash -ORI_DIR=`pwd` -SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) -cd "$ORI_DIR" -for i in `ls "$SHELL_FOLDER/post-receive.d"`; do - sh "$SHELL_FOLDER/post-receive.d/$i" -done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/limited_org/public_repo_on_limited_org.git/hooks/post-receive.d/gitea b/tests/gitea-repositories-meta/limited_org/public_repo_on_limited_org.git/hooks/post-receive.d/gitea deleted file mode 100755 index 43a948da3a983..0000000000000 --- a/tests/gitea-repositories-meta/limited_org/public_repo_on_limited_org.git/hooks/post-receive.d/gitea +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env bash -"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" post-receive diff --git a/tests/gitea-repositories-meta/limited_org/public_repo_on_limited_org.git/hooks/pre-receive b/tests/gitea-repositories-meta/limited_org/public_repo_on_limited_org.git/hooks/pre-receive deleted file mode 100755 index 412701305369c..0000000000000 --- a/tests/gitea-repositories-meta/limited_org/public_repo_on_limited_org.git/hooks/pre-receive +++ /dev/null @@ -1,7 +0,0 @@ -#!/usr/bin/env bash -ORI_DIR=`pwd` -SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) -cd "$ORI_DIR" -for i in `ls "$SHELL_FOLDER/pre-receive.d"`; do - sh "$SHELL_FOLDER/pre-receive.d/$i" -done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/limited_org/public_repo_on_limited_org.git/hooks/pre-receive.d/gitea b/tests/gitea-repositories-meta/limited_org/public_repo_on_limited_org.git/hooks/pre-receive.d/gitea deleted file mode 100755 index 49d09406364a5..0000000000000 --- a/tests/gitea-repositories-meta/limited_org/public_repo_on_limited_org.git/hooks/pre-receive.d/gitea +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env bash -"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" pre-receive diff --git a/tests/gitea-repositories-meta/limited_org/public_repo_on_limited_org.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/limited_org/public_repo_on_limited_org.git/hooks/proc-receive.d/gitea deleted file mode 100755 index e69de29bb2d1d..0000000000000 diff --git a/tests/gitea-repositories-meta/limited_org/public_repo_on_limited_org.git/hooks/update b/tests/gitea-repositories-meta/limited_org/public_repo_on_limited_org.git/hooks/update deleted file mode 100755 index c186fe4a18b0f..0000000000000 --- a/tests/gitea-repositories-meta/limited_org/public_repo_on_limited_org.git/hooks/update +++ /dev/null @@ -1,7 +0,0 @@ -#!/usr/bin/env bash -ORI_DIR=`pwd` -SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) -cd "$ORI_DIR" -for i in `ls "$SHELL_FOLDER/update.d"`; do - sh "$SHELL_FOLDER/update.d/$i" $1 $2 $3 -done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/limited_org/public_repo_on_limited_org.git/hooks/update.d/gitea b/tests/gitea-repositories-meta/limited_org/public_repo_on_limited_org.git/hooks/update.d/gitea deleted file mode 100755 index 38101c242664a..0000000000000 --- a/tests/gitea-repositories-meta/limited_org/public_repo_on_limited_org.git/hooks/update.d/gitea +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env bash -"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" update $1 $2 $3 diff --git a/tests/gitea-repositories-meta/migration/lfs-test.git/hooks/post-receive b/tests/gitea-repositories-meta/migration/lfs-test.git/hooks/post-receive deleted file mode 100755 index 4b3d452abcce2..0000000000000 --- a/tests/gitea-repositories-meta/migration/lfs-test.git/hooks/post-receive +++ /dev/null @@ -1,7 +0,0 @@ -#!/usr/bin/env bash -ORI_DIR=`pwd` -SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) -cd "$ORI_DIR" -for i in `ls "$SHELL_FOLDER/post-receive.d"`; do - sh "$SHELL_FOLDER/post-receive.d/$i" -done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/migration/lfs-test.git/hooks/post-receive.d/gitea b/tests/gitea-repositories-meta/migration/lfs-test.git/hooks/post-receive.d/gitea deleted file mode 100755 index 43a948da3a983..0000000000000 --- a/tests/gitea-repositories-meta/migration/lfs-test.git/hooks/post-receive.d/gitea +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env bash -"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" post-receive diff --git a/tests/gitea-repositories-meta/migration/lfs-test.git/hooks/pre-receive b/tests/gitea-repositories-meta/migration/lfs-test.git/hooks/pre-receive deleted file mode 100755 index 412701305369c..0000000000000 --- a/tests/gitea-repositories-meta/migration/lfs-test.git/hooks/pre-receive +++ /dev/null @@ -1,7 +0,0 @@ -#!/usr/bin/env bash -ORI_DIR=`pwd` -SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) -cd "$ORI_DIR" -for i in `ls "$SHELL_FOLDER/pre-receive.d"`; do - sh "$SHELL_FOLDER/pre-receive.d/$i" -done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/migration/lfs-test.git/hooks/pre-receive.d/gitea b/tests/gitea-repositories-meta/migration/lfs-test.git/hooks/pre-receive.d/gitea deleted file mode 100755 index 49d09406364a5..0000000000000 --- a/tests/gitea-repositories-meta/migration/lfs-test.git/hooks/pre-receive.d/gitea +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env bash -"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" pre-receive diff --git a/tests/gitea-repositories-meta/migration/lfs-test.git/hooks/update b/tests/gitea-repositories-meta/migration/lfs-test.git/hooks/update deleted file mode 100755 index c186fe4a18b0f..0000000000000 --- a/tests/gitea-repositories-meta/migration/lfs-test.git/hooks/update +++ /dev/null @@ -1,7 +0,0 @@ -#!/usr/bin/env bash -ORI_DIR=`pwd` -SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) -cd "$ORI_DIR" -for i in `ls "$SHELL_FOLDER/update.d"`; do - sh "$SHELL_FOLDER/update.d/$i" $1 $2 $3 -done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/migration/lfs-test.git/hooks/update.d/gitea b/tests/gitea-repositories-meta/migration/lfs-test.git/hooks/update.d/gitea deleted file mode 100755 index 38101c242664a..0000000000000 --- a/tests/gitea-repositories-meta/migration/lfs-test.git/hooks/update.d/gitea +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env bash -"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" update $1 $2 $3 diff --git a/tests/gitea-repositories-meta/org26/repo_external_tracker.git/hooks/post-receive b/tests/gitea-repositories-meta/org26/repo_external_tracker.git/hooks/post-receive deleted file mode 100755 index 4b3d452abcce2..0000000000000 --- a/tests/gitea-repositories-meta/org26/repo_external_tracker.git/hooks/post-receive +++ /dev/null @@ -1,7 +0,0 @@ -#!/usr/bin/env bash -ORI_DIR=`pwd` -SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) -cd "$ORI_DIR" -for i in `ls "$SHELL_FOLDER/post-receive.d"`; do - sh "$SHELL_FOLDER/post-receive.d/$i" -done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/org26/repo_external_tracker.git/hooks/post-receive.d/gitea b/tests/gitea-repositories-meta/org26/repo_external_tracker.git/hooks/post-receive.d/gitea deleted file mode 100755 index 43a948da3a983..0000000000000 --- a/tests/gitea-repositories-meta/org26/repo_external_tracker.git/hooks/post-receive.d/gitea +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env bash -"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" post-receive diff --git a/tests/gitea-repositories-meta/org26/repo_external_tracker.git/hooks/pre-receive b/tests/gitea-repositories-meta/org26/repo_external_tracker.git/hooks/pre-receive deleted file mode 100755 index 412701305369c..0000000000000 --- a/tests/gitea-repositories-meta/org26/repo_external_tracker.git/hooks/pre-receive +++ /dev/null @@ -1,7 +0,0 @@ -#!/usr/bin/env bash -ORI_DIR=`pwd` -SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) -cd "$ORI_DIR" -for i in `ls "$SHELL_FOLDER/pre-receive.d"`; do - sh "$SHELL_FOLDER/pre-receive.d/$i" -done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/org26/repo_external_tracker.git/hooks/pre-receive.d/gitea b/tests/gitea-repositories-meta/org26/repo_external_tracker.git/hooks/pre-receive.d/gitea deleted file mode 100755 index 49d09406364a5..0000000000000 --- a/tests/gitea-repositories-meta/org26/repo_external_tracker.git/hooks/pre-receive.d/gitea +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env bash -"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" pre-receive diff --git a/tests/gitea-repositories-meta/org26/repo_external_tracker.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/org26/repo_external_tracker.git/hooks/proc-receive.d/gitea deleted file mode 100755 index e69de29bb2d1d..0000000000000 diff --git a/tests/gitea-repositories-meta/org26/repo_external_tracker.git/hooks/update b/tests/gitea-repositories-meta/org26/repo_external_tracker.git/hooks/update deleted file mode 100755 index c186fe4a18b0f..0000000000000 --- a/tests/gitea-repositories-meta/org26/repo_external_tracker.git/hooks/update +++ /dev/null @@ -1,7 +0,0 @@ -#!/usr/bin/env bash -ORI_DIR=`pwd` -SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) -cd "$ORI_DIR" -for i in `ls "$SHELL_FOLDER/update.d"`; do - sh "$SHELL_FOLDER/update.d/$i" $1 $2 $3 -done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/org26/repo_external_tracker.git/hooks/update.d/gitea b/tests/gitea-repositories-meta/org26/repo_external_tracker.git/hooks/update.d/gitea deleted file mode 100755 index 38101c242664a..0000000000000 --- a/tests/gitea-repositories-meta/org26/repo_external_tracker.git/hooks/update.d/gitea +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env bash -"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" update $1 $2 $3 diff --git a/tests/gitea-repositories-meta/org26/repo_external_tracker_alpha.git/hooks/post-receive b/tests/gitea-repositories-meta/org26/repo_external_tracker_alpha.git/hooks/post-receive deleted file mode 100755 index 4b3d452abcce2..0000000000000 --- a/tests/gitea-repositories-meta/org26/repo_external_tracker_alpha.git/hooks/post-receive +++ /dev/null @@ -1,7 +0,0 @@ -#!/usr/bin/env bash -ORI_DIR=`pwd` -SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) -cd "$ORI_DIR" -for i in `ls "$SHELL_FOLDER/post-receive.d"`; do - sh "$SHELL_FOLDER/post-receive.d/$i" -done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/org26/repo_external_tracker_alpha.git/hooks/post-receive.d/gitea b/tests/gitea-repositories-meta/org26/repo_external_tracker_alpha.git/hooks/post-receive.d/gitea deleted file mode 100755 index 43a948da3a983..0000000000000 --- a/tests/gitea-repositories-meta/org26/repo_external_tracker_alpha.git/hooks/post-receive.d/gitea +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env bash -"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" post-receive diff --git a/tests/gitea-repositories-meta/org26/repo_external_tracker_alpha.git/hooks/pre-receive b/tests/gitea-repositories-meta/org26/repo_external_tracker_alpha.git/hooks/pre-receive deleted file mode 100755 index 412701305369c..0000000000000 --- a/tests/gitea-repositories-meta/org26/repo_external_tracker_alpha.git/hooks/pre-receive +++ /dev/null @@ -1,7 +0,0 @@ -#!/usr/bin/env bash -ORI_DIR=`pwd` -SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) -cd "$ORI_DIR" -for i in `ls "$SHELL_FOLDER/pre-receive.d"`; do - sh "$SHELL_FOLDER/pre-receive.d/$i" -done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/org26/repo_external_tracker_alpha.git/hooks/pre-receive.d/gitea b/tests/gitea-repositories-meta/org26/repo_external_tracker_alpha.git/hooks/pre-receive.d/gitea deleted file mode 100755 index 49d09406364a5..0000000000000 --- a/tests/gitea-repositories-meta/org26/repo_external_tracker_alpha.git/hooks/pre-receive.d/gitea +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env bash -"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" pre-receive diff --git a/tests/gitea-repositories-meta/org26/repo_external_tracker_alpha.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/org26/repo_external_tracker_alpha.git/hooks/proc-receive.d/gitea deleted file mode 100755 index e69de29bb2d1d..0000000000000 diff --git a/tests/gitea-repositories-meta/org26/repo_external_tracker_alpha.git/hooks/update b/tests/gitea-repositories-meta/org26/repo_external_tracker_alpha.git/hooks/update deleted file mode 100755 index c186fe4a18b0f..0000000000000 --- a/tests/gitea-repositories-meta/org26/repo_external_tracker_alpha.git/hooks/update +++ /dev/null @@ -1,7 +0,0 @@ -#!/usr/bin/env bash -ORI_DIR=`pwd` -SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) -cd "$ORI_DIR" -for i in `ls "$SHELL_FOLDER/update.d"`; do - sh "$SHELL_FOLDER/update.d/$i" $1 $2 $3 -done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/org26/repo_external_tracker_alpha.git/hooks/update.d/gitea b/tests/gitea-repositories-meta/org26/repo_external_tracker_alpha.git/hooks/update.d/gitea deleted file mode 100755 index 38101c242664a..0000000000000 --- a/tests/gitea-repositories-meta/org26/repo_external_tracker_alpha.git/hooks/update.d/gitea +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env bash -"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" update $1 $2 $3 diff --git a/tests/gitea-repositories-meta/org26/repo_external_tracker_numeric.git/hooks/post-receive b/tests/gitea-repositories-meta/org26/repo_external_tracker_numeric.git/hooks/post-receive deleted file mode 100755 index 4b3d452abcce2..0000000000000 --- a/tests/gitea-repositories-meta/org26/repo_external_tracker_numeric.git/hooks/post-receive +++ /dev/null @@ -1,7 +0,0 @@ -#!/usr/bin/env bash -ORI_DIR=`pwd` -SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) -cd "$ORI_DIR" -for i in `ls "$SHELL_FOLDER/post-receive.d"`; do - sh "$SHELL_FOLDER/post-receive.d/$i" -done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/org26/repo_external_tracker_numeric.git/hooks/post-receive.d/gitea b/tests/gitea-repositories-meta/org26/repo_external_tracker_numeric.git/hooks/post-receive.d/gitea deleted file mode 100755 index 43a948da3a983..0000000000000 --- a/tests/gitea-repositories-meta/org26/repo_external_tracker_numeric.git/hooks/post-receive.d/gitea +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env bash -"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" post-receive diff --git a/tests/gitea-repositories-meta/org26/repo_external_tracker_numeric.git/hooks/pre-receive b/tests/gitea-repositories-meta/org26/repo_external_tracker_numeric.git/hooks/pre-receive deleted file mode 100755 index 412701305369c..0000000000000 --- a/tests/gitea-repositories-meta/org26/repo_external_tracker_numeric.git/hooks/pre-receive +++ /dev/null @@ -1,7 +0,0 @@ -#!/usr/bin/env bash -ORI_DIR=`pwd` -SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) -cd "$ORI_DIR" -for i in `ls "$SHELL_FOLDER/pre-receive.d"`; do - sh "$SHELL_FOLDER/pre-receive.d/$i" -done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/org26/repo_external_tracker_numeric.git/hooks/pre-receive.d/gitea b/tests/gitea-repositories-meta/org26/repo_external_tracker_numeric.git/hooks/pre-receive.d/gitea deleted file mode 100755 index 49d09406364a5..0000000000000 --- a/tests/gitea-repositories-meta/org26/repo_external_tracker_numeric.git/hooks/pre-receive.d/gitea +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env bash -"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" pre-receive diff --git a/tests/gitea-repositories-meta/org26/repo_external_tracker_numeric.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/org26/repo_external_tracker_numeric.git/hooks/proc-receive.d/gitea deleted file mode 100755 index e69de29bb2d1d..0000000000000 diff --git a/tests/gitea-repositories-meta/org26/repo_external_tracker_numeric.git/hooks/update b/tests/gitea-repositories-meta/org26/repo_external_tracker_numeric.git/hooks/update deleted file mode 100755 index c186fe4a18b0f..0000000000000 --- a/tests/gitea-repositories-meta/org26/repo_external_tracker_numeric.git/hooks/update +++ /dev/null @@ -1,7 +0,0 @@ -#!/usr/bin/env bash -ORI_DIR=`pwd` -SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) -cd "$ORI_DIR" -for i in `ls "$SHELL_FOLDER/update.d"`; do - sh "$SHELL_FOLDER/update.d/$i" $1 $2 $3 -done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/org26/repo_external_tracker_numeric.git/hooks/update.d/gitea b/tests/gitea-repositories-meta/org26/repo_external_tracker_numeric.git/hooks/update.d/gitea deleted file mode 100755 index 38101c242664a..0000000000000 --- a/tests/gitea-repositories-meta/org26/repo_external_tracker_numeric.git/hooks/update.d/gitea +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env bash -"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" update $1 $2 $3 diff --git a/tests/gitea-repositories-meta/privated_org/private_repo_on_private_org.git/hooks/post-receive b/tests/gitea-repositories-meta/privated_org/private_repo_on_private_org.git/hooks/post-receive deleted file mode 100755 index 4b3d452abcce2..0000000000000 --- a/tests/gitea-repositories-meta/privated_org/private_repo_on_private_org.git/hooks/post-receive +++ /dev/null @@ -1,7 +0,0 @@ -#!/usr/bin/env bash -ORI_DIR=`pwd` -SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) -cd "$ORI_DIR" -for i in `ls "$SHELL_FOLDER/post-receive.d"`; do - sh "$SHELL_FOLDER/post-receive.d/$i" -done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/privated_org/private_repo_on_private_org.git/hooks/post-receive.d/gitea b/tests/gitea-repositories-meta/privated_org/private_repo_on_private_org.git/hooks/post-receive.d/gitea deleted file mode 100755 index 43a948da3a983..0000000000000 --- a/tests/gitea-repositories-meta/privated_org/private_repo_on_private_org.git/hooks/post-receive.d/gitea +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env bash -"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" post-receive diff --git a/tests/gitea-repositories-meta/privated_org/private_repo_on_private_org.git/hooks/pre-receive b/tests/gitea-repositories-meta/privated_org/private_repo_on_private_org.git/hooks/pre-receive deleted file mode 100755 index 412701305369c..0000000000000 --- a/tests/gitea-repositories-meta/privated_org/private_repo_on_private_org.git/hooks/pre-receive +++ /dev/null @@ -1,7 +0,0 @@ -#!/usr/bin/env bash -ORI_DIR=`pwd` -SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) -cd "$ORI_DIR" -for i in `ls "$SHELL_FOLDER/pre-receive.d"`; do - sh "$SHELL_FOLDER/pre-receive.d/$i" -done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/privated_org/private_repo_on_private_org.git/hooks/pre-receive.d/gitea b/tests/gitea-repositories-meta/privated_org/private_repo_on_private_org.git/hooks/pre-receive.d/gitea deleted file mode 100755 index 49d09406364a5..0000000000000 --- a/tests/gitea-repositories-meta/privated_org/private_repo_on_private_org.git/hooks/pre-receive.d/gitea +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env bash -"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" pre-receive diff --git a/tests/gitea-repositories-meta/privated_org/private_repo_on_private_org.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/privated_org/private_repo_on_private_org.git/hooks/proc-receive.d/gitea deleted file mode 100755 index e69de29bb2d1d..0000000000000 diff --git a/tests/gitea-repositories-meta/privated_org/private_repo_on_private_org.git/hooks/update b/tests/gitea-repositories-meta/privated_org/private_repo_on_private_org.git/hooks/update deleted file mode 100755 index c186fe4a18b0f..0000000000000 --- a/tests/gitea-repositories-meta/privated_org/private_repo_on_private_org.git/hooks/update +++ /dev/null @@ -1,7 +0,0 @@ -#!/usr/bin/env bash -ORI_DIR=`pwd` -SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) -cd "$ORI_DIR" -for i in `ls "$SHELL_FOLDER/update.d"`; do - sh "$SHELL_FOLDER/update.d/$i" $1 $2 $3 -done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/privated_org/private_repo_on_private_org.git/hooks/update.d/gitea b/tests/gitea-repositories-meta/privated_org/private_repo_on_private_org.git/hooks/update.d/gitea deleted file mode 100755 index 38101c242664a..0000000000000 --- a/tests/gitea-repositories-meta/privated_org/private_repo_on_private_org.git/hooks/update.d/gitea +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env bash -"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" update $1 $2 $3 diff --git a/tests/gitea-repositories-meta/privated_org/public_repo_on_private_org.git/hooks/post-receive b/tests/gitea-repositories-meta/privated_org/public_repo_on_private_org.git/hooks/post-receive deleted file mode 100755 index 4b3d452abcce2..0000000000000 --- a/tests/gitea-repositories-meta/privated_org/public_repo_on_private_org.git/hooks/post-receive +++ /dev/null @@ -1,7 +0,0 @@ -#!/usr/bin/env bash -ORI_DIR=`pwd` -SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) -cd "$ORI_DIR" -for i in `ls "$SHELL_FOLDER/post-receive.d"`; do - sh "$SHELL_FOLDER/post-receive.d/$i" -done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/privated_org/public_repo_on_private_org.git/hooks/post-receive.d/gitea b/tests/gitea-repositories-meta/privated_org/public_repo_on_private_org.git/hooks/post-receive.d/gitea deleted file mode 100755 index 43a948da3a983..0000000000000 --- a/tests/gitea-repositories-meta/privated_org/public_repo_on_private_org.git/hooks/post-receive.d/gitea +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env bash -"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" post-receive diff --git a/tests/gitea-repositories-meta/privated_org/public_repo_on_private_org.git/hooks/pre-receive b/tests/gitea-repositories-meta/privated_org/public_repo_on_private_org.git/hooks/pre-receive deleted file mode 100755 index 412701305369c..0000000000000 --- a/tests/gitea-repositories-meta/privated_org/public_repo_on_private_org.git/hooks/pre-receive +++ /dev/null @@ -1,7 +0,0 @@ -#!/usr/bin/env bash -ORI_DIR=`pwd` -SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) -cd "$ORI_DIR" -for i in `ls "$SHELL_FOLDER/pre-receive.d"`; do - sh "$SHELL_FOLDER/pre-receive.d/$i" -done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/privated_org/public_repo_on_private_org.git/hooks/pre-receive.d/gitea b/tests/gitea-repositories-meta/privated_org/public_repo_on_private_org.git/hooks/pre-receive.d/gitea deleted file mode 100755 index 49d09406364a5..0000000000000 --- a/tests/gitea-repositories-meta/privated_org/public_repo_on_private_org.git/hooks/pre-receive.d/gitea +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env bash -"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" pre-receive diff --git a/tests/gitea-repositories-meta/privated_org/public_repo_on_private_org.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/privated_org/public_repo_on_private_org.git/hooks/proc-receive.d/gitea deleted file mode 100755 index e69de29bb2d1d..0000000000000 diff --git a/tests/gitea-repositories-meta/privated_org/public_repo_on_private_org.git/hooks/update b/tests/gitea-repositories-meta/privated_org/public_repo_on_private_org.git/hooks/update deleted file mode 100755 index c186fe4a18b0f..0000000000000 --- a/tests/gitea-repositories-meta/privated_org/public_repo_on_private_org.git/hooks/update +++ /dev/null @@ -1,7 +0,0 @@ -#!/usr/bin/env bash -ORI_DIR=`pwd` -SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) -cd "$ORI_DIR" -for i in `ls "$SHELL_FOLDER/update.d"`; do - sh "$SHELL_FOLDER/update.d/$i" $1 $2 $3 -done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/privated_org/public_repo_on_private_org.git/hooks/update.d/gitea b/tests/gitea-repositories-meta/privated_org/public_repo_on_private_org.git/hooks/update.d/gitea deleted file mode 100755 index 38101c242664a..0000000000000 --- a/tests/gitea-repositories-meta/privated_org/public_repo_on_private_org.git/hooks/update.d/gitea +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env bash -"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" update $1 $2 $3 diff --git a/tests/gitea-repositories-meta/user12/repo10.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/user12/repo10.git/hooks/proc-receive.d/gitea deleted file mode 100755 index e69de29bb2d1d..0000000000000 diff --git a/tests/gitea-repositories-meta/user13/repo11.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/user13/repo11.git/hooks/proc-receive.d/gitea deleted file mode 100755 index e69de29bb2d1d..0000000000000 diff --git a/tests/gitea-repositories-meta/user2/commits_search_test.git/hooks/post-receive b/tests/gitea-repositories-meta/user2/commits_search_test.git/hooks/post-receive deleted file mode 100755 index 4b3d452abcce2..0000000000000 --- a/tests/gitea-repositories-meta/user2/commits_search_test.git/hooks/post-receive +++ /dev/null @@ -1,7 +0,0 @@ -#!/usr/bin/env bash -ORI_DIR=`pwd` -SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) -cd "$ORI_DIR" -for i in `ls "$SHELL_FOLDER/post-receive.d"`; do - sh "$SHELL_FOLDER/post-receive.d/$i" -done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/user2/commits_search_test.git/hooks/post-receive.d/gitea b/tests/gitea-repositories-meta/user2/commits_search_test.git/hooks/post-receive.d/gitea deleted file mode 100755 index 43a948da3a983..0000000000000 --- a/tests/gitea-repositories-meta/user2/commits_search_test.git/hooks/post-receive.d/gitea +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env bash -"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" post-receive diff --git a/tests/gitea-repositories-meta/user2/commits_search_test.git/hooks/pre-receive b/tests/gitea-repositories-meta/user2/commits_search_test.git/hooks/pre-receive deleted file mode 100755 index 412701305369c..0000000000000 --- a/tests/gitea-repositories-meta/user2/commits_search_test.git/hooks/pre-receive +++ /dev/null @@ -1,7 +0,0 @@ -#!/usr/bin/env bash -ORI_DIR=`pwd` -SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) -cd "$ORI_DIR" -for i in `ls "$SHELL_FOLDER/pre-receive.d"`; do - sh "$SHELL_FOLDER/pre-receive.d/$i" -done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/user2/commits_search_test.git/hooks/pre-receive.d/gitea b/tests/gitea-repositories-meta/user2/commits_search_test.git/hooks/pre-receive.d/gitea deleted file mode 100755 index 49d09406364a5..0000000000000 --- a/tests/gitea-repositories-meta/user2/commits_search_test.git/hooks/pre-receive.d/gitea +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env bash -"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" pre-receive diff --git a/tests/gitea-repositories-meta/user2/commits_search_test.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/user2/commits_search_test.git/hooks/proc-receive.d/gitea deleted file mode 100755 index e69de29bb2d1d..0000000000000 diff --git a/tests/gitea-repositories-meta/user2/commits_search_test.git/hooks/update b/tests/gitea-repositories-meta/user2/commits_search_test.git/hooks/update deleted file mode 100755 index c186fe4a18b0f..0000000000000 --- a/tests/gitea-repositories-meta/user2/commits_search_test.git/hooks/update +++ /dev/null @@ -1,7 +0,0 @@ -#!/usr/bin/env bash -ORI_DIR=`pwd` -SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) -cd "$ORI_DIR" -for i in `ls "$SHELL_FOLDER/update.d"`; do - sh "$SHELL_FOLDER/update.d/$i" $1 $2 $3 -done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/user2/commits_search_test.git/hooks/update.d/gitea b/tests/gitea-repositories-meta/user2/commits_search_test.git/hooks/update.d/gitea deleted file mode 100755 index 38101c242664a..0000000000000 --- a/tests/gitea-repositories-meta/user2/commits_search_test.git/hooks/update.d/gitea +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env bash -"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" update $1 $2 $3 diff --git a/tests/gitea-repositories-meta/user2/commitsonpr.git/hooks/post-receive b/tests/gitea-repositories-meta/user2/commitsonpr.git/hooks/post-receive deleted file mode 100755 index 4b3d452abcce2..0000000000000 --- a/tests/gitea-repositories-meta/user2/commitsonpr.git/hooks/post-receive +++ /dev/null @@ -1,7 +0,0 @@ -#!/usr/bin/env bash -ORI_DIR=`pwd` -SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) -cd "$ORI_DIR" -for i in `ls "$SHELL_FOLDER/post-receive.d"`; do - sh "$SHELL_FOLDER/post-receive.d/$i" -done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/user2/commitsonpr.git/hooks/post-receive.d/gitea b/tests/gitea-repositories-meta/user2/commitsonpr.git/hooks/post-receive.d/gitea deleted file mode 100755 index 43a948da3a983..0000000000000 --- a/tests/gitea-repositories-meta/user2/commitsonpr.git/hooks/post-receive.d/gitea +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env bash -"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" post-receive diff --git a/tests/gitea-repositories-meta/user2/commitsonpr.git/hooks/pre-receive b/tests/gitea-repositories-meta/user2/commitsonpr.git/hooks/pre-receive deleted file mode 100755 index 412701305369c..0000000000000 --- a/tests/gitea-repositories-meta/user2/commitsonpr.git/hooks/pre-receive +++ /dev/null @@ -1,7 +0,0 @@ -#!/usr/bin/env bash -ORI_DIR=`pwd` -SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) -cd "$ORI_DIR" -for i in `ls "$SHELL_FOLDER/pre-receive.d"`; do - sh "$SHELL_FOLDER/pre-receive.d/$i" -done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/user2/commitsonpr.git/hooks/pre-receive.d/gitea b/tests/gitea-repositories-meta/user2/commitsonpr.git/hooks/pre-receive.d/gitea deleted file mode 100755 index 49d09406364a5..0000000000000 --- a/tests/gitea-repositories-meta/user2/commitsonpr.git/hooks/pre-receive.d/gitea +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env bash -"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" pre-receive diff --git a/tests/gitea-repositories-meta/user2/commitsonpr.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/user2/commitsonpr.git/hooks/proc-receive.d/gitea deleted file mode 100755 index e69de29bb2d1d..0000000000000 diff --git a/tests/gitea-repositories-meta/user2/commitsonpr.git/hooks/update b/tests/gitea-repositories-meta/user2/commitsonpr.git/hooks/update deleted file mode 100755 index c186fe4a18b0f..0000000000000 --- a/tests/gitea-repositories-meta/user2/commitsonpr.git/hooks/update +++ /dev/null @@ -1,7 +0,0 @@ -#!/usr/bin/env bash -ORI_DIR=`pwd` -SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) -cd "$ORI_DIR" -for i in `ls "$SHELL_FOLDER/update.d"`; do - sh "$SHELL_FOLDER/update.d/$i" $1 $2 $3 -done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/user2/commitsonpr.git/hooks/update.d/gitea b/tests/gitea-repositories-meta/user2/commitsonpr.git/hooks/update.d/gitea deleted file mode 100755 index 38101c242664a..0000000000000 --- a/tests/gitea-repositories-meta/user2/commitsonpr.git/hooks/update.d/gitea +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env bash -"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" update $1 $2 $3 diff --git a/tests/gitea-repositories-meta/user2/git_hooks_test.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/user2/git_hooks_test.git/hooks/proc-receive.d/gitea deleted file mode 100755 index e69de29bb2d1d..0000000000000 diff --git a/tests/gitea-repositories-meta/user2/glob.git/hooks/post-receive b/tests/gitea-repositories-meta/user2/glob.git/hooks/post-receive deleted file mode 100755 index 4b3d452abcce2..0000000000000 --- a/tests/gitea-repositories-meta/user2/glob.git/hooks/post-receive +++ /dev/null @@ -1,7 +0,0 @@ -#!/usr/bin/env bash -ORI_DIR=`pwd` -SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) -cd "$ORI_DIR" -for i in `ls "$SHELL_FOLDER/post-receive.d"`; do - sh "$SHELL_FOLDER/post-receive.d/$i" -done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/user2/glob.git/hooks/post-receive.d/gitea b/tests/gitea-repositories-meta/user2/glob.git/hooks/post-receive.d/gitea deleted file mode 100755 index 43a948da3a983..0000000000000 --- a/tests/gitea-repositories-meta/user2/glob.git/hooks/post-receive.d/gitea +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env bash -"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" post-receive diff --git a/tests/gitea-repositories-meta/user2/glob.git/hooks/pre-receive b/tests/gitea-repositories-meta/user2/glob.git/hooks/pre-receive deleted file mode 100755 index 412701305369c..0000000000000 --- a/tests/gitea-repositories-meta/user2/glob.git/hooks/pre-receive +++ /dev/null @@ -1,7 +0,0 @@ -#!/usr/bin/env bash -ORI_DIR=`pwd` -SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) -cd "$ORI_DIR" -for i in `ls "$SHELL_FOLDER/pre-receive.d"`; do - sh "$SHELL_FOLDER/pre-receive.d/$i" -done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/user2/glob.git/hooks/pre-receive.d/gitea b/tests/gitea-repositories-meta/user2/glob.git/hooks/pre-receive.d/gitea deleted file mode 100755 index 49d09406364a5..0000000000000 --- a/tests/gitea-repositories-meta/user2/glob.git/hooks/pre-receive.d/gitea +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env bash -"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" pre-receive diff --git a/tests/gitea-repositories-meta/user2/glob.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/user2/glob.git/hooks/proc-receive.d/gitea deleted file mode 100755 index e69de29bb2d1d..0000000000000 diff --git a/tests/gitea-repositories-meta/user2/glob.git/hooks/update b/tests/gitea-repositories-meta/user2/glob.git/hooks/update deleted file mode 100755 index c186fe4a18b0f..0000000000000 --- a/tests/gitea-repositories-meta/user2/glob.git/hooks/update +++ /dev/null @@ -1,7 +0,0 @@ -#!/usr/bin/env bash -ORI_DIR=`pwd` -SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) -cd "$ORI_DIR" -for i in `ls "$SHELL_FOLDER/update.d"`; do - sh "$SHELL_FOLDER/update.d/$i" $1 $2 $3 -done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/user2/glob.git/hooks/update.d/gitea b/tests/gitea-repositories-meta/user2/glob.git/hooks/update.d/gitea deleted file mode 100755 index 38101c242664a..0000000000000 --- a/tests/gitea-repositories-meta/user2/glob.git/hooks/update.d/gitea +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env bash -"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" update $1 $2 $3 diff --git a/tests/gitea-repositories-meta/user2/lfs.git/hooks/post-receive b/tests/gitea-repositories-meta/user2/lfs.git/hooks/post-receive deleted file mode 100755 index 4b3d452abcce2..0000000000000 --- a/tests/gitea-repositories-meta/user2/lfs.git/hooks/post-receive +++ /dev/null @@ -1,7 +0,0 @@ -#!/usr/bin/env bash -ORI_DIR=`pwd` -SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) -cd "$ORI_DIR" -for i in `ls "$SHELL_FOLDER/post-receive.d"`; do - sh "$SHELL_FOLDER/post-receive.d/$i" -done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/user2/lfs.git/hooks/post-receive.d/gitea b/tests/gitea-repositories-meta/user2/lfs.git/hooks/post-receive.d/gitea deleted file mode 100755 index 43a948da3a983..0000000000000 --- a/tests/gitea-repositories-meta/user2/lfs.git/hooks/post-receive.d/gitea +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env bash -"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" post-receive diff --git a/tests/gitea-repositories-meta/user2/lfs.git/hooks/pre-receive b/tests/gitea-repositories-meta/user2/lfs.git/hooks/pre-receive deleted file mode 100755 index 412701305369c..0000000000000 --- a/tests/gitea-repositories-meta/user2/lfs.git/hooks/pre-receive +++ /dev/null @@ -1,7 +0,0 @@ -#!/usr/bin/env bash -ORI_DIR=`pwd` -SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) -cd "$ORI_DIR" -for i in `ls "$SHELL_FOLDER/pre-receive.d"`; do - sh "$SHELL_FOLDER/pre-receive.d/$i" -done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/user2/lfs.git/hooks/pre-receive.d/gitea b/tests/gitea-repositories-meta/user2/lfs.git/hooks/pre-receive.d/gitea deleted file mode 100755 index 49d09406364a5..0000000000000 --- a/tests/gitea-repositories-meta/user2/lfs.git/hooks/pre-receive.d/gitea +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env bash -"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" pre-receive diff --git a/tests/gitea-repositories-meta/user2/lfs.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/user2/lfs.git/hooks/proc-receive.d/gitea deleted file mode 100755 index e69de29bb2d1d..0000000000000 diff --git a/tests/gitea-repositories-meta/user2/lfs.git/hooks/update b/tests/gitea-repositories-meta/user2/lfs.git/hooks/update deleted file mode 100755 index c186fe4a18b0f..0000000000000 --- a/tests/gitea-repositories-meta/user2/lfs.git/hooks/update +++ /dev/null @@ -1,7 +0,0 @@ -#!/usr/bin/env bash -ORI_DIR=`pwd` -SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) -cd "$ORI_DIR" -for i in `ls "$SHELL_FOLDER/update.d"`; do - sh "$SHELL_FOLDER/update.d/$i" $1 $2 $3 -done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/user2/lfs.git/hooks/update.d/gitea b/tests/gitea-repositories-meta/user2/lfs.git/hooks/update.d/gitea deleted file mode 100755 index 38101c242664a..0000000000000 --- a/tests/gitea-repositories-meta/user2/lfs.git/hooks/update.d/gitea +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env bash -"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" update $1 $2 $3 diff --git a/tests/gitea-repositories-meta/user2/readme-test.git/hooks/post-receive b/tests/gitea-repositories-meta/user2/readme-test.git/hooks/post-receive deleted file mode 100755 index 4b3d452abcce2..0000000000000 --- a/tests/gitea-repositories-meta/user2/readme-test.git/hooks/post-receive +++ /dev/null @@ -1,7 +0,0 @@ -#!/usr/bin/env bash -ORI_DIR=`pwd` -SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) -cd "$ORI_DIR" -for i in `ls "$SHELL_FOLDER/post-receive.d"`; do - sh "$SHELL_FOLDER/post-receive.d/$i" -done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/user2/readme-test.git/hooks/post-receive.d/gitea b/tests/gitea-repositories-meta/user2/readme-test.git/hooks/post-receive.d/gitea deleted file mode 100755 index 43a948da3a983..0000000000000 --- a/tests/gitea-repositories-meta/user2/readme-test.git/hooks/post-receive.d/gitea +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env bash -"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" post-receive diff --git a/tests/gitea-repositories-meta/user2/readme-test.git/hooks/pre-receive b/tests/gitea-repositories-meta/user2/readme-test.git/hooks/pre-receive deleted file mode 100755 index 412701305369c..0000000000000 --- a/tests/gitea-repositories-meta/user2/readme-test.git/hooks/pre-receive +++ /dev/null @@ -1,7 +0,0 @@ -#!/usr/bin/env bash -ORI_DIR=`pwd` -SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) -cd "$ORI_DIR" -for i in `ls "$SHELL_FOLDER/pre-receive.d"`; do - sh "$SHELL_FOLDER/pre-receive.d/$i" -done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/user2/readme-test.git/hooks/pre-receive.d/gitea b/tests/gitea-repositories-meta/user2/readme-test.git/hooks/pre-receive.d/gitea deleted file mode 100755 index 49d09406364a5..0000000000000 --- a/tests/gitea-repositories-meta/user2/readme-test.git/hooks/pre-receive.d/gitea +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env bash -"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" pre-receive diff --git a/tests/gitea-repositories-meta/user2/readme-test.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/user2/readme-test.git/hooks/proc-receive.d/gitea deleted file mode 100755 index e69de29bb2d1d..0000000000000 diff --git a/tests/gitea-repositories-meta/user2/readme-test.git/hooks/update b/tests/gitea-repositories-meta/user2/readme-test.git/hooks/update deleted file mode 100755 index c186fe4a18b0f..0000000000000 --- a/tests/gitea-repositories-meta/user2/readme-test.git/hooks/update +++ /dev/null @@ -1,7 +0,0 @@ -#!/usr/bin/env bash -ORI_DIR=`pwd` -SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) -cd "$ORI_DIR" -for i in `ls "$SHELL_FOLDER/update.d"`; do - sh "$SHELL_FOLDER/update.d/$i" $1 $2 $3 -done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/user2/readme-test.git/hooks/update.d/gitea b/tests/gitea-repositories-meta/user2/readme-test.git/hooks/update.d/gitea deleted file mode 100755 index 38101c242664a..0000000000000 --- a/tests/gitea-repositories-meta/user2/readme-test.git/hooks/update.d/gitea +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env bash -"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" update $1 $2 $3 diff --git a/tests/gitea-repositories-meta/user2/repo-release.git/hooks/post-receive b/tests/gitea-repositories-meta/user2/repo-release.git/hooks/post-receive deleted file mode 100755 index 4b3d452abcce2..0000000000000 --- a/tests/gitea-repositories-meta/user2/repo-release.git/hooks/post-receive +++ /dev/null @@ -1,7 +0,0 @@ -#!/usr/bin/env bash -ORI_DIR=`pwd` -SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) -cd "$ORI_DIR" -for i in `ls "$SHELL_FOLDER/post-receive.d"`; do - sh "$SHELL_FOLDER/post-receive.d/$i" -done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/user2/repo-release.git/hooks/post-receive.d/gitea b/tests/gitea-repositories-meta/user2/repo-release.git/hooks/post-receive.d/gitea deleted file mode 100755 index 43a948da3a983..0000000000000 --- a/tests/gitea-repositories-meta/user2/repo-release.git/hooks/post-receive.d/gitea +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env bash -"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" post-receive diff --git a/tests/gitea-repositories-meta/user2/repo-release.git/hooks/pre-receive b/tests/gitea-repositories-meta/user2/repo-release.git/hooks/pre-receive deleted file mode 100755 index 412701305369c..0000000000000 --- a/tests/gitea-repositories-meta/user2/repo-release.git/hooks/pre-receive +++ /dev/null @@ -1,7 +0,0 @@ -#!/usr/bin/env bash -ORI_DIR=`pwd` -SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) -cd "$ORI_DIR" -for i in `ls "$SHELL_FOLDER/pre-receive.d"`; do - sh "$SHELL_FOLDER/pre-receive.d/$i" -done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/user2/repo-release.git/hooks/pre-receive.d/gitea b/tests/gitea-repositories-meta/user2/repo-release.git/hooks/pre-receive.d/gitea deleted file mode 100755 index 49d09406364a5..0000000000000 --- a/tests/gitea-repositories-meta/user2/repo-release.git/hooks/pre-receive.d/gitea +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env bash -"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" pre-receive diff --git a/tests/gitea-repositories-meta/user2/repo-release.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/user2/repo-release.git/hooks/proc-receive.d/gitea deleted file mode 100755 index e69de29bb2d1d..0000000000000 diff --git a/tests/gitea-repositories-meta/user2/repo-release.git/hooks/update b/tests/gitea-repositories-meta/user2/repo-release.git/hooks/update deleted file mode 100755 index c186fe4a18b0f..0000000000000 --- a/tests/gitea-repositories-meta/user2/repo-release.git/hooks/update +++ /dev/null @@ -1,7 +0,0 @@ -#!/usr/bin/env bash -ORI_DIR=`pwd` -SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) -cd "$ORI_DIR" -for i in `ls "$SHELL_FOLDER/update.d"`; do - sh "$SHELL_FOLDER/update.d/$i" $1 $2 $3 -done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/user2/repo-release.git/hooks/update.d/gitea b/tests/gitea-repositories-meta/user2/repo-release.git/hooks/update.d/gitea deleted file mode 100755 index 38101c242664a..0000000000000 --- a/tests/gitea-repositories-meta/user2/repo-release.git/hooks/update.d/gitea +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env bash -"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" update $1 $2 $3 diff --git a/tests/gitea-repositories-meta/user2/repo1.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/user2/repo1.git/hooks/proc-receive.d/gitea deleted file mode 100755 index e69de29bb2d1d..0000000000000 diff --git a/tests/gitea-repositories-meta/user2/repo15.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/user2/repo15.git/hooks/proc-receive.d/gitea deleted file mode 100755 index e69de29bb2d1d..0000000000000 diff --git a/tests/gitea-repositories-meta/user2/repo16.git/hooks/post-receive b/tests/gitea-repositories-meta/user2/repo16.git/hooks/post-receive deleted file mode 100755 index 4b3d452abcce2..0000000000000 --- a/tests/gitea-repositories-meta/user2/repo16.git/hooks/post-receive +++ /dev/null @@ -1,7 +0,0 @@ -#!/usr/bin/env bash -ORI_DIR=`pwd` -SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) -cd "$ORI_DIR" -for i in `ls "$SHELL_FOLDER/post-receive.d"`; do - sh "$SHELL_FOLDER/post-receive.d/$i" -done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/user2/repo16.git/hooks/post-receive.d/gitea b/tests/gitea-repositories-meta/user2/repo16.git/hooks/post-receive.d/gitea deleted file mode 100755 index 43a948da3a983..0000000000000 --- a/tests/gitea-repositories-meta/user2/repo16.git/hooks/post-receive.d/gitea +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env bash -"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" post-receive diff --git a/tests/gitea-repositories-meta/user2/repo16.git/hooks/pre-receive b/tests/gitea-repositories-meta/user2/repo16.git/hooks/pre-receive deleted file mode 100755 index 412701305369c..0000000000000 --- a/tests/gitea-repositories-meta/user2/repo16.git/hooks/pre-receive +++ /dev/null @@ -1,7 +0,0 @@ -#!/usr/bin/env bash -ORI_DIR=`pwd` -SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) -cd "$ORI_DIR" -for i in `ls "$SHELL_FOLDER/pre-receive.d"`; do - sh "$SHELL_FOLDER/pre-receive.d/$i" -done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/user2/repo16.git/hooks/pre-receive.d/gitea b/tests/gitea-repositories-meta/user2/repo16.git/hooks/pre-receive.d/gitea deleted file mode 100755 index 49d09406364a5..0000000000000 --- a/tests/gitea-repositories-meta/user2/repo16.git/hooks/pre-receive.d/gitea +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env bash -"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" pre-receive diff --git a/tests/gitea-repositories-meta/user2/repo16.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/user2/repo16.git/hooks/proc-receive.d/gitea deleted file mode 100755 index e69de29bb2d1d..0000000000000 diff --git a/tests/gitea-repositories-meta/user2/repo16.git/hooks/update b/tests/gitea-repositories-meta/user2/repo16.git/hooks/update deleted file mode 100755 index c186fe4a18b0f..0000000000000 --- a/tests/gitea-repositories-meta/user2/repo16.git/hooks/update +++ /dev/null @@ -1,7 +0,0 @@ -#!/usr/bin/env bash -ORI_DIR=`pwd` -SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) -cd "$ORI_DIR" -for i in `ls "$SHELL_FOLDER/update.d"`; do - sh "$SHELL_FOLDER/update.d/$i" $1 $2 $3 -done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/user2/repo16.git/hooks/update.d/gitea b/tests/gitea-repositories-meta/user2/repo16.git/hooks/update.d/gitea deleted file mode 100755 index 38101c242664a..0000000000000 --- a/tests/gitea-repositories-meta/user2/repo16.git/hooks/update.d/gitea +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env bash -"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" update $1 $2 $3 diff --git a/tests/gitea-repositories-meta/user2/repo2.git/hooks/post-receive b/tests/gitea-repositories-meta/user2/repo2.git/hooks/post-receive deleted file mode 100755 index 4b3d452abcce2..0000000000000 --- a/tests/gitea-repositories-meta/user2/repo2.git/hooks/post-receive +++ /dev/null @@ -1,7 +0,0 @@ -#!/usr/bin/env bash -ORI_DIR=`pwd` -SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) -cd "$ORI_DIR" -for i in `ls "$SHELL_FOLDER/post-receive.d"`; do - sh "$SHELL_FOLDER/post-receive.d/$i" -done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/user2/repo2.git/hooks/post-receive.d/gitea b/tests/gitea-repositories-meta/user2/repo2.git/hooks/post-receive.d/gitea deleted file mode 100755 index 43a948da3a983..0000000000000 --- a/tests/gitea-repositories-meta/user2/repo2.git/hooks/post-receive.d/gitea +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env bash -"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" post-receive diff --git a/tests/gitea-repositories-meta/user2/repo2.git/hooks/pre-receive b/tests/gitea-repositories-meta/user2/repo2.git/hooks/pre-receive deleted file mode 100755 index 412701305369c..0000000000000 --- a/tests/gitea-repositories-meta/user2/repo2.git/hooks/pre-receive +++ /dev/null @@ -1,7 +0,0 @@ -#!/usr/bin/env bash -ORI_DIR=`pwd` -SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) -cd "$ORI_DIR" -for i in `ls "$SHELL_FOLDER/pre-receive.d"`; do - sh "$SHELL_FOLDER/pre-receive.d/$i" -done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/user2/repo2.git/hooks/pre-receive.d/gitea b/tests/gitea-repositories-meta/user2/repo2.git/hooks/pre-receive.d/gitea deleted file mode 100755 index 49d09406364a5..0000000000000 --- a/tests/gitea-repositories-meta/user2/repo2.git/hooks/pre-receive.d/gitea +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env bash -"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" pre-receive diff --git a/tests/gitea-repositories-meta/user2/repo2.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/user2/repo2.git/hooks/proc-receive.d/gitea deleted file mode 100755 index e69de29bb2d1d..0000000000000 diff --git a/tests/gitea-repositories-meta/user2/repo2.git/hooks/update b/tests/gitea-repositories-meta/user2/repo2.git/hooks/update deleted file mode 100755 index c186fe4a18b0f..0000000000000 --- a/tests/gitea-repositories-meta/user2/repo2.git/hooks/update +++ /dev/null @@ -1,7 +0,0 @@ -#!/usr/bin/env bash -ORI_DIR=`pwd` -SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) -cd "$ORI_DIR" -for i in `ls "$SHELL_FOLDER/update.d"`; do - sh "$SHELL_FOLDER/update.d/$i" $1 $2 $3 -done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/user2/repo2.git/hooks/update.d/gitea b/tests/gitea-repositories-meta/user2/repo2.git/hooks/update.d/gitea deleted file mode 100755 index 38101c242664a..0000000000000 --- a/tests/gitea-repositories-meta/user2/repo2.git/hooks/update.d/gitea +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env bash -"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" update $1 $2 $3 diff --git a/tests/gitea-repositories-meta/user2/repo20.git/hooks/post-receive b/tests/gitea-repositories-meta/user2/repo20.git/hooks/post-receive index 4b3d452abcce2..f1f2709dddeea 100755 --- a/tests/gitea-repositories-meta/user2/repo20.git/hooks/post-receive +++ b/tests/gitea-repositories-meta/user2/repo20.git/hooks/post-receive @@ -1,7 +1,15 @@ #!/usr/bin/env bash -ORI_DIR=`pwd` -SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) -cd "$ORI_DIR" -for i in `ls "$SHELL_FOLDER/post-receive.d"`; do - sh "$SHELL_FOLDER/post-receive.d/$i" -done \ No newline at end of file +data=$(cat) +exitcodes="" +hookname=$(basename $0) +GIT_DIR=${GIT_DIR:-$(dirname $0)} + +for hook in ${GIT_DIR}/hooks/${hookname}.d/*; do +test -x "${hook}" && test -f "${hook}" || continue +echo "${data}" | "${hook}" +exitcodes="${exitcodes} $?" +done + +for i in ${exitcodes}; do +[ ${i} -eq 0 ] || exit ${i} +done diff --git a/tests/gitea-repositories-meta/user2/repo20.git/hooks/pre-receive b/tests/gitea-repositories-meta/user2/repo20.git/hooks/pre-receive index 412701305369c..f1f2709dddeea 100755 --- a/tests/gitea-repositories-meta/user2/repo20.git/hooks/pre-receive +++ b/tests/gitea-repositories-meta/user2/repo20.git/hooks/pre-receive @@ -1,7 +1,15 @@ #!/usr/bin/env bash -ORI_DIR=`pwd` -SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) -cd "$ORI_DIR" -for i in `ls "$SHELL_FOLDER/pre-receive.d"`; do - sh "$SHELL_FOLDER/pre-receive.d/$i" -done \ No newline at end of file +data=$(cat) +exitcodes="" +hookname=$(basename $0) +GIT_DIR=${GIT_DIR:-$(dirname $0)} + +for hook in ${GIT_DIR}/hooks/${hookname}.d/*; do +test -x "${hook}" && test -f "${hook}" || continue +echo "${data}" | "${hook}" +exitcodes="${exitcodes} $?" +done + +for i in ${exitcodes}; do +[ ${i} -eq 0 ] || exit ${i} +done diff --git a/tests/gitea-repositories-meta/user2/repo20.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/user2/repo20.git/hooks/proc-receive.d/gitea deleted file mode 100755 index e69de29bb2d1d..0000000000000 diff --git a/tests/gitea-repositories-meta/user2/repo20.git/hooks/update b/tests/gitea-repositories-meta/user2/repo20.git/hooks/update index c186fe4a18b0f..df5bd27f106f2 100755 --- a/tests/gitea-repositories-meta/user2/repo20.git/hooks/update +++ b/tests/gitea-repositories-meta/user2/repo20.git/hooks/update @@ -1,7 +1,14 @@ #!/usr/bin/env bash -ORI_DIR=`pwd` -SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) -cd "$ORI_DIR" -for i in `ls "$SHELL_FOLDER/update.d"`; do - sh "$SHELL_FOLDER/update.d/$i" $1 $2 $3 -done \ No newline at end of file +exitcodes="" +hookname=$(basename $0) +GIT_DIR=${GIT_DIR:-$(dirname $0)} + +for hook in ${GIT_DIR}/hooks/${hookname}.d/*; do +test -x "${hook}" && test -f "${hook}" || continue +"${hook}" $1 $2 $3 +exitcodes="${exitcodes} $?" +done + +for i in ${exitcodes}; do +[ ${i} -eq 0 ] || exit ${i} +done diff --git a/tests/gitea-repositories-meta/user2/utf8.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/user2/utf8.git/hooks/proc-receive.d/gitea deleted file mode 100755 index e69de29bb2d1d..0000000000000 diff --git a/tests/gitea-repositories-meta/user27/repo49.git/hooks/post-receive b/tests/gitea-repositories-meta/user27/repo49.git/hooks/post-receive old mode 100755 new mode 100644 index 4b3d452abcce2..f1f2709dddeea --- a/tests/gitea-repositories-meta/user27/repo49.git/hooks/post-receive +++ b/tests/gitea-repositories-meta/user27/repo49.git/hooks/post-receive @@ -1,7 +1,15 @@ #!/usr/bin/env bash -ORI_DIR=`pwd` -SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) -cd "$ORI_DIR" -for i in `ls "$SHELL_FOLDER/post-receive.d"`; do - sh "$SHELL_FOLDER/post-receive.d/$i" -done \ No newline at end of file +data=$(cat) +exitcodes="" +hookname=$(basename $0) +GIT_DIR=${GIT_DIR:-$(dirname $0)} + +for hook in ${GIT_DIR}/hooks/${hookname}.d/*; do +test -x "${hook}" && test -f "${hook}" || continue +echo "${data}" | "${hook}" +exitcodes="${exitcodes} $?" +done + +for i in ${exitcodes}; do +[ ${i} -eq 0 ] || exit ${i} +done diff --git a/tests/gitea-repositories-meta/user27/repo49.git/hooks/post-receive.d/gitea b/tests/gitea-repositories-meta/user27/repo49.git/hooks/post-receive.d/gitea old mode 100755 new mode 100644 diff --git a/tests/gitea-repositories-meta/user27/repo49.git/hooks/pre-receive b/tests/gitea-repositories-meta/user27/repo49.git/hooks/pre-receive old mode 100755 new mode 100644 index 412701305369c..f1f2709dddeea --- a/tests/gitea-repositories-meta/user27/repo49.git/hooks/pre-receive +++ b/tests/gitea-repositories-meta/user27/repo49.git/hooks/pre-receive @@ -1,7 +1,15 @@ #!/usr/bin/env bash -ORI_DIR=`pwd` -SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) -cd "$ORI_DIR" -for i in `ls "$SHELL_FOLDER/pre-receive.d"`; do - sh "$SHELL_FOLDER/pre-receive.d/$i" -done \ No newline at end of file +data=$(cat) +exitcodes="" +hookname=$(basename $0) +GIT_DIR=${GIT_DIR:-$(dirname $0)} + +for hook in ${GIT_DIR}/hooks/${hookname}.d/*; do +test -x "${hook}" && test -f "${hook}" || continue +echo "${data}" | "${hook}" +exitcodes="${exitcodes} $?" +done + +for i in ${exitcodes}; do +[ ${i} -eq 0 ] || exit ${i} +done diff --git a/tests/gitea-repositories-meta/user27/repo49.git/hooks/pre-receive.d/gitea b/tests/gitea-repositories-meta/user27/repo49.git/hooks/pre-receive.d/gitea old mode 100755 new mode 100644 diff --git a/tests/gitea-repositories-meta/user27/repo49.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/user27/repo49.git/hooks/proc-receive.d/gitea deleted file mode 100755 index e69de29bb2d1d..0000000000000 diff --git a/tests/gitea-repositories-meta/user27/repo49.git/hooks/update b/tests/gitea-repositories-meta/user27/repo49.git/hooks/update old mode 100755 new mode 100644 index c186fe4a18b0f..df5bd27f106f2 --- a/tests/gitea-repositories-meta/user27/repo49.git/hooks/update +++ b/tests/gitea-repositories-meta/user27/repo49.git/hooks/update @@ -1,7 +1,14 @@ #!/usr/bin/env bash -ORI_DIR=`pwd` -SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) -cd "$ORI_DIR" -for i in `ls "$SHELL_FOLDER/update.d"`; do - sh "$SHELL_FOLDER/update.d/$i" $1 $2 $3 -done \ No newline at end of file +exitcodes="" +hookname=$(basename $0) +GIT_DIR=${GIT_DIR:-$(dirname $0)} + +for hook in ${GIT_DIR}/hooks/${hookname}.d/*; do +test -x "${hook}" && test -f "${hook}" || continue +"${hook}" $1 $2 $3 +exitcodes="${exitcodes} $?" +done + +for i in ${exitcodes}; do +[ ${i} -eq 0 ] || exit ${i} +done diff --git a/tests/gitea-repositories-meta/user27/repo49.git/hooks/update.d/gitea b/tests/gitea-repositories-meta/user27/repo49.git/hooks/update.d/gitea old mode 100755 new mode 100644 diff --git a/tests/gitea-repositories-meta/user27/template1.git/hooks/post-receive b/tests/gitea-repositories-meta/user27/template1.git/hooks/post-receive old mode 100755 new mode 100644 index 4b3d452abcce2..f1f2709dddeea --- a/tests/gitea-repositories-meta/user27/template1.git/hooks/post-receive +++ b/tests/gitea-repositories-meta/user27/template1.git/hooks/post-receive @@ -1,7 +1,15 @@ #!/usr/bin/env bash -ORI_DIR=`pwd` -SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) -cd "$ORI_DIR" -for i in `ls "$SHELL_FOLDER/post-receive.d"`; do - sh "$SHELL_FOLDER/post-receive.d/$i" -done \ No newline at end of file +data=$(cat) +exitcodes="" +hookname=$(basename $0) +GIT_DIR=${GIT_DIR:-$(dirname $0)} + +for hook in ${GIT_DIR}/hooks/${hookname}.d/*; do +test -x "${hook}" && test -f "${hook}" || continue +echo "${data}" | "${hook}" +exitcodes="${exitcodes} $?" +done + +for i in ${exitcodes}; do +[ ${i} -eq 0 ] || exit ${i} +done diff --git a/tests/gitea-repositories-meta/user27/template1.git/hooks/post-receive.d/gitea b/tests/gitea-repositories-meta/user27/template1.git/hooks/post-receive.d/gitea old mode 100755 new mode 100644 diff --git a/tests/gitea-repositories-meta/user27/template1.git/hooks/pre-receive b/tests/gitea-repositories-meta/user27/template1.git/hooks/pre-receive old mode 100755 new mode 100644 index 412701305369c..f1f2709dddeea --- a/tests/gitea-repositories-meta/user27/template1.git/hooks/pre-receive +++ b/tests/gitea-repositories-meta/user27/template1.git/hooks/pre-receive @@ -1,7 +1,15 @@ #!/usr/bin/env bash -ORI_DIR=`pwd` -SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) -cd "$ORI_DIR" -for i in `ls "$SHELL_FOLDER/pre-receive.d"`; do - sh "$SHELL_FOLDER/pre-receive.d/$i" -done \ No newline at end of file +data=$(cat) +exitcodes="" +hookname=$(basename $0) +GIT_DIR=${GIT_DIR:-$(dirname $0)} + +for hook in ${GIT_DIR}/hooks/${hookname}.d/*; do +test -x "${hook}" && test -f "${hook}" || continue +echo "${data}" | "${hook}" +exitcodes="${exitcodes} $?" +done + +for i in ${exitcodes}; do +[ ${i} -eq 0 ] || exit ${i} +done diff --git a/tests/gitea-repositories-meta/user27/template1.git/hooks/pre-receive.d/gitea b/tests/gitea-repositories-meta/user27/template1.git/hooks/pre-receive.d/gitea old mode 100755 new mode 100644 diff --git a/tests/gitea-repositories-meta/user27/template1.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/user27/template1.git/hooks/proc-receive.d/gitea deleted file mode 100755 index e69de29bb2d1d..0000000000000 diff --git a/tests/gitea-repositories-meta/user27/template1.git/hooks/update b/tests/gitea-repositories-meta/user27/template1.git/hooks/update old mode 100755 new mode 100644 index c186fe4a18b0f..df5bd27f106f2 --- a/tests/gitea-repositories-meta/user27/template1.git/hooks/update +++ b/tests/gitea-repositories-meta/user27/template1.git/hooks/update @@ -1,7 +1,14 @@ #!/usr/bin/env bash -ORI_DIR=`pwd` -SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) -cd "$ORI_DIR" -for i in `ls "$SHELL_FOLDER/update.d"`; do - sh "$SHELL_FOLDER/update.d/$i" $1 $2 $3 -done \ No newline at end of file +exitcodes="" +hookname=$(basename $0) +GIT_DIR=${GIT_DIR:-$(dirname $0)} + +for hook in ${GIT_DIR}/hooks/${hookname}.d/*; do +test -x "${hook}" && test -f "${hook}" || continue +"${hook}" $1 $2 $3 +exitcodes="${exitcodes} $?" +done + +for i in ${exitcodes}; do +[ ${i} -eq 0 ] || exit ${i} +done diff --git a/tests/gitea-repositories-meta/user27/template1.git/hooks/update.d/gitea b/tests/gitea-repositories-meta/user27/template1.git/hooks/update.d/gitea old mode 100755 new mode 100644 diff --git a/tests/gitea-repositories-meta/user3/repo3.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/user3/repo3.git/hooks/proc-receive.d/gitea deleted file mode 100755 index e69de29bb2d1d..0000000000000 diff --git a/tests/gitea-repositories-meta/user3/repo5.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/user3/repo5.git/hooks/proc-receive.d/gitea deleted file mode 100755 index e69de29bb2d1d..0000000000000 diff --git a/tests/gitea-repositories-meta/user30/renderer.git/hooks/post-receive b/tests/gitea-repositories-meta/user30/renderer.git/hooks/post-receive old mode 100755 new mode 100644 index 4b3d452abcce2..f1f2709dddeea --- a/tests/gitea-repositories-meta/user30/renderer.git/hooks/post-receive +++ b/tests/gitea-repositories-meta/user30/renderer.git/hooks/post-receive @@ -1,7 +1,15 @@ #!/usr/bin/env bash -ORI_DIR=`pwd` -SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) -cd "$ORI_DIR" -for i in `ls "$SHELL_FOLDER/post-receive.d"`; do - sh "$SHELL_FOLDER/post-receive.d/$i" -done \ No newline at end of file +data=$(cat) +exitcodes="" +hookname=$(basename $0) +GIT_DIR=${GIT_DIR:-$(dirname $0)} + +for hook in ${GIT_DIR}/hooks/${hookname}.d/*; do +test -x "${hook}" && test -f "${hook}" || continue +echo "${data}" | "${hook}" +exitcodes="${exitcodes} $?" +done + +for i in ${exitcodes}; do +[ ${i} -eq 0 ] || exit ${i} +done diff --git a/tests/gitea-repositories-meta/user30/renderer.git/hooks/post-receive.d/gitea b/tests/gitea-repositories-meta/user30/renderer.git/hooks/post-receive.d/gitea old mode 100755 new mode 100644 diff --git a/tests/gitea-repositories-meta/user30/renderer.git/hooks/pre-receive b/tests/gitea-repositories-meta/user30/renderer.git/hooks/pre-receive old mode 100755 new mode 100644 index 412701305369c..f1f2709dddeea --- a/tests/gitea-repositories-meta/user30/renderer.git/hooks/pre-receive +++ b/tests/gitea-repositories-meta/user30/renderer.git/hooks/pre-receive @@ -1,7 +1,15 @@ #!/usr/bin/env bash -ORI_DIR=`pwd` -SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) -cd "$ORI_DIR" -for i in `ls "$SHELL_FOLDER/pre-receive.d"`; do - sh "$SHELL_FOLDER/pre-receive.d/$i" -done \ No newline at end of file +data=$(cat) +exitcodes="" +hookname=$(basename $0) +GIT_DIR=${GIT_DIR:-$(dirname $0)} + +for hook in ${GIT_DIR}/hooks/${hookname}.d/*; do +test -x "${hook}" && test -f "${hook}" || continue +echo "${data}" | "${hook}" +exitcodes="${exitcodes} $?" +done + +for i in ${exitcodes}; do +[ ${i} -eq 0 ] || exit ${i} +done diff --git a/tests/gitea-repositories-meta/user30/renderer.git/hooks/pre-receive.d/gitea b/tests/gitea-repositories-meta/user30/renderer.git/hooks/pre-receive.d/gitea old mode 100755 new mode 100644 diff --git a/tests/gitea-repositories-meta/user30/renderer.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/user30/renderer.git/hooks/proc-receive.d/gitea deleted file mode 100755 index e69de29bb2d1d..0000000000000 diff --git a/tests/gitea-repositories-meta/user30/renderer.git/hooks/update b/tests/gitea-repositories-meta/user30/renderer.git/hooks/update old mode 100755 new mode 100644 index c186fe4a18b0f..df5bd27f106f2 --- a/tests/gitea-repositories-meta/user30/renderer.git/hooks/update +++ b/tests/gitea-repositories-meta/user30/renderer.git/hooks/update @@ -1,7 +1,14 @@ #!/usr/bin/env bash -ORI_DIR=`pwd` -SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) -cd "$ORI_DIR" -for i in `ls "$SHELL_FOLDER/update.d"`; do - sh "$SHELL_FOLDER/update.d/$i" $1 $2 $3 -done \ No newline at end of file +exitcodes="" +hookname=$(basename $0) +GIT_DIR=${GIT_DIR:-$(dirname $0)} + +for hook in ${GIT_DIR}/hooks/${hookname}.d/*; do +test -x "${hook}" && test -f "${hook}" || continue +"${hook}" $1 $2 $3 +exitcodes="${exitcodes} $?" +done + +for i in ${exitcodes}; do +[ ${i} -eq 0 ] || exit ${i} +done diff --git a/tests/gitea-repositories-meta/user30/renderer.git/hooks/update.d/gitea b/tests/gitea-repositories-meta/user30/renderer.git/hooks/update.d/gitea old mode 100755 new mode 100644 diff --git a/tests/gitea-repositories-meta/user5/repo4.git/hooks/post-receive b/tests/gitea-repositories-meta/user5/repo4.git/hooks/post-receive deleted file mode 100755 index 4b3d452abcce2..0000000000000 --- a/tests/gitea-repositories-meta/user5/repo4.git/hooks/post-receive +++ /dev/null @@ -1,7 +0,0 @@ -#!/usr/bin/env bash -ORI_DIR=`pwd` -SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) -cd "$ORI_DIR" -for i in `ls "$SHELL_FOLDER/post-receive.d"`; do - sh "$SHELL_FOLDER/post-receive.d/$i" -done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/user5/repo4.git/hooks/post-receive.d/gitea b/tests/gitea-repositories-meta/user5/repo4.git/hooks/post-receive.d/gitea deleted file mode 100755 index 43a948da3a983..0000000000000 --- a/tests/gitea-repositories-meta/user5/repo4.git/hooks/post-receive.d/gitea +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env bash -"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" post-receive diff --git a/tests/gitea-repositories-meta/user5/repo4.git/hooks/pre-receive b/tests/gitea-repositories-meta/user5/repo4.git/hooks/pre-receive deleted file mode 100755 index 412701305369c..0000000000000 --- a/tests/gitea-repositories-meta/user5/repo4.git/hooks/pre-receive +++ /dev/null @@ -1,7 +0,0 @@ -#!/usr/bin/env bash -ORI_DIR=`pwd` -SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) -cd "$ORI_DIR" -for i in `ls "$SHELL_FOLDER/pre-receive.d"`; do - sh "$SHELL_FOLDER/pre-receive.d/$i" -done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/user5/repo4.git/hooks/pre-receive.d/gitea b/tests/gitea-repositories-meta/user5/repo4.git/hooks/pre-receive.d/gitea deleted file mode 100755 index 49d09406364a5..0000000000000 --- a/tests/gitea-repositories-meta/user5/repo4.git/hooks/pre-receive.d/gitea +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env bash -"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" pre-receive diff --git a/tests/gitea-repositories-meta/user5/repo4.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/user5/repo4.git/hooks/proc-receive.d/gitea deleted file mode 100755 index e69de29bb2d1d..0000000000000 diff --git a/tests/gitea-repositories-meta/user5/repo4.git/hooks/update b/tests/gitea-repositories-meta/user5/repo4.git/hooks/update deleted file mode 100755 index c186fe4a18b0f..0000000000000 --- a/tests/gitea-repositories-meta/user5/repo4.git/hooks/update +++ /dev/null @@ -1,7 +0,0 @@ -#!/usr/bin/env bash -ORI_DIR=`pwd` -SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) -cd "$ORI_DIR" -for i in `ls "$SHELL_FOLDER/update.d"`; do - sh "$SHELL_FOLDER/update.d/$i" $1 $2 $3 -done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/user5/repo4.git/hooks/update.d/gitea b/tests/gitea-repositories-meta/user5/repo4.git/hooks/update.d/gitea deleted file mode 100755 index 38101c242664a..0000000000000 --- a/tests/gitea-repositories-meta/user5/repo4.git/hooks/update.d/gitea +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env bash -"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" update $1 $2 $3 From 09f0dbce9ce7f7d80f02f31ffa781dcc073e38b5 Mon Sep 17 00:00:00 2001 From: a1012112796 <1012112796@qq.com> Date: Tue, 22 Aug 2023 00:43:15 +0000 Subject: [PATCH 05/26] new fixture generation --- contrib/dev/dev.go | 79 ++++++- models/db/engine.go | 21 ++ models/fixture_generation.go | 7 +- models/issues/pull.go | 4 + models/issues/pull_test.go | 3 + models/issues/review.go | 5 + models/issues/review_list.go | 3 + models/issues/review_test.go | 9 +- models/unittest/fixtures.go | 393 +++++++++++++++++++++++++++++-- models/unittest/fixtures_test.go | 104 ++++++++ models/unittest/testdb.go | 5 +- tests/dev.ini.tmpl | 2 +- 12 files changed, 606 insertions(+), 29 deletions(-) create mode 100644 models/unittest/fixtures_test.go diff --git a/contrib/dev/dev.go b/contrib/dev/dev.go index 2e3a05beeb2e9..5c844c536adcb 100644 --- a/contrib/dev/dev.go +++ b/contrib/dev/dev.go @@ -5,11 +5,13 @@ package main import ( "context" + "fmt" "io/fs" "net/http" "os" "path" "path/filepath" + "strings" _ "code.gitea.io/gitea/models" "code.gitea.io/gitea/models/db" @@ -19,6 +21,7 @@ import ( "code.gitea.io/gitea/modules/setting" "code.gitea.io/gitea/modules/util" "code.gitea.io/gitea/routers" + "code.gitea.io/gitea/routers/common" "gopkg.in/yaml.v3" ) @@ -50,15 +53,82 @@ func main() { <-graceful.GetManager().Done() log.Info("PID: %d Gitea Web Finished", os.Getpid()) fixGitReops() - err = unittest.DumpAllFixtures() + + ctxDb, cancel := context.WithCancel(context.Background()) + err = common.InitDBEngine(ctxDb) + if err != nil { + log.Fatal("common.InitDBEngine: %v", err) + } + err = unittest.DumpAllFixtures(filepath.Join(pwd, "models", "fixtures")) + cancel() + if err != nil { log.Fatal("unittest.DumpAllFixtures: %v", err) } removeNotNeededFixtures(pwd) + recheckFixtures(pwd) log.GetManager().Close() } +func buildInterfacesSlice(records interface{}) ([]interface{}, error) { + switch records := records.(type) { + case []interface{}: + return records, nil + case map[string]interface{}: + var result []interface{} + for _, record := range records { + result = append(result, record) + } + return result, nil + } + + return nil, fmt.Errorf("testfixtures: fixture is not a slice or map") +} + +func recheckFixtures(pathToGiteaRoot string) { + err := filepath.Walk(path.Join(pathToGiteaRoot, "models", "fixtures"), func(pth string, info fs.FileInfo, _ error) error { + if info.IsDir() { + return nil + } + + fileName := path.Base(pth) + if !strings.HasSuffix(fileName, ".yml") { + return nil + } + + log.Info("recheck %s", fileName) + + content, err := os.ReadFile(pth) + if err != nil { + return err + } + + var records interface{} + if err := yaml.Unmarshal(content, &records); err != nil { + return fmt.Errorf("could not unmarshal YAML: %w", err) + } + + result, err := buildInterfacesSlice(records) + if err != nil { + return err + } + + for _, record := range result { + _, ok := record.(map[string]interface{}) + if !ok { + return fmt.Errorf("testfixtures: could not cast record: not a map[interface{}]interface{}") + } + } + + return nil + }) + + if err != nil { + log.Fatal("recheckFixtures: %v", err) + } +} + func listSubDir(dirname string, onDir func(path, name string) error) error { fileInfos, err := os.ReadDir(dirname) if err != nil { @@ -228,8 +298,7 @@ func initDev(pathToGiteaRoot string) { fixturesDir := filepath.Join(pathToGiteaRoot, "models", "fixtures") if err := unittest.InitFixtures(unittest.FixturesOptions{ - Dir: fixturesDir, - InitDumper: true, + Dir: fixturesDir, }); err != nil { log.Fatal("CreateTestEngine: %+v", err) } @@ -271,6 +340,10 @@ func removeNotNeededFixtures(pathToGiteaRoot string) { } fileName := path.Base(pth) + if !strings.HasSuffix(fileName, ".yml") { + return nil + } + if util.SliceContains(nootNeededFixtures, fileName) { return os.Remove(pth) } diff --git a/models/db/engine.go b/models/db/engine.go index 182d8cd993696..018cea649e6fb 100755 --- a/models/db/engine.go +++ b/models/db/engine.go @@ -299,3 +299,24 @@ func SetLogSQL(ctx context.Context, on bool) { sess.Engine().ShowSQL(on) } } + +func AllTablesForEach(hanle func(info *schemas.Table, bean any) error) error { + for _, table := range tables { + info, err := TableInfo(table) + if err != nil { + return err + } + + err = hanle(info, table) + if err != nil { + return err + } + } + + return nil +} + +// FixtureDumper custom interface to generate a fixture file +type FixtureDumper interface { + FixtureDumper(dbCtx context.Context, fd io.Writer) error +} diff --git a/models/fixture_generation.go b/models/fixture_generation.go index 33e80e8339fdc..7e4aebb6a11ec 100644 --- a/models/fixture_generation.go +++ b/models/fixture_generation.go @@ -35,10 +35,11 @@ func GetYamlFixturesAccess() (string, error) { } for i, a := range accesses { - fmt.Fprintf(&b, "- id: %d\n", i+1) - fmt.Fprintf(&b, " mode: %d\n", a.Mode) - fmt.Fprintf(&b, " repo_id: %d\n", a.RepoID) + fmt.Fprintf(&b, "-\n") + fmt.Fprintf(&b, " id: %d\n", i+1) fmt.Fprintf(&b, " user_id: %d\n", a.UserID) + fmt.Fprintf(&b, " repo_id: %d\n", a.RepoID) + fmt.Fprintf(&b, " mode: %d\n\n", a.Mode) } return b.String(), nil diff --git a/models/issues/pull.go b/models/issues/pull.go index 676224a3d6982..6e1edaf358163 100644 --- a/models/issues/pull.go +++ b/models/issues/pull.go @@ -320,6 +320,10 @@ func (pr *PullRequest) LoadRequestedReviewers(ctx context.Context) error { return err } for _, review := range reviews { + if review.Type != ReviewTypeRequest { + continue + } + pr.RequestedReviewers = append(pr.RequestedReviewers, review.Reviewer) } diff --git a/models/issues/pull_test.go b/models/issues/pull_test.go index fa1f551adb936..6960ac77f46f0 100644 --- a/models/issues/pull_test.go +++ b/models/issues/pull_test.go @@ -88,6 +88,9 @@ func TestLoadRequestedReviewers(t *testing.T) { user1, err := user_model.GetUserByID(db.DefaultContext, 1) assert.NoError(t, err) + assert.NoError(t, pull.LoadRequestedReviewers(db.DefaultContext)) + assert.Len(t, pull.RequestedReviewers, 0) + comment, err := issues_model.AddReviewRequest(db.DefaultContext, issue, user1, &user_model.User{}) assert.NoError(t, err) assert.NotNil(t, comment) diff --git a/models/issues/review.go b/models/issues/review.go index 931f1a2ba72e4..8ff20a213aee1 100644 --- a/models/issues/review.go +++ b/models/issues/review.go @@ -159,6 +159,11 @@ func (r *Review) LoadReviewer(ctx context.Context) (err error) { return err } r.Reviewer, err = user_model.GetPossibleUserByID(ctx, r.ReviewerID) + if user_model.IsErrUserNotExist(err) { + r.Reviewer = user_model.NewGhostUser() + return nil + } + return err } diff --git a/models/issues/review_list.go b/models/issues/review_list.go index 9f50d8e09d552..11bb20db9cd15 100644 --- a/models/issues/review_list.go +++ b/models/issues/review_list.go @@ -33,6 +33,9 @@ func (reviews ReviewList) LoadReviewers(ctx context.Context) error { } for _, review := range reviews { review.Reviewer = userMap[review.ReviewerID] + if review.Reviewer == nil { + review.Reviewer = user_model.NewGhostUser() + } } return nil } diff --git a/models/issues/review_test.go b/models/issues/review_test.go index 19816e864b86f..0a9309c241b89 100644 --- a/models/issues/review_test.go +++ b/models/issues/review_test.go @@ -142,6 +142,11 @@ func TestGetReviewersByIssueID(t *testing.T) { Reviewer: user2, Type: issues_model.ReviewTypeReject, UpdatedUnix: 946684814, + }, + &issues_model.Review{ + Reviewer: user_model.NewGhostUser(), + Type: issues_model.ReviewTypeReject, + UpdatedUnix: 946684815, }) allReviews, err := issues_model.GetReviewsByIssueID(issue.ID) @@ -149,7 +154,7 @@ func TestGetReviewersByIssueID(t *testing.T) { for _, review := range allReviews { assert.NoError(t, review.LoadReviewer(db.DefaultContext)) } - if assert.Len(t, allReviews, 3) { + if assert.Len(t, allReviews, 4) { for i, review := range allReviews { assert.Equal(t, expectedReviews[i].Reviewer, review.Reviewer) assert.Equal(t, expectedReviews[i].Type, review.Type) @@ -160,7 +165,7 @@ func TestGetReviewersByIssueID(t *testing.T) { allReviews, err = issues_model.GetReviewsByIssueID(issue.ID) assert.NoError(t, err) assert.NoError(t, allReviews.LoadReviewers(db.DefaultContext)) - if assert.Len(t, allReviews, 3) { + if assert.Len(t, allReviews, 4) { for i, review := range allReviews { assert.Equal(t, expectedReviews[i].Reviewer, review.Reviewer) assert.Equal(t, expectedReviews[i].Type, review.Type) diff --git a/models/unittest/fixtures.go b/models/unittest/fixtures.go index 7552783adb3c6..1d3e229a9f8c0 100644 --- a/models/unittest/fixtures.go +++ b/models/unittest/fixtures.go @@ -5,24 +5,29 @@ package unittest import ( + "encoding/json" "errors" "fmt" + "io" "os" + "path" + "reflect" + "strings" "time" "code.gitea.io/gitea/models/db" "code.gitea.io/gitea/modules/auth/password/hash" "code.gitea.io/gitea/modules/setting" + "code.gitea.io/gitea/modules/util" "github.com/go-testfixtures/testfixtures/v3" "xorm.io/xorm" + "xorm.io/xorm/convert" + "xorm.io/xorm/names" "xorm.io/xorm/schemas" ) -var ( - fixturesLoader *testfixtures.Loader - fixturesDumper *testfixtures.Dumper -) +var fixturesLoader *testfixtures.Loader // GetXORMEngine gets the XORM engine func GetXORMEngine(engine ...*xorm.Engine) (x *xorm.Engine) { @@ -76,23 +81,31 @@ func InitFixtures(opts FixturesOptions, engine ...*xorm.Engine) (err error) { setting.PasswordHashAlgo, _ = hash.SetDefaultPasswordHashAlgorithm("dummy") - if !opts.InitDumper { - return err - } - - fixturesDumper, err = testfixtures.NewDumper(testfixtures.DumpDatabase(e.DB().DB), - testfixtures.DumpDialect(dialect), - testfixtures.DumpDirectory(opts.Dir)) - return err } -func DumpAllFixtures() error { - if fixturesDumper == nil { - return errors.New("no fixturesDumper") - } +func DumpAllFixtures(dir string) error { + return db.AllTablesForEach(func(info *schemas.Table, bean any) error { + pth := path.Join(dir, info.Name+".yml") + fd, err := os.OpenFile(pth, os.O_CREATE|os.O_TRUNC|os.O_WRONLY, 0o644) + if err != nil { + return err + } + defer fd.Close() - return fixturesDumper.Dump() + sum, err := db.GetEngine(db.DefaultContext).Count(bean) + if err != nil { + return err + } + if sum == 0 { + _, err = fd.WriteString("[] # empty\n") + return err + } + + return db.GetEngine(db.DefaultContext).Iterate(bean, func(idx int, data interface{}) error { + return DefaultFixtureDumper(data, fd) + }) + }) } // LoadFixtures load fixtures for a test database @@ -146,3 +159,349 @@ func LoadFixtures(engine ...*xorm.Engine) error { return err } + +func isFieldNil(field reflect.Value) bool { + if !field.IsValid() { + return true + } + + switch field.Kind() { + case reflect.Ptr, reflect.Interface, reflect.Slice, reflect.Map, reflect.Chan, reflect.Func: + return field.IsNil() + default: + return false + } +} + +func isFieldPrivate(field reflect.StructField) bool { + return field.PkgPath != "" +} + +func defaultFixtureDumperVerbs(tableName string, actualValue reflect.Value, typeOfactualValue reflect.Type, fd io.Writer, mapper names.Mapper) error { + for i := 0; i < actualValue.NumField(); i++ { + field := actualValue.Field(i) + + fieldName := mapper.Obj2Table(actualValue.Type().Field(i).Name) + fieldType := typeOfactualValue.Field(i) + if isFieldPrivate(fieldType) { + continue + } + xormTags, err := splitXormTag(fieldType.Tag.Get("xorm")) + if err != nil { + return err + } + + if xormTags.HasTag("-") { + continue + } + + fieldValue := field.Interface() + isText := xormTags.HasTag("TEXT") + isJson := xormTags.HasTag("JSON") + conversion, hasconversion := fieldValue.(convert.Conversion) + if (!hasconversion) && isFieldNil(field) { + continue + } + + if !isText { + if strValue, ok := fieldValue.(string); ok { + if len(strValue) == 0 { + continue + } + } + } + + if xormTags.HasTag("EXTENDS") { + var actualValue2 reflect.Value + + if field.Kind() == reflect.Ptr { + actualValue2 = field.Elem() + } else { + actualValue2 = field + } + + typeOfactualValue2 := actualValue2.Type() + err = defaultFixtureDumperVerbs(tableName, actualValue2, typeOfactualValue2, fd, mapper) + if err != nil { + return err + } + + continue + } + + int64Type := reflect.TypeOf(int64(0)) + isInt64 := field.Type().ConvertibleTo(int64Type) + if fieldType.Type.Kind() == reflect.Struct && !isInt64 && !isText && !isJson { + return fmt.Errorf("%s: '%s' is a struct whcih can't be convert to a table field", tableName, xormTags.GetFieldName(fieldName)) + } + + _, err = fd.Write([]byte(fmt.Sprintf(" %s: ", xormTags.GetFieldName(fieldName)))) + if err != nil { + return err + } + + if isJson { + result, err := json.Marshal(fieldValue) + if err != nil { + return err + } + result2 := []byte{'\''} + result2 = append(result2, result...) + result2 = append(result2, []byte{'\'', '\n'}...) + + _, err = fd.Write(result2) + if err != nil { + return err + } + + continue + } + + var strValue []byte + if hasconversion { + strValue, err = conversion.ToDB() + if err != nil { + return err + } + } else if isInt64 { + intValue := field.Convert(int64Type).Int() + strValue = []byte(fmt.Sprintf("%d", intValue)) + } else { + strValue = []byte(fmt.Sprintf("%v", fieldValue)) + } + + isAllNumber := true + strValue2 := make([]byte, 0, len(strValue)) + for _, v := range strValue { + if v == '\'' { + isText = true + strValue2 = append(strValue2, v) + } + + if v == '#' { + isText = true + } + + if v < '0' || v > '9' { + isAllNumber = false + } + + strValue2 = append(strValue2, v) + } + + if isAllNumber && !isInt64 { + isText = true + } + + if isText { + strValue = []byte{'\''} + strValue = append(strValue, strValue2...) + strValue = append(strValue, '\'') + } else { + strValue = strValue2 + } + strValue = append(strValue, '\n') + + _, err = fd.Write(strValue) + if err != nil { + return err + } + } + + return nil +} + +func DefaultFixtureDumper(data any, fd io.Writer) error { + if data == nil { + return nil + } + + reflectedValue := reflect.ValueOf(data) + + if reflectedValue.Kind() != reflect.Ptr { + return errors.New("expected a pointer") + } + + actualValue := reflectedValue.Elem() + typeOfactualValue := actualValue.Type() + mapper := names.GonicMapper{} + + _, err := fd.Write([]byte("-\n")) + if err != nil { + return err + } + + err = defaultFixtureDumperVerbs(typeOfactualValue.Name(), actualValue, typeOfactualValue, fd, mapper) + if err != nil { + return err + } + + _, err = fd.Write([]byte("\n")) + if err != nil { + return err + } + + return nil +} + +type xormTag struct { + name string + params []string +} + +type xormTagList []xormTag + +func (l xormTagList) HasTag(name string) bool { + for _, tag := range l { + name2 := strings.ToUpper(tag.name) + if name2 == name { + return true + } + } + + return false +} + +func (l xormTagList) GetFieldName(defaultName string) string { + var reservedNames = []string{ + "TRUE", + "FALSE", + "BIT", + "TINYINT", + "SMALLINT", + "MEDIUMINT", + "INT", + "INTEGER", + "BIGINT", + "CHAR", + "VARCHAR", + "TINYTEXT", + "TEXT", + "MEDIUMTEXT", + "LONGTEXT", + "BINARY", + "VARBINARY", + "DATE", + "DATETIME", + "TIME", + "TIMESTAMP", + "TIMESTAMPZ", + "REAL", + "FLOAT", + "DOUBLE", + "DECIMAL", + "NUMERIC", + "TINYBLOB", + "BLOB", + "MEDIUMBLOB ", + "LONGBLOB", + "BYTEA", + "BOOL", + "SERIAL", + "BIGSERIAL", + "-", + "<-", + "->", + "PK", + "NULL", + "NOT", + "AUTOINCR", + "DEFAULT", + "CREATED", + "UPDATED", + "DELETED", + "VERSION", + "UTC", + "LOCAL", + "NOTNULL", + "INDEX", + "UNIQUE", + "CACHE", + "NOCACHE", + "COMMENT", + "EXTENDS", + "UNSIGNED", + "COLLATE", + "JSON", + } + + preTag := "" + for _, tag := range l { + if len(tag.params) > 0 { + continue + } + + if preTag == "DEFAULT" { + preTag = "" + continue + } + preTag = strings.ToUpper(tag.name) + + if util.SliceContains(reservedNames, strings.ToUpper(tag.name)) { + continue + } + + return tag.name + } + + return defaultName +} + +func splitXormTag(tagStr string) (xormTagList, error) { + tagStr = strings.TrimSpace(tagStr) + var ( + inQuote bool + inBigQuote bool + lastIdx int + curTag xormTag + paramStart int + tags []xormTag + ) + for i, t := range tagStr { + switch t { + case '\'': + inQuote = !inQuote + case ' ': + if !inQuote && !inBigQuote { + if lastIdx < i { + if curTag.name == "" { + curTag.name = tagStr[lastIdx:i] + } + tags = append(tags, curTag) + lastIdx = i + 1 + curTag = xormTag{} + } else if lastIdx == i { + lastIdx = i + 1 + } + } else if inBigQuote && !inQuote { + paramStart = i + 1 + } + case ',': + if !inQuote && !inBigQuote { + return nil, fmt.Errorf("comma[%d] of %s should be in quote or big quote", i, tagStr) + } + if !inQuote && inBigQuote { + curTag.params = append(curTag.params, strings.TrimSpace(tagStr[paramStart:i])) + paramStart = i + 1 + } + case '(': + inBigQuote = true + if !inQuote { + curTag.name = tagStr[lastIdx:i] + paramStart = i + 1 + } + case ')': + inBigQuote = false + if !inQuote { + curTag.params = append(curTag.params, tagStr[paramStart:i]) + } + } + } + if lastIdx < len(tagStr) { + if curTag.name == "" { + curTag.name = tagStr[lastIdx:] + } + tags = append(tags, curTag) + } + return tags, nil +} diff --git a/models/unittest/fixtures_test.go b/models/unittest/fixtures_test.go new file mode 100644 index 0000000000000..928bf1992f600 --- /dev/null +++ b/models/unittest/fixtures_test.go @@ -0,0 +1,104 @@ +// Copyright 2023 The Gitea Authors. All rights reserved. +// SPDX-License-Identifier: MIT + +package unittest + +import ( + "bytes" + "testing" + + "github.com/stretchr/testify/assert" + "gopkg.in/yaml.v3" +) + +type testSub2 int64 + +func (t testSub2) String() string { + return "unknow" +} + +type testSubConversion struct { +} + +func (c *testSubConversion) FromDB([]byte) error { + return nil +} +func (c *testSubConversion) ToDB() ([]byte, error) { + return []byte("testSubConversion"), nil +} + +func TestDefaultFixtureDumper(t *testing.T) { + type TestModelSub struct { + A int64 + B int64 + } + + type TestExtern struct { + AA string + BB int + } + + type TestModel struct { + ID int64 `xorm:"pk autoincr"` + A int64 `xorm:"BIGINT DEFAULT 133 NOT NULL"` + D []string `xorm:"JSON"` + Description string `xorm:"TEXT"` + IDString string + G *TestModelSub `xorm:"-"` + W string `xorm:"-"` + TestBool bool + privateTest int64 + EmptyStr string + EmptyStr2 string `xorm:"TEXT"` + Line2 string + F testSub2 + MM int64 `xorm:"dd_ww"` + ExternVerb TestExtern `xorm:"extends"` + NumStr string + JJ *testSubConversion + } + + buffer := bytes.NewBuffer(nil) + + err := DefaultFixtureDumper(&TestModel{ + ID: 12, + A: 10, + Description: "hello \" ' gitea", + D: []string{"test1", "test2"}, + W: "hello world", + IDString: "AAAAAA", + privateTest: 10, + Line2: "hello ' gitea", + F: 12, + MM: 10, + ExternVerb: TestExtern{ + AA: "hello world", + BB: 15, + }, + NumStr: "1234123412341234123412341234123412341234", + }, buffer) + + assert.NoError(t, err) + assert.EqualValues(t, `- + id: 12 + a: 10 + d: '["test1","test2"]' + description: 'hello " '' gitea' + id_string: AAAAAA + test_bool: false + empty_str2: '' + line2: 'hello '' gitea' + f: 12 + dd_ww: 10 + aa: hello world + bb: 15 + num_str: '1234123412341234123412341234123412341234' + jj: testSubConversion + +`, buffer.String()) + + result := make([]map[string]any, 0, 10) + err = yaml.Unmarshal(buffer.Bytes(), &result) + assert.EqualValues(t, "hello \" ' gitea", result[0]["description"]) + assert.NoError(t, err) +} diff --git a/models/unittest/testdb.go b/models/unittest/testdb.go index e697068c82f5c..1ff0fdc25bda8 100644 --- a/models/unittest/testdb.go +++ b/models/unittest/testdb.go @@ -196,9 +196,8 @@ func MainTest(m *testing.M, testOpts *TestOptions) { // FixturesOptions fixtures needs to be loaded options type FixturesOptions struct { - Dir string - Files []string - InitDumper bool + Dir string + Files []string } // CreateTestEngine creates a memory database and loads the fixture data from fixturesDir diff --git a/tests/dev.ini.tmpl b/tests/dev.ini.tmpl index 52f09a3171930..82645b36a7142 100644 --- a/tests/dev.ini.tmpl +++ b/tests/dev.ini.tmpl @@ -37,7 +37,7 @@ SIGNING_KEY = none [server] SSH_DOMAIN = localhost HTTP_PORT = 3003 -ROOT_URL = http://localhost:3003/ +ROOT_URL = http://localhost:3000/ DISABLE_SSH = false SSH_LISTEN_HOST = localhost SSH_PORT = 2203 From 0727a651dfa9d807f0f0588f21b970c0744d78b2 Mon Sep 17 00:00:00 2001 From: a1012112796 <1012112796@qq.com> Date: Sun, 3 Sep 2023 05:38:38 +0000 Subject: [PATCH 06/26] genereated new fixtures Signed-off-by: a1012112796 <1012112796@qq.com> --- models/fixtures/access_token.yml | 8 +- models/fixtures/action.yml | 85 ++- models/fixtures/action_run.yml | 18 +- models/fixtures/action_run_job.yml | 5 +- models/fixtures/action_runner_token.yml | 10 + models/fixtures/action_task.yml | 11 +- models/fixtures/attachment.yml | 3 +- models/fixtures/branch.yml | 117 ++- models/fixtures/collaboration.yml | 33 +- models/fixtures/comment.yml | 196 ++++- models/fixtures/commit_status.yml | 61 +- models/fixtures/commit_status_index.yml | 5 +- models/fixtures/email_address.yml | 1 + models/fixtures/follow.yml | 5 + models/fixtures/gpg_key.yml | 8 +- models/fixtures/hook_task.yml | 4 + models/fixtures/issue.yml | 61 +- models/fixtures/issue_assignees.yml | 4 + models/fixtures/issue_index.yml | 13 +- models/fixtures/issue_label.yml | 1 + models/fixtures/issue_user.yml | 1 + models/fixtures/issue_watch.yml | 1 + models/fixtures/label.yml | 37 +- models/fixtures/language_stat.yml | 36 + models/fixtures/lfs_meta_object.yml | 10 +- models/fixtures/milestone.yml | 26 +- models/fixtures/mirror.yml | 11 +- models/fixtures/notice.yml | 16 +- models/fixtures/notification.yml | 36 +- models/fixtures/oauth2_application.yml | 20 +- models/fixtures/oauth2_authorization_code.yml | 23 +- models/fixtures/oauth2_grant.yml | 25 +- models/fixtures/org_user.yml | 1 + models/fixtures/project.yml | 21 +- models/fixtures/project_board.yml | 17 +- models/fixtures/project_issue.yml | 7 +- models/fixtures/public_key.yml | 8 +- models/fixtures/pull_request.yml | 72 +- models/fixtures/reaction.yml | 26 +- models/fixtures/release.yml | 150 ++-- models/fixtures/renamed_branch.yml | 2 + models/fixtures/repo_indexer_status.yml | 133 +++- models/fixtures/repo_redirect.yml | 1 + models/fixtures/repo_topic.yml | 1 + models/fixtures/repo_transfer.yml | 1 + models/fixtures/repo_unit.yml | 180 +++-- models/fixtures/repository.yml | 685 +++++++++++++++++- models/fixtures/review.yml | 143 +++- models/fixtures/star.yml | 3 + models/fixtures/stopwatch.yml | 5 +- models/fixtures/system_setting.yml | 5 +- models/fixtures/team.yml | 41 +- models/fixtures/team_repo.yml | 3 +- models/fixtures/team_unit.yml | 58 +- models/fixtures/team_user.yml | 1 + models/fixtures/topic.yml | 13 + models/fixtures/tracked_time.yml | 37 +- models/fixtures/two_factor.yml | 2 +- models/fixtures/user.yml | 264 +++++-- models/fixtures/user_open_id.yml | 1 + models/fixtures/user_redirect.yml | 1 + models/fixtures/watch.yml | 21 +- models/fixtures/webauthn_credential.yml | 2 + models/fixtures/webhook.yml | 51 +- .../hooks/post-receive | 7 + .../hooks/post-receive.d/gitea | 2 + .../hooks/pre-receive | 7 + .../hooks/pre-receive.d/gitea | 2 + .../hooks/proc-receive.d/gitea | 0 .../hooks/update | 7 + .../hooks/update.d/gitea | 2 + .../hooks/post-receive | 7 + .../hooks/post-receive.d/gitea | 2 + .../hooks/pre-receive | 7 + .../hooks/pre-receive.d/gitea | 2 + .../hooks/proc-receive.d/gitea | 0 .../hooks/update | 7 + .../hooks/update.d/gitea | 2 + .../migration/lfs-test.git/hooks/post-receive | 7 + .../lfs-test.git/hooks/post-receive.d/gitea | 2 + .../migration/lfs-test.git/hooks/pre-receive | 7 + .../lfs-test.git/hooks/pre-receive.d/gitea | 2 + .../migration/lfs-test.git/hooks/update | 7 + .../lfs-test.git/hooks/update.d/gitea | 2 + .../hooks/post-receive | 7 + .../hooks/post-receive.d/gitea | 2 + .../hooks/pre-receive | 7 + .../hooks/pre-receive.d/gitea | 2 + .../hooks/proc-receive.d/gitea | 0 .../repo_external_tracker.git/hooks/update | 7 + .../hooks/update.d/gitea | 2 + .../hooks/post-receive | 7 + .../hooks/post-receive.d/gitea | 2 + .../hooks/pre-receive | 7 + .../hooks/pre-receive.d/gitea | 2 + .../hooks/proc-receive.d/gitea | 0 .../hooks/update | 7 + .../hooks/update.d/gitea | 2 + .../hooks/post-receive | 7 + .../hooks/post-receive.d/gitea | 2 + .../hooks/pre-receive | 7 + .../hooks/pre-receive.d/gitea | 2 + .../hooks/proc-receive.d/gitea | 0 .../hooks/update | 7 + .../hooks/update.d/gitea | 2 + .../hooks/post-receive | 7 + .../hooks/post-receive.d/gitea | 2 + .../hooks/pre-receive | 7 + .../hooks/pre-receive.d/gitea | 2 + .../hooks/proc-receive.d/gitea | 0 .../hooks/update | 7 + .../hooks/update.d/gitea | 2 + .../hooks/post-receive | 7 + .../hooks/post-receive.d/gitea | 2 + .../hooks/pre-receive | 7 + .../hooks/pre-receive.d/gitea | 2 + .../hooks/proc-receive.d/gitea | 0 .../hooks/update | 7 + .../hooks/update.d/gitea | 2 + .../repo10.git/hooks/proc-receive.d/gitea | 0 .../repo11.git/hooks/proc-receive.d/gitea | 0 .../hooks/post-receive | 7 + .../hooks/post-receive.d/gitea | 2 + .../commits_search_test.git/hooks/pre-receive | 7 + .../hooks/pre-receive.d/gitea | 2 + .../hooks/proc-receive.d/gitea | 0 .../commits_search_test.git/hooks/update | 7 + .../hooks/update.d/gitea | 2 + .../user2/commitsonpr.git/hooks/post-receive | 7 + .../hooks/post-receive.d/gitea | 2 + .../user2/commitsonpr.git/hooks/pre-receive | 7 + .../commitsonpr.git/hooks/pre-receive.d/gitea | 2 + .../hooks/proc-receive.d/gitea | 0 .../user2/commitsonpr.git/hooks/update | 7 + .../commitsonpr.git/hooks/update.d/gitea | 2 + .../hooks/proc-receive.d/gitea | 0 .../user2/glob.git/hooks/post-receive | 7 + .../user2/glob.git/hooks/post-receive.d/gitea | 2 + .../user2/glob.git/hooks/pre-receive | 7 + .../user2/glob.git/hooks/pre-receive.d/gitea | 2 + .../user2/glob.git/hooks/proc-receive.d/gitea | 0 .../user2/glob.git/hooks/update | 7 + .../user2/glob.git/hooks/update.d/gitea | 2 + .../user2/lfs.git/hooks/post-receive | 7 + .../user2/lfs.git/hooks/post-receive.d/gitea | 2 + .../user2/lfs.git/hooks/pre-receive | 7 + .../user2/lfs.git/hooks/pre-receive.d/gitea | 2 + .../user2/lfs.git/hooks/proc-receive.d/gitea | 0 .../user2/lfs.git/hooks/update | 7 + .../user2/lfs.git/hooks/update.d/gitea | 2 + .../user2/readme-test.git/hooks/post-receive | 7 + .../hooks/post-receive.d/gitea | 2 + .../user2/readme-test.git/hooks/pre-receive | 7 + .../readme-test.git/hooks/pre-receive.d/gitea | 2 + .../hooks/proc-receive.d/gitea | 0 .../user2/readme-test.git/hooks/update | 7 + .../readme-test.git/hooks/update.d/gitea | 2 + .../user2/repo-release.git/hooks/post-receive | 7 + .../hooks/post-receive.d/gitea | 2 + .../user2/repo-release.git/hooks/pre-receive | 7 + .../hooks/pre-receive.d/gitea | 2 + .../hooks/proc-receive.d/gitea | 0 .../user2/repo-release.git/hooks/update | 7 + .../repo-release.git/hooks/update.d/gitea | 2 + .../repo1.git/hooks/proc-receive.d/gitea | 0 .../repo15.git/hooks/proc-receive.d/gitea | 0 .../user2/repo16.git/hooks/post-receive | 7 + .../repo16.git/hooks/post-receive.d/gitea | 2 + .../user2/repo16.git/hooks/pre-receive | 7 + .../repo16.git/hooks/pre-receive.d/gitea | 2 + .../repo16.git/hooks/proc-receive.d/gitea | 0 .../user2/repo16.git/hooks/update | 7 + .../user2/repo16.git/hooks/update.d/gitea | 2 + .../user2/repo2.git/hooks/post-receive | 7 + .../repo2.git/hooks/post-receive.d/gitea | 2 + .../user2/repo2.git/hooks/pre-receive | 7 + .../user2/repo2.git/hooks/pre-receive.d/gitea | 2 + .../repo2.git/hooks/proc-receive.d/gitea | 0 .../user2/repo2.git/hooks/update | 7 + .../user2/repo2.git/hooks/update.d/gitea | 2 + .../user2/repo20.git/hooks/post-receive | 20 +- .../user2/repo20.git/hooks/pre-receive | 20 +- .../repo20.git/hooks/proc-receive.d/gitea | 0 .../user2/repo20.git/hooks/update | 19 +- .../user2/utf8.git/hooks/proc-receive.d/gitea | 0 .../user27/repo49.git/hooks/post-receive | 20 +- .../repo49.git/hooks/post-receive.d/gitea | 0 .../user27/repo49.git/hooks/pre-receive | 20 +- .../repo49.git/hooks/pre-receive.d/gitea | 0 .../repo49.git/hooks/proc-receive.d/gitea | 0 .../user27/repo49.git/hooks/update | 19 +- .../user27/repo49.git/hooks/update.d/gitea | 0 .../user27/template1.git/hooks/post-receive | 20 +- .../template1.git/hooks/post-receive.d/gitea | 0 .../user27/template1.git/hooks/pre-receive | 20 +- .../template1.git/hooks/pre-receive.d/gitea | 0 .../template1.git/hooks/proc-receive.d/gitea | 0 .../user27/template1.git/hooks/update | 19 +- .../user27/template1.git/hooks/update.d/gitea | 0 .../repo3.git/hooks/proc-receive.d/gitea | 0 .../repo5.git/hooks/proc-receive.d/gitea | 0 .../user30/renderer.git/hooks/post-receive | 20 +- .../renderer.git/hooks/post-receive.d/gitea | 0 .../user30/renderer.git/hooks/pre-receive | 20 +- .../renderer.git/hooks/pre-receive.d/gitea | 0 .../renderer.git/hooks/proc-receive.d/gitea | 0 .../user30/renderer.git/hooks/update | 19 +- .../user30/renderer.git/hooks/update.d/gitea | 0 .../user5/repo4.git/hooks/post-receive | 7 + .../repo4.git/hooks/post-receive.d/gitea | 2 + .../user5/repo4.git/hooks/pre-receive | 7 + .../user5/repo4.git/hooks/pre-receive.d/gitea | 2 + .../repo4.git/hooks/proc-receive.d/gitea | 0 .../user5/repo4.git/hooks/update | 7 + .../user5/repo4.git/hooks/update.d/gitea | 2 + 215 files changed, 2857 insertions(+), 685 deletions(-) create mode 100644 models/fixtures/action_runner_token.yml create mode 100644 models/fixtures/language_stat.yml create mode 100755 tests/gitea-repositories-meta/limited_org/private_repo_on_limited_org.git/hooks/post-receive create mode 100755 tests/gitea-repositories-meta/limited_org/private_repo_on_limited_org.git/hooks/post-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/limited_org/private_repo_on_limited_org.git/hooks/pre-receive create mode 100755 tests/gitea-repositories-meta/limited_org/private_repo_on_limited_org.git/hooks/pre-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/limited_org/private_repo_on_limited_org.git/hooks/proc-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/limited_org/private_repo_on_limited_org.git/hooks/update create mode 100755 tests/gitea-repositories-meta/limited_org/private_repo_on_limited_org.git/hooks/update.d/gitea create mode 100755 tests/gitea-repositories-meta/limited_org/public_repo_on_limited_org.git/hooks/post-receive create mode 100755 tests/gitea-repositories-meta/limited_org/public_repo_on_limited_org.git/hooks/post-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/limited_org/public_repo_on_limited_org.git/hooks/pre-receive create mode 100755 tests/gitea-repositories-meta/limited_org/public_repo_on_limited_org.git/hooks/pre-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/limited_org/public_repo_on_limited_org.git/hooks/proc-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/limited_org/public_repo_on_limited_org.git/hooks/update create mode 100755 tests/gitea-repositories-meta/limited_org/public_repo_on_limited_org.git/hooks/update.d/gitea create mode 100755 tests/gitea-repositories-meta/migration/lfs-test.git/hooks/post-receive create mode 100755 tests/gitea-repositories-meta/migration/lfs-test.git/hooks/post-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/migration/lfs-test.git/hooks/pre-receive create mode 100755 tests/gitea-repositories-meta/migration/lfs-test.git/hooks/pre-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/migration/lfs-test.git/hooks/update create mode 100755 tests/gitea-repositories-meta/migration/lfs-test.git/hooks/update.d/gitea create mode 100755 tests/gitea-repositories-meta/org26/repo_external_tracker.git/hooks/post-receive create mode 100755 tests/gitea-repositories-meta/org26/repo_external_tracker.git/hooks/post-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/org26/repo_external_tracker.git/hooks/pre-receive create mode 100755 tests/gitea-repositories-meta/org26/repo_external_tracker.git/hooks/pre-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/org26/repo_external_tracker.git/hooks/proc-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/org26/repo_external_tracker.git/hooks/update create mode 100755 tests/gitea-repositories-meta/org26/repo_external_tracker.git/hooks/update.d/gitea create mode 100755 tests/gitea-repositories-meta/org26/repo_external_tracker_alpha.git/hooks/post-receive create mode 100755 tests/gitea-repositories-meta/org26/repo_external_tracker_alpha.git/hooks/post-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/org26/repo_external_tracker_alpha.git/hooks/pre-receive create mode 100755 tests/gitea-repositories-meta/org26/repo_external_tracker_alpha.git/hooks/pre-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/org26/repo_external_tracker_alpha.git/hooks/proc-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/org26/repo_external_tracker_alpha.git/hooks/update create mode 100755 tests/gitea-repositories-meta/org26/repo_external_tracker_alpha.git/hooks/update.d/gitea create mode 100755 tests/gitea-repositories-meta/org26/repo_external_tracker_numeric.git/hooks/post-receive create mode 100755 tests/gitea-repositories-meta/org26/repo_external_tracker_numeric.git/hooks/post-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/org26/repo_external_tracker_numeric.git/hooks/pre-receive create mode 100755 tests/gitea-repositories-meta/org26/repo_external_tracker_numeric.git/hooks/pre-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/org26/repo_external_tracker_numeric.git/hooks/proc-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/org26/repo_external_tracker_numeric.git/hooks/update create mode 100755 tests/gitea-repositories-meta/org26/repo_external_tracker_numeric.git/hooks/update.d/gitea create mode 100755 tests/gitea-repositories-meta/privated_org/private_repo_on_private_org.git/hooks/post-receive create mode 100755 tests/gitea-repositories-meta/privated_org/private_repo_on_private_org.git/hooks/post-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/privated_org/private_repo_on_private_org.git/hooks/pre-receive create mode 100755 tests/gitea-repositories-meta/privated_org/private_repo_on_private_org.git/hooks/pre-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/privated_org/private_repo_on_private_org.git/hooks/proc-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/privated_org/private_repo_on_private_org.git/hooks/update create mode 100755 tests/gitea-repositories-meta/privated_org/private_repo_on_private_org.git/hooks/update.d/gitea create mode 100755 tests/gitea-repositories-meta/privated_org/public_repo_on_private_org.git/hooks/post-receive create mode 100755 tests/gitea-repositories-meta/privated_org/public_repo_on_private_org.git/hooks/post-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/privated_org/public_repo_on_private_org.git/hooks/pre-receive create mode 100755 tests/gitea-repositories-meta/privated_org/public_repo_on_private_org.git/hooks/pre-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/privated_org/public_repo_on_private_org.git/hooks/proc-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/privated_org/public_repo_on_private_org.git/hooks/update create mode 100755 tests/gitea-repositories-meta/privated_org/public_repo_on_private_org.git/hooks/update.d/gitea create mode 100755 tests/gitea-repositories-meta/user12/repo10.git/hooks/proc-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/user13/repo11.git/hooks/proc-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/user2/commits_search_test.git/hooks/post-receive create mode 100755 tests/gitea-repositories-meta/user2/commits_search_test.git/hooks/post-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/user2/commits_search_test.git/hooks/pre-receive create mode 100755 tests/gitea-repositories-meta/user2/commits_search_test.git/hooks/pre-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/user2/commits_search_test.git/hooks/proc-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/user2/commits_search_test.git/hooks/update create mode 100755 tests/gitea-repositories-meta/user2/commits_search_test.git/hooks/update.d/gitea create mode 100755 tests/gitea-repositories-meta/user2/commitsonpr.git/hooks/post-receive create mode 100755 tests/gitea-repositories-meta/user2/commitsonpr.git/hooks/post-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/user2/commitsonpr.git/hooks/pre-receive create mode 100755 tests/gitea-repositories-meta/user2/commitsonpr.git/hooks/pre-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/user2/commitsonpr.git/hooks/proc-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/user2/commitsonpr.git/hooks/update create mode 100755 tests/gitea-repositories-meta/user2/commitsonpr.git/hooks/update.d/gitea create mode 100755 tests/gitea-repositories-meta/user2/git_hooks_test.git/hooks/proc-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/user2/glob.git/hooks/post-receive create mode 100755 tests/gitea-repositories-meta/user2/glob.git/hooks/post-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/user2/glob.git/hooks/pre-receive create mode 100755 tests/gitea-repositories-meta/user2/glob.git/hooks/pre-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/user2/glob.git/hooks/proc-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/user2/glob.git/hooks/update create mode 100755 tests/gitea-repositories-meta/user2/glob.git/hooks/update.d/gitea create mode 100755 tests/gitea-repositories-meta/user2/lfs.git/hooks/post-receive create mode 100755 tests/gitea-repositories-meta/user2/lfs.git/hooks/post-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/user2/lfs.git/hooks/pre-receive create mode 100755 tests/gitea-repositories-meta/user2/lfs.git/hooks/pre-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/user2/lfs.git/hooks/proc-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/user2/lfs.git/hooks/update create mode 100755 tests/gitea-repositories-meta/user2/lfs.git/hooks/update.d/gitea create mode 100755 tests/gitea-repositories-meta/user2/readme-test.git/hooks/post-receive create mode 100755 tests/gitea-repositories-meta/user2/readme-test.git/hooks/post-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/user2/readme-test.git/hooks/pre-receive create mode 100755 tests/gitea-repositories-meta/user2/readme-test.git/hooks/pre-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/user2/readme-test.git/hooks/proc-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/user2/readme-test.git/hooks/update create mode 100755 tests/gitea-repositories-meta/user2/readme-test.git/hooks/update.d/gitea create mode 100755 tests/gitea-repositories-meta/user2/repo-release.git/hooks/post-receive create mode 100755 tests/gitea-repositories-meta/user2/repo-release.git/hooks/post-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/user2/repo-release.git/hooks/pre-receive create mode 100755 tests/gitea-repositories-meta/user2/repo-release.git/hooks/pre-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/user2/repo-release.git/hooks/proc-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/user2/repo-release.git/hooks/update create mode 100755 tests/gitea-repositories-meta/user2/repo-release.git/hooks/update.d/gitea create mode 100755 tests/gitea-repositories-meta/user2/repo1.git/hooks/proc-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/user2/repo15.git/hooks/proc-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/user2/repo16.git/hooks/post-receive create mode 100755 tests/gitea-repositories-meta/user2/repo16.git/hooks/post-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/user2/repo16.git/hooks/pre-receive create mode 100755 tests/gitea-repositories-meta/user2/repo16.git/hooks/pre-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/user2/repo16.git/hooks/proc-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/user2/repo16.git/hooks/update create mode 100755 tests/gitea-repositories-meta/user2/repo16.git/hooks/update.d/gitea create mode 100755 tests/gitea-repositories-meta/user2/repo2.git/hooks/post-receive create mode 100755 tests/gitea-repositories-meta/user2/repo2.git/hooks/post-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/user2/repo2.git/hooks/pre-receive create mode 100755 tests/gitea-repositories-meta/user2/repo2.git/hooks/pre-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/user2/repo2.git/hooks/proc-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/user2/repo2.git/hooks/update create mode 100755 tests/gitea-repositories-meta/user2/repo2.git/hooks/update.d/gitea create mode 100755 tests/gitea-repositories-meta/user2/repo20.git/hooks/proc-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/user2/utf8.git/hooks/proc-receive.d/gitea mode change 100644 => 100755 tests/gitea-repositories-meta/user27/repo49.git/hooks/post-receive mode change 100644 => 100755 tests/gitea-repositories-meta/user27/repo49.git/hooks/post-receive.d/gitea mode change 100644 => 100755 tests/gitea-repositories-meta/user27/repo49.git/hooks/pre-receive mode change 100644 => 100755 tests/gitea-repositories-meta/user27/repo49.git/hooks/pre-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/user27/repo49.git/hooks/proc-receive.d/gitea mode change 100644 => 100755 tests/gitea-repositories-meta/user27/repo49.git/hooks/update mode change 100644 => 100755 tests/gitea-repositories-meta/user27/repo49.git/hooks/update.d/gitea mode change 100644 => 100755 tests/gitea-repositories-meta/user27/template1.git/hooks/post-receive mode change 100644 => 100755 tests/gitea-repositories-meta/user27/template1.git/hooks/post-receive.d/gitea mode change 100644 => 100755 tests/gitea-repositories-meta/user27/template1.git/hooks/pre-receive mode change 100644 => 100755 tests/gitea-repositories-meta/user27/template1.git/hooks/pre-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/user27/template1.git/hooks/proc-receive.d/gitea mode change 100644 => 100755 tests/gitea-repositories-meta/user27/template1.git/hooks/update mode change 100644 => 100755 tests/gitea-repositories-meta/user27/template1.git/hooks/update.d/gitea create mode 100755 tests/gitea-repositories-meta/user3/repo3.git/hooks/proc-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/user3/repo5.git/hooks/proc-receive.d/gitea mode change 100644 => 100755 tests/gitea-repositories-meta/user30/renderer.git/hooks/post-receive mode change 100644 => 100755 tests/gitea-repositories-meta/user30/renderer.git/hooks/post-receive.d/gitea mode change 100644 => 100755 tests/gitea-repositories-meta/user30/renderer.git/hooks/pre-receive mode change 100644 => 100755 tests/gitea-repositories-meta/user30/renderer.git/hooks/pre-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/user30/renderer.git/hooks/proc-receive.d/gitea mode change 100644 => 100755 tests/gitea-repositories-meta/user30/renderer.git/hooks/update mode change 100644 => 100755 tests/gitea-repositories-meta/user30/renderer.git/hooks/update.d/gitea create mode 100755 tests/gitea-repositories-meta/user5/repo4.git/hooks/post-receive create mode 100755 tests/gitea-repositories-meta/user5/repo4.git/hooks/post-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/user5/repo4.git/hooks/pre-receive create mode 100755 tests/gitea-repositories-meta/user5/repo4.git/hooks/pre-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/user5/repo4.git/hooks/proc-receive.d/gitea create mode 100755 tests/gitea-repositories-meta/user5/repo4.git/hooks/update create mode 100755 tests/gitea-repositories-meta/user5/repo4.git/hooks/update.d/gitea diff --git a/models/fixtures/access_token.yml b/models/fixtures/access_token.yml index 791b3da1c459f..5985ace63bfee 100644 --- a/models/fixtures/access_token.yml +++ b/models/fixtures/access_token.yml @@ -2,10 +2,10 @@ id: 1 uid: 1 name: Token A - #token: d2c6c1ba3890b309189a8e618c72a162e4efbf36 token_hash: 2b3668e11cb82d3af8c6e4524fc7841297668f5008d1626f0ad3417e9fa39af84c268248b78c481daa7e5dc437784003494f token_salt: QuSiZr1byZ token_last_eight: e4efbf36 + scope: '' created_unix: 946687980 updated_unix: 946687980 @@ -13,10 +13,10 @@ id: 2 uid: 1 name: Token B - #token: 4c6f36e6cf498e2a448662f915d932c09c5a146c token_hash: 1a0e32a231ebbd582dc626c1543a42d3c63d4fa76c07c72862721467c55e8f81c923d60700f0528b5f5f443f055559d3a279 token_salt: Lfwopukrq5 token_last_eight: 9c5a146c + scope: '' created_unix: 946687980 updated_unix: 946687980 @@ -24,10 +24,10 @@ id: 3 uid: 2 name: Token A - #token: 90a18faa671dc43924b795806ffe4fd169d28c91 token_hash: d6d404048048812d9e911d93aefbe94fc768d4876fdf75e3bef0bdc67828e0af422846d3056f2f25ec35c51dc92075685ec5 token_salt: 99ArgXKlQQ token_last_eight: 69d28c91 + scope: '' created_unix: 946687980 updated_unix: 946687980 -#commented out tokens so you can see what they are in plaintext + diff --git a/models/fixtures/action.yml b/models/fixtures/action.yml index af9ce93ba5c5d..fb49bef1b44cb 100644 --- a/models/fixtures/action.yml +++ b/models/fixtures/action.yml @@ -1,75 +1,108 @@ - id: 1 user_id: 2 - op_type: 12 # close issue + op_type: 12 act_user_id: 2 - repo_id: 2 # private + repo_id: 2 + comment_id: 0 + is_deleted: false is_private: true + content: '' created_unix: 1603228283 - id: 2 user_id: 3 - op_type: 2 # rename repo + op_type: 2 act_user_id: 2 - repo_id: 3 # private + repo_id: 3 + comment_id: 0 + is_deleted: false is_private: true - content: oldRepoName + content: 'oldRepoName' + created_unix: 0 - id: 3 user_id: 11 - op_type: 1 # create repo + op_type: 1 act_user_id: 11 - repo_id: 9 # public + repo_id: 9 + comment_id: 0 + is_deleted: false is_private: false + content: '' + created_unix: 0 - id: 4 user_id: 16 - op_type: 12 # close issue + op_type: 12 act_user_id: 16 - repo_id: 22 # private + repo_id: 22 + comment_id: 0 + is_deleted: false is_private: true + content: '' created_unix: 1603267920 -- id: 5 +- + id: 5 user_id: 10 - op_type: 1 # create repo + op_type: 1 act_user_id: 10 - repo_id: 6 # private + repo_id: 6 + comment_id: 0 + is_deleted: false is_private: true + content: '' created_unix: 1603010100 -- id: 6 +- + id: 6 user_id: 10 - op_type: 1 # create repo + op_type: 1 act_user_id: 10 - repo_id: 7 # private + repo_id: 7 + comment_id: 0 + is_deleted: false is_private: true + content: '' created_unix: 1603011300 -- id: 7 +- + id: 7 user_id: 10 - op_type: 1 # create repo + op_type: 1 act_user_id: 10 - repo_id: 8 # public + repo_id: 8 + comment_id: 0 + is_deleted: false is_private: false - created_unix: 1603011540 # grouped with id:7 + content: '' + created_unix: 1603011540 -- id: 8 +- + id: 8 user_id: 1 - op_type: 12 # close issue + op_type: 12 act_user_id: 1 - repo_id: 1700 # dangling intentional + repo_id: 1700 + comment_id: 0 + is_deleted: false is_private: false + content: '' created_unix: 1603011541 -- id: 9 +- + id: 9 user_id: 34 - op_type: 12 # close issue + op_type: 12 act_user_id: 34 - repo_id: 1 # public + repo_id: 1 + comment_id: 0 + is_deleted: false is_private: false + content: '4|' created_unix: 1680454039 - content: '4|' # issueId 5 + diff --git a/models/fixtures/action_run.yml b/models/fixtures/action_run.yml index 2c2151f354af6..1bccccb184c08 100644 --- a/models/fixtures/action_run.yml +++ b/models/fixtures/action_run.yml @@ -1,19 +1,21 @@ - id: 791 - title: "update actions" + title: update actions repo_id: 4 owner_id: 1 - workflow_id: "artifact.yaml" + workflow_id: artifact.yaml index: 187 trigger_user_id: 1 - ref: "refs/heads/master" - commit_sha: "c2d72f548424103f01ee1dc02889c1e2bff816b0" - event: "push" - is_fork_pull_request: 0 + ref: refs/heads/master + commit_sha: c2d72f548424103f01ee1dc02889c1e2bff816b0 + is_fork_pull_request: false + need_approval: false + approved_by: 0 + event: push status: 1 + version: 0 started: 1683636528 stopped: 1683636626 created: 1683636108 updated: 1683636626 - need_approval: 0 - approved_by: 0 + diff --git a/models/fixtures/action_run_job.yml b/models/fixtures/action_run_job.yml index 071998b9796f9..c4910bf784f09 100644 --- a/models/fixtures/action_run_job.yml +++ b/models/fixtures/action_run_job.yml @@ -4,7 +4,7 @@ repo_id: 4 owner_id: 1 commit_sha: c2d72f548424103f01ee1dc02889c1e2bff816b0 - is_fork_pull_request: 0 + is_fork_pull_request: false name: job_2 attempt: 1 job_id: job_2 @@ -12,3 +12,6 @@ status: 1 started: 1683636528 stopped: 1683636626 + created: 0 + updated: 0 + diff --git a/models/fixtures/action_runner_token.yml b/models/fixtures/action_runner_token.yml new file mode 100644 index 0000000000000..50fa0cb6955b9 --- /dev/null +++ b/models/fixtures/action_runner_token.yml @@ -0,0 +1,10 @@ +- + id: 1 + token: jwgxZCIsaNceopvdNarcudaLiJykDvzLH65BdcRb + owner_id: 0 + repo_id: 0 + is_active: false + created: 1692689274 + updated: 1692689274 + deleted: 0 + diff --git a/models/fixtures/action_task.yml b/models/fixtures/action_task.yml index c78fb3c5d6377..0a249c8f12936 100644 --- a/models/fixtures/action_task.yml +++ b/models/fixtures/action_task.yml @@ -3,18 +3,21 @@ job_id: 192 attempt: 3 runner_id: 1 - status: 6 # 6 is the status code for "running", running task can upload artifacts + status: 6 started: 1683636528 stopped: 1683636626 repo_id: 4 owner_id: 1 commit_sha: c2d72f548424103f01ee1dc02889c1e2bff816b0 - is_fork_pull_request: 0 + is_fork_pull_request: false token_hash: 6d8ef48297195edcc8e22c70b3020eaa06c52976db67d39b4260c64a69a2cc1508825121b7b8394e48e00b1bf8718b2a867e token_salt: jVuKnSPGgy token_last_eight: eeb1a71a log_filename: artifact-test2/2f/47.log - log_in_storage: 1 + log_in_storage: true log_length: 707 log_size: 90179 - log_expired: 0 + log_expired: false + created: 0 + updated: 0 + diff --git a/models/fixtures/attachment.yml b/models/fixtures/attachment.yml index 9ad43fa2b7eb6..ed057448da888 100644 --- a/models/fixtures/attachment.yml +++ b/models/fixtures/attachment.yml @@ -118,7 +118,7 @@ - id: 10 uuid: a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a20 - repo_id: 0 # TestGetAttachment/NotLinked + repo_id: 0 issue_id: 0 release_id: 0 uploader_id: 8 @@ -140,3 +140,4 @@ download_count: 0 size: 0 created_unix: 946684800 + diff --git a/models/fixtures/branch.yml b/models/fixtures/branch.yml index 93003049c67fb..e492051c453a8 100644 --- a/models/fixtures/branch.yml +++ b/models/fixtures/branch.yml @@ -1,47 +1,140 @@ - id: 1 repo_id: 1 - name: 'foo' - commit_id: '65f1bf27bc3bf70f64657658635e66094edbcb4d' + name: foo + commit_id: 65f1bf27bc3bf70f64657658635e66094edbcb4d commit_message: 'first commit' - commit_time: 978307100 pusher_id: 1 is_deleted: true deleted_by_id: 1 deleted_unix: 978307200 + commit_time: 978307100 + created_unix: 0 + updated_unix: 0 - id: 2 repo_id: 1 - name: 'bar' - commit_id: '62fb502a7172d4453f0322a2cc85bddffa57f07a' + name: bar + commit_id: 62fb502a7172d4453f0322a2cc85bddffa57f07a commit_message: 'second commit' - commit_time: 978307100 pusher_id: 1 is_deleted: true deleted_by_id: 99 deleted_unix: 978307200 + commit_time: 978307100 + created_unix: 0 + updated_unix: 0 - id: 3 repo_id: 1 - name: 'branch2' - commit_id: '985f0301dba5e7b34be866819cd15ad3d8f508ee' + name: branch2 + commit_id: 985f0301dba5e7b34be866819cd15ad3d8f508ee commit_message: 'make pull5 outdated' - commit_time: 1579166279 pusher_id: 1 is_deleted: false deleted_by_id: 0 deleted_unix: 0 + commit_time: 1579166279 + created_unix: 0 + updated_unix: 0 - id: 4 repo_id: 1 - name: 'master' - commit_id: '65f1bf27bc3bf70f64657658635e66094edbcb4d' + name: master + commit_id: 65f1bf27bc3bf70f64657658635e66094edbcb4d commit_message: 'Initial commit' - commit_time: 1489927679 pusher_id: 1 is_deleted: false deleted_by_id: 0 deleted_unix: 0 + commit_time: 1489927679 + created_unix: 0 + updated_unix: 0 + +- + id: 10 + repo_id: 33 + name: Plus+Is+Not+Space + commit_id: 59e2c41e8f5140bb0182acebec17c8ad9831cc62 + commit_message: 'Add more evil files' + pusher_id: 0 + is_deleted: false + deleted_by_id: 0 + deleted_unix: 0 + commit_time: 1639616494 + created_unix: 1693719114 + updated_unix: 1693719114 + +- + id: 11 + repo_id: 33 + name: ブランチ + commit_id: 28d579e4920fbf4f66e71dab3e779d9fbf41422a + commit_message: 'Add japanese file to japanese branch only (for test too)' + pusher_id: 0 + is_deleted: false + deleted_by_id: 0 + deleted_unix: 0 + commit_time: 1535636842 + created_unix: 1693719114 + updated_unix: 1693719114 + +- + id: 12 + repo_id: 33 + name: Grüßen + commit_id: ebf146f803fccbc1471ef01d8fa0fe12c14e61a5 + commit_message: 'Add file with cyrillic name to use as reference' + pusher_id: 0 + is_deleted: false + deleted_by_id: 0 + deleted_unix: 0 + commit_time: 1535636032 + created_unix: 1693719114 + updated_unix: 1693719114 + +- + id: 13 + repo_id: 33 + name: ГлавнаяВетка + commit_id: ebf146f803fccbc1471ef01d8fa0fe12c14e61a5 + commit_message: 'Add file with cyrillic name to use as reference' + pusher_id: 0 + is_deleted: false + deleted_by_id: 0 + deleted_unix: 0 + commit_time: 1535636032 + created_unix: 1693719114 + updated_unix: 1693719114 + +- + id: 14 + repo_id: 33 + name: а/б/в + commit_id: ebf146f803fccbc1471ef01d8fa0fe12c14e61a5 + commit_message: 'Add file with cyrillic name to use as reference' + pusher_id: 0 + is_deleted: false + deleted_by_id: 0 + deleted_unix: 0 + commit_time: 1535636032 + created_unix: 1693719114 + updated_unix: 1693719114 + +- + id: 15 + repo_id: 33 + name: master + commit_id: 3aa73c3499bff049a352b4e265575373e964b89a + commit_message: 'Initial commit' + pusher_id: 0 + is_deleted: false + deleted_by_id: 0 + deleted_unix: 0 + commit_time: 1535593235 + created_unix: 1693719114 + updated_unix: 1693719114 + diff --git a/models/fixtures/collaboration.yml b/models/fixtures/collaboration.yml index ef77d22b24950..0312dadac38b1 100644 --- a/models/fixtures/collaboration.yml +++ b/models/fixtures/collaboration.yml @@ -2,46 +2,63 @@ id: 1 repo_id: 3 user_id: 2 - mode: 2 # write + mode: 2 + created_unix: 0 + updated_unix: 0 - id: 2 repo_id: 4 user_id: 4 - mode: 2 # write + mode: 2 + created_unix: 0 + updated_unix: 0 - id: 3 repo_id: 40 user_id: 4 - mode: 2 # write + mode: 2 + created_unix: 0 + updated_unix: 0 - id: 4 repo_id: 4 user_id: 29 - mode: 2 # write + mode: 2 + created_unix: 0 + updated_unix: 0 - id: 5 repo_id: 21 user_id: 15 - mode: 2 # write + mode: 2 + created_unix: 0 + updated_unix: 0 - id: 6 repo_id: 21 user_id: 18 - mode: 2 # write + mode: 2 + created_unix: 0 + updated_unix: 0 - id: 7 repo_id: 22 user_id: 15 - mode: 2 # write + mode: 2 + created_unix: 0 + updated_unix: 0 - id: 8 repo_id: 22 user_id: 18 - mode: 2 # write + mode: 2 + created_unix: 0 + updated_unix: 0 + diff --git a/models/fixtures/comment.yml b/models/fixtures/comment.yml index bd64680c8c787..d7c2ec640d729 100644 --- a/models/fixtures/comment.yml +++ b/models/fixtures/comment.yml @@ -1,68 +1,214 @@ - id: 1 - type: 7 # label + type: 7 poster_id: 2 - issue_id: 1 # in repo_id 1 + original_author_id: 0 + issue_id: 1 label_id: 1 - content: "1" + old_project_id: 0 + project_id: 0 + old_milestone_id: 0 + milestone_id: 0 + time_id: 0 + assignee_id: 0 + removed_assignee: false + assignee_team_id: 0 + resolve_doer_id: 0 + dependent_issue_id: 0 + commit_id: 0 + line: 0 + content: '1' created_unix: 946684810 + updated_unix: 0 + review_id: 0 + invalidated: false + ref_repo_id: 0 + ref_issue_id: 0 + ref_comment_id: 0 + ref_action: 0 + ref_is_pull: false + - id: 2 - type: 0 # comment - poster_id: 3 # user not watching (see watch.yml) - issue_id: 1 # in repo_id 1 - content: "good work!" + type: 0 + poster_id: 3 + original_author_id: 0 + issue_id: 1 + label_id: 0 + old_project_id: 0 + project_id: 0 + old_milestone_id: 0 + milestone_id: 0 + time_id: 0 + assignee_id: 0 + removed_assignee: false + assignee_team_id: 0 + resolve_doer_id: 0 + dependent_issue_id: 0 + commit_id: 0 + line: 0 + content: good work! created_unix: 946684811 updated_unix: 946684811 + review_id: 0 + invalidated: false + ref_repo_id: 0 + ref_issue_id: 0 + ref_comment_id: 0 + ref_action: 0 + ref_is_pull: false + - id: 3 - type: 0 # comment - poster_id: 5 # user not watching (see watch.yml) - issue_id: 1 # in repo_id 1 - content: "meh..." + type: 0 + poster_id: 5 + original_author_id: 0 + issue_id: 1 + label_id: 0 + old_project_id: 0 + project_id: 0 + old_milestone_id: 0 + milestone_id: 0 + time_id: 0 + assignee_id: 0 + removed_assignee: false + assignee_team_id: 0 + resolve_doer_id: 0 + dependent_issue_id: 0 + commit_id: 0 + line: 0 + content: meh... created_unix: 946684812 updated_unix: 946684812 + review_id: 0 + invalidated: false + ref_repo_id: 0 + ref_issue_id: 0 + ref_comment_id: 0 + ref_action: 0 + ref_is_pull: false + - id: 4 - type: 21 # code comment + type: 21 poster_id: 1 + original_author_id: 0 issue_id: 2 - content: "meh..." - review_id: 4 + label_id: 0 + old_project_id: 0 + project_id: 0 + old_milestone_id: 0 + milestone_id: 0 + time_id: 0 + assignee_id: 0 + removed_assignee: false + assignee_team_id: 0 + resolve_doer_id: 0 + dependent_issue_id: 0 + commit_id: 0 line: 4 - tree_path: "README.md" + tree_path: README.md + content: meh... created_unix: 946684812 + updated_unix: 0 + review_id: 4 invalidated: false + ref_repo_id: 0 + ref_issue_id: 0 + ref_comment_id: 0 + ref_action: 0 + ref_is_pull: false + - id: 5 - type: 21 # code comment + type: 21 poster_id: 1 + original_author_id: 0 issue_id: 2 - content: "meh..." + label_id: 0 + old_project_id: 0 + project_id: 0 + old_milestone_id: 0 + milestone_id: 0 + time_id: 0 + assignee_id: 0 + removed_assignee: false + assignee_team_id: 0 + resolve_doer_id: 0 + dependent_issue_id: 0 + commit_id: 0 line: -4 - tree_path: "README.md" + tree_path: README.md + content: meh... created_unix: 946684812 + updated_unix: 0 + review_id: 0 invalidated: false + ref_repo_id: 0 + ref_issue_id: 0 + ref_comment_id: 0 + ref_action: 0 + ref_is_pull: false - id: 6 - type: 21 # code comment + type: 21 poster_id: 1 + original_author_id: 0 issue_id: 2 - content: "it's already invalidated. boring..." + label_id: 0 + old_project_id: 0 + project_id: 0 + old_milestone_id: 0 + milestone_id: 0 + time_id: 0 + assignee_id: 0 + removed_assignee: false + assignee_team_id: 0 + resolve_doer_id: 0 + dependent_issue_id: 0 + commit_id: 0 line: -4 - tree_path: "README.md" + tree_path: README.md + content: 'it''s already invalidated. boring...' created_unix: 946684812 + updated_unix: 0 + review_id: 0 invalidated: true + ref_repo_id: 0 + ref_issue_id: 0 + ref_comment_id: 0 + ref_action: 0 + ref_is_pull: false - id: 7 - type: 21 # code comment + type: 21 poster_id: 100 + original_author_id: 0 issue_id: 3 - content: "a review from a deleted user" + label_id: 0 + old_project_id: 0 + project_id: 0 + old_milestone_id: 0 + milestone_id: 0 + time_id: 0 + assignee_id: 0 + removed_assignee: false + assignee_team_id: 0 + resolve_doer_id: 0 + dependent_issue_id: 0 + commit_id: 0 line: -4 - review_id: 10 - tree_path: "README.md" + tree_path: README.md + content: a review from a deleted user created_unix: 946684812 + updated_unix: 0 + review_id: 10 invalidated: true + ref_repo_id: 0 + ref_issue_id: 0 + ref_comment_id: 0 + ref_action: 0 + ref_is_pull: false + diff --git a/models/fixtures/commit_status.yml b/models/fixtures/commit_status.yml index 20d57975ef40d..6768f91557a7d 100644 --- a/models/fixtures/commit_status.yml +++ b/models/fixtures/commit_status.yml @@ -2,53 +2,64 @@ id: 1 index: 1 repo_id: 1 - state: "pending" - sha: "1234123412341234123412341234123412341234" - target_url: https://example.com/builds/ - description: My awesome CI-service - context: ci/awesomeness + state: pending + sha: '1234123412341234123412341234123412341234' + target_url: 'https://example.com/builds/' + description: 'My awesome CI-service' + context: 'ci/awesomeness' creator_id: 2 + created_unix: 0 + updated_unix: 0 - id: 2 index: 2 repo_id: 1 - state: "warning" - sha: "1234123412341234123412341234123412341234" - target_url: https://example.com/converage/ - description: My awesome Coverage service - context: cov/awesomeness + state: warning + sha: '1234123412341234123412341234123412341234' + target_url: 'https://example.com/converage/' + description: 'My awesome Coverage service' + context: 'cov/awesomeness' creator_id: 2 + created_unix: 0 + updated_unix: 0 - id: 3 index: 3 repo_id: 1 - state: "success" - sha: "1234123412341234123412341234123412341234" - target_url: https://example.com/converage/ - description: My awesome Coverage service - context: cov/awesomeness + state: success + sha: '1234123412341234123412341234123412341234' + target_url: 'https://example.com/converage/' + description: 'My awesome Coverage service' + context: 'cov/awesomeness' creator_id: 2 + created_unix: 0 + updated_unix: 0 - id: 4 index: 4 repo_id: 1 - state: "failure" - sha: "1234123412341234123412341234123412341234" - target_url: https://example.com/builds/ - description: My awesome CI-service - context: ci/awesomeness + state: failure + sha: '1234123412341234123412341234123412341234' + target_url: 'https://example.com/builds/' + description: 'My awesome CI-service' + context: 'ci/awesomeness' creator_id: 2 + created_unix: 0 + updated_unix: 0 - id: 5 index: 5 repo_id: 1 - state: "error" - sha: "1234123412341234123412341234123412341234" - target_url: https://example.com/builds/ - description: My awesome deploy service - context: deploy/awesomeness + state: error + sha: '1234123412341234123412341234123412341234' + target_url: 'https://example.com/builds/' + description: 'My awesome deploy service' + context: 'deploy/awesomeness' creator_id: 2 + created_unix: 0 + updated_unix: 0 + diff --git a/models/fixtures/commit_status_index.yml b/models/fixtures/commit_status_index.yml index 3f252e87ef092..21ab0a9883673 100644 --- a/models/fixtures/commit_status_index.yml +++ b/models/fixtures/commit_status_index.yml @@ -1,5 +1,6 @@ - id: 1 repo_id: 1 - sha: "1234123412341234123412341234123412341234" - max_index: 5 \ No newline at end of file + sha: '1234123412341234123412341234123412341234' + max_index: 5 + diff --git a/models/fixtures/email_address.yml b/models/fixtures/email_address.yml index 1c32379b60d94..8f7542ac407c9 100644 --- a/models/fixtures/email_address.yml +++ b/models/fixtures/email_address.yml @@ -285,3 +285,4 @@ lower_email: abcde@gitea.com is_activated: true is_primary: false + diff --git a/models/fixtures/follow.yml b/models/fixtures/follow.yml index b8d35828bf170..d4f41404be372 100644 --- a/models/fixtures/follow.yml +++ b/models/fixtures/follow.yml @@ -2,18 +2,23 @@ id: 1 user_id: 4 follow_id: 2 + created_unix: 0 - id: 2 user_id: 8 follow_id: 2 + created_unix: 0 - id: 3 user_id: 2 follow_id: 8 + created_unix: 0 - id: 4 user_id: 31 follow_id: 33 + created_unix: 0 + diff --git a/models/fixtures/gpg_key.yml b/models/fixtures/gpg_key.yml index 2d54313fdf1c7..1b63b5f786408 100644 --- a/models/fixtures/gpg_key.yml +++ b/models/fixtures/gpg_key.yml @@ -2,8 +2,10 @@ id: 5 owner_id: 36 key_id: B15431642629B826 - primary_key_id: content: xsDNBGTrY3UBDAC2HLBqmMplAV15qSnC7g1c4dV406f5EHNhFr95Nup2My6b2eafTlvedv77s8PT/I7F3fy4apOZs5A7w2SsPlLMcQ3ev4uGOsxRtkq5RLy1Yb6SNueX0Da2UVKR5KTC5Q6BWaqxwS0IjKOLZ/xz0Pbe/ClV3bZSKBEY2omkVo3Z0HZ771vB2clPRvGJ/IdeKOsZ3ZytSFXfyiJBdARmeSPmydXLil8+Ibq5iLAeow5PK8hK1TCOnKHzLWNqcNq70tyjoHvcGi70iGjoVEEUgPCLLuU8WmzTJwlvA3BuDzjtaO7TLo/jdE6iqkHtMSS8x+43sAH6hcFRCWAVh/0Uq7n36uGDfNxGnX3YrmX3LR9x5IsBES1rGGWbpxio4o5GIf/Xd+JgDd9rzJCqRuZ3/sW/TxK38htWaVNZV0kMkHUCTc1ctzWpCm635hbFCHBhPYIp+/z206khkAKDbz/CNuU91Wazsh7KO07wrwDtxfDDbInJ8TfHE2TGjzjQzgChfmcAEQEAAQ== + created_unix: 0 + expired_unix: 0 + added_unix: 0 verified: true can_sign: true can_encrypt_comms: true @@ -16,8 +18,12 @@ key_id: EE3AF48454AFD619 primary_key_id: B15431642629B826 content: zsDNBGTrY3UBDADsHrzuOicQaPdUQm0+0UNrs92cESm/j/4yBBUk+sfLZAo6J99c4eh4nAQzzZ7al080rYKB0G+7xoRz1eHcQH6zrVcqB8KYtf/sdY47WaMiMyxM+kTSvzp7tsv7QuSQZ0neUEXRyYMz5ttBfIjWUd+3NDItuHyB+MtNWlS3zXgaUbe5VifqKaNmzN0Ye4yXTKcpypE3AOqPVz+iIFv3c6TmsqLHJaR4VoicCleAqLyF/28WsJO7M9dDW+EM3MZVnsVpycTURyHAJGfSk10waQZAaRwmarCN/q0KEJ+aEAK/SRliUneBZoMO5hY5iBeG432tofwaQqAahPv9uXIb1n2JEMKwnMlMA9UGD1AcDbywfj1m/ZGBBw95i4Ekkfn43RvV3THr7uJU/dRqqP+iic4MwpUrOxqELW/kmeHXlBcNbZZhEEvwRoW7U2/9eeuog4nRleRJ0pi/xOP9wmxkKjaIPIK3phdBtEpVk4w/UTAWNdyIIrFggukeAnZFyGJwlm8AEQEAAQ== + created_unix: 0 + expired_unix: 0 + added_unix: 0 verified: true can_sign: true can_encrypt_comms: true can_encrypt_storage: true can_certify: true + diff --git a/models/fixtures/hook_task.yml b/models/fixtures/hook_task.yml index 6dbb10151abf8..76704d0b1fbc2 100644 --- a/models/fixtures/hook_task.yml +++ b/models/fixtures/hook_task.yml @@ -2,4 +2,8 @@ id: 1 hook_id: 1 uuid: uuid1 + event_type: '' is_delivered: true + delivered: 0 + is_succeed: false + diff --git a/models/fixtures/issue.yml b/models/fixtures/issue.yml index fa72f9b647da0..c1bc0d3799302 100644 --- a/models/fixtures/issue.yml +++ b/models/fixtures/issue.yml @@ -11,8 +11,11 @@ is_closed: false is_pull: false num_comments: 2 + pin_order: 0 + deadline_unix: 0 created_unix: 946684800 updated_unix: 978307200 + closed_unix: 0 is_locked: false - @@ -28,8 +31,11 @@ is_closed: false is_pull: true num_comments: 0 + pin_order: 0 + deadline_unix: 0 created_unix: 946684810 updated_unix: 978307190 + closed_unix: 0 is_locked: false - @@ -45,8 +51,11 @@ is_closed: false is_pull: true num_comments: 0 + pin_order: 0 + deadline_unix: 0 created_unix: 946684820 updated_unix: 978307180 + closed_unix: 0 is_locked: false - @@ -62,8 +71,11 @@ is_closed: true is_pull: false num_comments: 0 + pin_order: 0 + deadline_unix: 0 created_unix: 946684830 updated_unix: 978307200 + closed_unix: 0 is_locked: false - @@ -79,8 +91,11 @@ is_closed: true is_pull: false num_comments: 0 + pin_order: 0 + deadline_unix: 0 created_unix: 946684840 updated_unix: 978307200 + closed_unix: 0 is_locked: false - @@ -96,8 +111,11 @@ is_closed: false is_pull: false num_comments: 0 + pin_order: 0 + deadline_unix: 0 created_unix: 946684850 updated_unix: 978307200 + closed_unix: 0 is_locked: false - @@ -113,8 +131,11 @@ is_closed: false is_pull: false num_comments: 0 + pin_order: 0 + deadline_unix: 0 created_unix: 946684830 updated_unix: 978307200 + closed_unix: 0 is_locked: false - @@ -130,8 +151,11 @@ is_closed: false is_pull: true num_comments: 0 + pin_order: 0 + deadline_unix: 0 created_unix: 946684820 updated_unix: 978307180 + closed_unix: 0 is_locked: false - @@ -147,8 +171,11 @@ is_closed: false is_pull: true num_comments: 0 + pin_order: 0 + deadline_unix: 0 created_unix: 946684820 updated_unix: 978307180 + closed_unix: 0 is_locked: false - @@ -164,9 +191,11 @@ is_closed: false is_pull: false num_comments: 0 + pin_order: 0 deadline_unix: 1019307200 created_unix: 946684830 updated_unix: 999307200 + closed_unix: 0 is_locked: false - @@ -182,8 +211,11 @@ is_closed: false is_pull: true num_comments: 0 + pin_order: 0 + deadline_unix: 0 created_unix: 1579194806 updated_unix: 1579194806 + closed_unix: 0 is_locked: false - @@ -199,8 +231,11 @@ is_closed: false is_pull: true num_comments: 0 + pin_order: 0 + deadline_unix: 0 created_unix: 1602935696 updated_unix: 1602935696 + closed_unix: 0 is_locked: false - @@ -210,14 +245,17 @@ poster_id: 2 original_author_id: 0 name: issue in active repo - content: we'll be testing github issue 13171 with this. + content: 'we''ll be testing github issue 13171 with this.' milestone_id: 0 priority: 0 is_closed: false is_pull: false num_comments: 0 + pin_order: 0 + deadline_unix: 0 created_unix: 1602935696 updated_unix: 1602935696 + closed_unix: 0 is_locked: false - @@ -227,14 +265,17 @@ poster_id: 2 original_author_id: 0 name: issue in archived repo - content: we'll be testing github issue 13171 with this. + content: 'we''ll be testing github issue 13171 with this.' milestone_id: 0 priority: 0 is_closed: false is_pull: false num_comments: 0 + pin_order: 0 + deadline_unix: 0 created_unix: 1602935696 updated_unix: 1602935696 + closed_unix: 0 is_locked: false - @@ -250,8 +291,11 @@ is_closed: false is_pull: false num_comments: 0 + pin_order: 0 + deadline_unix: 0 created_unix: 1602935696 updated_unix: 1602935696 + closed_unix: 0 is_locked: false - @@ -267,8 +311,11 @@ is_closed: false is_pull: false num_comments: 0 + pin_order: 0 + deadline_unix: 0 created_unix: 1602935696 updated_unix: 1602935696 + closed_unix: 0 is_locked: false - @@ -284,8 +331,11 @@ is_closed: false is_pull: false num_comments: 0 + pin_order: 0 + deadline_unix: 0 created_unix: 1602935696 updated_unix: 1602935696 + closed_unix: 0 is_locked: false - @@ -301,8 +351,11 @@ is_closed: false is_pull: false num_comments: 0 + pin_order: 0 + deadline_unix: 0 created_unix: 946684830 updated_unix: 978307200 + closed_unix: 0 is_locked: false - @@ -318,6 +371,10 @@ is_closed: false is_pull: true num_comments: 0 + pin_order: 0 + deadline_unix: 0 created_unix: 946684830 updated_unix: 978307200 + closed_unix: 0 is_locked: false + diff --git a/models/fixtures/issue_assignees.yml b/models/fixtures/issue_assignees.yml index e5d36f921a7e0..609569e483efb 100644 --- a/models/fixtures/issue_assignees.yml +++ b/models/fixtures/issue_assignees.yml @@ -2,15 +2,19 @@ id: 1 assignee_id: 1 issue_id: 1 + - id: 2 assignee_id: 1 issue_id: 6 + - id: 3 assignee_id: 2 issue_id: 6 + - id: 4 assignee_id: 2 issue_id: 17 + diff --git a/models/fixtures/issue_index.yml b/models/fixtures/issue_index.yml index de6e955804ab6..02b2d9b5dc4a4 100644 --- a/models/fixtures/issue_index.yml +++ b/models/fixtures/issue_index.yml @@ -1,27 +1,36 @@ - group_id: 1 max_index: 5 + - group_id: 2 max_index: 2 + - group_id: 3 max_index: 2 + - group_id: 10 max_index: 1 + - group_id: 32 max_index: 2 + - - group_id: 48 + group_id: 42 max_index: 1 + - - group_id: 42 + group_id: 48 max_index: 1 + - group_id: 50 max_index: 1 + - group_id: 51 max_index: 1 + diff --git a/models/fixtures/issue_label.yml b/models/fixtures/issue_label.yml index f4ecb1f923232..6138a2083012f 100644 --- a/models/fixtures/issue_label.yml +++ b/models/fixtures/issue_label.yml @@ -17,3 +17,4 @@ id: 4 issue_id: 2 label_id: 4 + diff --git a/models/fixtures/issue_user.yml b/models/fixtures/issue_user.yml index 64824316ea275..47550664456de 100644 --- a/models/fixtures/issue_user.yml +++ b/models/fixtures/issue_user.yml @@ -18,3 +18,4 @@ issue_id: 1 is_read: false is_mentioned: true + diff --git a/models/fixtures/issue_watch.yml b/models/fixtures/issue_watch.yml index 4bc3ff1b8b987..804e3c61c4b64 100644 --- a/models/fixtures/issue_watch.yml +++ b/models/fixtures/issue_watch.yml @@ -29,3 +29,4 @@ is_watching: false created_unix: 946684800 updated_unix: 946684800 + diff --git a/models/fixtures/label.yml b/models/fixtures/label.yml index 2242b90dcdc23..62bc708a78a53 100644 --- a/models/fixtures/label.yml +++ b/models/fixtures/label.yml @@ -3,10 +3,12 @@ repo_id: 1 org_id: 0 name: label1 - color: '#abcdef' exclusive: false + color: '#abcdef' num_issues: 2 num_closed_issues: 0 + created_unix: 0 + updated_unix: 0 archived_unix: 0 - @@ -14,10 +16,12 @@ repo_id: 1 org_id: 0 name: label2 - color: '#000000' exclusive: false + color: '#000000' num_issues: 1 num_closed_issues: 1 + created_unix: 0 + updated_unix: 0 archived_unix: 0 - @@ -25,10 +29,12 @@ repo_id: 0 org_id: 3 name: orglabel3 - color: '#abcdef' exclusive: false + color: '#abcdef' num_issues: 0 num_closed_issues: 0 + created_unix: 0 + updated_unix: 0 archived_unix: 0 - @@ -36,10 +42,12 @@ repo_id: 0 org_id: 3 name: orglabel4 - color: '#000000' exclusive: false + color: '#000000' num_issues: 1 num_closed_issues: 0 + created_unix: 0 + updated_unix: 0 archived_unix: 0 - @@ -47,10 +55,12 @@ repo_id: 10 org_id: 0 name: pull-test-label - color: '#000000' exclusive: false + color: '#000000' num_issues: 0 num_closed_issues: 0 + created_unix: 0 + updated_unix: 0 archived_unix: 0 - @@ -58,10 +68,12 @@ repo_id: 55 org_id: 0 name: unscoped_label - color: '#000000' exclusive: false + color: '#000000' num_issues: 0 num_closed_issues: 0 + created_unix: 0 + updated_unix: 0 archived_unix: 0 - @@ -69,10 +81,12 @@ repo_id: 55 org_id: 0 name: scope/label1 - color: '#000000' exclusive: true + color: '#000000' num_issues: 0 num_closed_issues: 0 + created_unix: 0 + updated_unix: 0 archived_unix: 0 - @@ -80,10 +94,12 @@ repo_id: 55 org_id: 0 name: scope/label2 - color: '#000000' exclusive: true + color: '#000000' num_issues: 0 num_closed_issues: 0 + created_unix: 0 + updated_unix: 0 archived_unix: 0 - @@ -91,8 +107,11 @@ repo_id: 55 org_id: 0 name: scope/subscope/label2 - color: '#000000' exclusive: true + color: '#000000' num_issues: 0 num_closed_issues: 0 + created_unix: 0 + updated_unix: 0 archived_unix: 0 + diff --git a/models/fixtures/language_stat.yml b/models/fixtures/language_stat.yml new file mode 100644 index 0000000000000..a2ea98b41ec2a --- /dev/null +++ b/models/fixtures/language_stat.yml @@ -0,0 +1,36 @@ +- + id: 1 + repo_id: 49 + commit_id: aacbdfe9e1c4b47f60abe81849045fa4e96f1d75 + is_primary: true + language: Text + size: 14 + created_unix: 1692437698 + +- + id: 2 + repo_id: 44 + commit_id: 2a83b349fa234131fc5db6f2a0498d3f4d3d6038 + is_primary: true + language: Text + size: 14 + created_unix: 1692437699 + +- + id: 3 + repo_id: 42 + commit_id: ef6b814b610d8e7717aa0f71fbe5842bcf814697 + is_primary: true + language: Text + size: 36 + created_unix: 1692437699 + +- + id: 4 + repo_id: 2 + commit_id: 1032bbf17fbc0d9c95bb5418dabe8f8c99278700 + is_primary: true + language: Markdown + size: 36 + created_unix: 1692437700 + diff --git a/models/fixtures/lfs_meta_object.yml b/models/fixtures/lfs_meta_object.yml index 1c29e02d44da6..2258c5b25a754 100644 --- a/models/fixtures/lfs_meta_object.yml +++ b/models/fixtures/lfs_meta_object.yml @@ -1,32 +1,32 @@ -# These are the LFS objects in user2/lfs.git - - id: 1 oid: 0b8d8b5f15046343fd32f451df93acc2bdd9e6373be478b968e4cad6b6647351 size: 107 repository_id: 54 created_unix: 1671607299 + updated_unix: 0 - - id: 2 oid: 2eccdb43825d2a49d99d542daa20075cff1d97d9d2349a8977efe9c03661737c size: 107 repository_id: 54 created_unix: 1671607299 + updated_unix: 0 - - id: 3 oid: 7b6b2c88dba9f760a1a58469b67fee2b698ef7e9399c4ca4f34a14ccbe39f623 size: 27 repository_id: 54 created_unix: 1671607299 + updated_unix: 0 - - id: 4 oid: 9d172e5c64b4f0024b9901ec6afe9ea052f3c9b6ff9f4b07956d8c48c86fca82 size: 25 repository_id: 54 created_unix: 1671607299 + updated_unix: 0 + diff --git a/models/fixtures/milestone.yml b/models/fixtures/milestone.yml index 87c30cc96c4ac..768a349643267 100644 --- a/models/fixtures/milestone.yml +++ b/models/fixtures/milestone.yml @@ -2,53 +2,69 @@ id: 1 repo_id: 1 name: milestone1 - content: content1 + content: 'content1' is_closed: false num_issues: 1 num_closed_issues: 0 completeness: 0 + created_unix: 0 + updated_unix: 0 deadline_unix: 253370764800 + closed_date_unix: 0 - id: 2 repo_id: 1 name: milestone2 - content: content2 + content: 'content2' is_closed: false num_issues: 0 num_closed_issues: 0 completeness: 0 + created_unix: 0 + updated_unix: 0 deadline_unix: 253370764800 + closed_date_unix: 0 - id: 3 repo_id: 1 name: milestone3 - content: content3 + content: 'content3' is_closed: true num_issues: 1 num_closed_issues: 0 completeness: 0 + created_unix: 0 + updated_unix: 0 deadline_unix: 253370764800 + closed_date_unix: 0 - id: 4 repo_id: 42 name: milestone of repo42 - content: content random + content: 'content random' is_closed: false num_issues: 0 num_closed_issues: 0 completeness: 0 + created_unix: 0 + updated_unix: 0 deadline_unix: 253370764800 + closed_date_unix: 0 - id: 5 repo_id: 10 name: milestone of repo 10 - content: for testing with PRs + content: 'for testing with PRs' is_closed: false num_issues: 0 num_closed_issues: 0 completeness: 0 + created_unix: 0 + updated_unix: 0 deadline_unix: 253370764800 + closed_date_unix: 0 + diff --git a/models/fixtures/mirror.yml b/models/fixtures/mirror.yml index 97bc4ae60dda2..811bf90a75462 100644 --- a/models/fixtures/mirror.yml +++ b/models/fixtures/mirror.yml @@ -6,7 +6,7 @@ updated_unix: 0 next_update_unix: 0 lfs_enabled: false - lfs_endpoint: "" + lfs_endpoint: '' - id: 2 @@ -16,7 +16,7 @@ updated_unix: 0 next_update_unix: 0 lfs_enabled: false - lfs_endpoint: "" + lfs_endpoint: '' - id: 3 @@ -26,7 +26,7 @@ updated_unix: 0 next_update_unix: 0 lfs_enabled: false - lfs_endpoint: "" + lfs_endpoint: '' - id: 4 @@ -36,7 +36,7 @@ updated_unix: 0 next_update_unix: 0 lfs_enabled: false - lfs_endpoint: "" + lfs_endpoint: '' - id: 5 @@ -46,4 +46,5 @@ updated_unix: 0 next_update_unix: 0 lfs_enabled: false - lfs_endpoint: "" + lfs_endpoint: '' + diff --git a/models/fixtures/notice.yml b/models/fixtures/notice.yml index af08f07bfa137..7e8323dad2df6 100644 --- a/models/fixtures/notice.yml +++ b/models/fixtures/notice.yml @@ -1,14 +1,18 @@ - id: 1 - type: 1 # NoticeRepository - description: description1 + type: 1 + description: 'description1' + created_unix: 0 - id: 2 - type: 1 # NoticeRepository - description: description2 + type: 1 + description: 'description2' + created_unix: 0 - id: 3 - type: 1 # NoticeRepository - description: description3 + type: 1 + description: 'description3' + created_unix: 0 + diff --git a/models/fixtures/notification.yml b/models/fixtures/notification.yml index bd279d4bb284c..41da5f8a3c001 100644 --- a/models/fixtures/notification.yml +++ b/models/fixtures/notification.yml @@ -2,10 +2,11 @@ id: 1 user_id: 1 repo_id: 1 - status: 1 # unread - source: 1 # issue - updated_by: 2 + status: 1 + source: 1 issue_id: 1 + comment_id: 0 + updated_by: 2 created_unix: 946684800 updated_unix: 946684820 @@ -13,10 +14,11 @@ id: 2 user_id: 2 repo_id: 1 - status: 2 # read - source: 1 # issue - updated_by: 1 + status: 2 + source: 1 issue_id: 2 + comment_id: 0 + updated_by: 1 created_unix: 946685800 updated_unix: 946685820 @@ -24,10 +26,11 @@ id: 3 user_id: 2 repo_id: 1 - status: 3 # pinned - source: 1 # issue - updated_by: 1 + status: 3 + source: 1 issue_id: 3 + comment_id: 0 + updated_by: 1 created_unix: 946686800 updated_unix: 946686800 @@ -35,10 +38,11 @@ id: 4 user_id: 2 repo_id: 1 - status: 1 # unread - source: 1 # issue - updated_by: 1 + status: 1 + source: 1 issue_id: 5 + comment_id: 0 + updated_by: 1 created_unix: 946687800 updated_unix: 946687800 @@ -46,9 +50,11 @@ id: 5 user_id: 2 repo_id: 2 - status: 1 # unread - source: 1 # issue - updated_by: 5 + status: 1 + source: 1 issue_id: 4 + comment_id: 0 + updated_by: 5 created_unix: 946688800 updated_unix: 946688820 + diff --git a/models/fixtures/oauth2_application.yml b/models/fixtures/oauth2_application.yml index 2f38cb58b6169..cc3b906b415dc 100644 --- a/models/fixtures/oauth2_application.yml +++ b/models/fixtures/oauth2_application.yml @@ -1,20 +1,22 @@ - id: 1 uid: 1 - name: "Test" - client_id: "da7da3ba-9a13-4167-856f-3899de0b0138" - client_secret: "$2a$10$UYRgUSgekzBp6hYe8pAdc.cgB4Gn06QRKsORUnIYTYQADs.YR/uvi" # bcrypt of "4MK8Na6R55smdCY0WuCCumZ6hjRPnGY5saWVRHHjJiA= - redirect_uris: '["a", "https://example.com/xyzzy"]' + name: Test + client_id: da7da3ba-9a13-4167-856f-3899de0b0138 + client_secret: $2a$10$UYRgUSgekzBp6hYe8pAdc.cgB4Gn06QRKsORUnIYTYQADs.YR/uvi + confidential_client: true + redirect_uris: '["a","https://example.com/xyzzy"]' created_unix: 1546869730 updated_unix: 1546869730 - confidential_client: true + - id: 2 uid: 2 - name: "Test native app" - client_id: "ce5a1322-42a7-11ed-b878-0242ac120002" - client_secret: "$2a$10$UYRgUSgekzBp6hYe8pAdc.cgB4Gn06QRKsORUnIYTYQADs.YR/uvi" # bcrypt of "4MK8Na6R55smdCY0WuCCumZ6hjRPnGY5saWVRHHjJiA= + name: Test native app + client_id: ce5a1322-42a7-11ed-b878-0242ac120002 + client_secret: $2a$10$UYRgUSgekzBp6hYe8pAdc.cgB4Gn06QRKsORUnIYTYQADs.YR/uvi + confidential_client: false redirect_uris: '["http://127.0.0.1"]' created_unix: 1546869730 updated_unix: 1546869730 - confidential_client: false + diff --git a/models/fixtures/oauth2_authorization_code.yml b/models/fixtures/oauth2_authorization_code.yml index d29502164e67f..db73bded0e2e8 100644 --- a/models/fixtures/oauth2_authorization_code.yml +++ b/models/fixtures/oauth2_authorization_code.yml @@ -1,15 +1,18 @@ -- id: 1 +- + id: 1 grant_id: 1 - code: "authcode" - code_challenge: "CjvyTLSdR47G5zYenDA-eDWW4lRrO8yvjcWwbD_deOg" # Code Verifier: N1Zo9-8Rfwhkt68r1r29ty8YwIraXR8eh_1Qwxg7yQXsonBt - code_challenge_method: "S256" - redirect_uri: "a" + code: authcode + code_challenge: CjvyTLSdR47G5zYenDA-eDWW4lRrO8yvjcWwbD_deOg + code_challenge_method: S256 + redirect_uri: a valid_until: 3546869730 -- id: 2 +- + id: 2 grant_id: 4 - code: "authcodepublic" - code_challenge: "CjvyTLSdR47G5zYenDA-eDWW4lRrO8yvjcWwbD_deOg" # Code Verifier: N1Zo9-8Rfwhkt68r1r29ty8YwIraXR8eh_1Qwxg7yQXsonBt - code_challenge_method: "S256" - redirect_uri: "http://127.0.0.1/" + code: authcodepublic + code_challenge: CjvyTLSdR47G5zYenDA-eDWW4lRrO8yvjcWwbD_deOg + code_challenge_method: S256 + redirect_uri: http://127.0.0.1/ valid_until: 3546869730 + diff --git a/models/fixtures/oauth2_grant.yml b/models/fixtures/oauth2_grant.yml index e63286878b20f..593ee37185ef4 100644 --- a/models/fixtures/oauth2_grant.yml +++ b/models/fixtures/oauth2_grant.yml @@ -1,31 +1,40 @@ -- id: 1 +- + id: 1 user_id: 1 application_id: 1 counter: 1 - scope: "openid profile" + scope: 'openid profile' + nonce: '' created_unix: 1546869730 updated_unix: 1546869730 -- id: 2 +- + id: 2 user_id: 3 application_id: 1 counter: 1 - scope: "openid" + scope: 'openid' + nonce: '' created_unix: 1546869730 updated_unix: 1546869730 -- id: 3 +- + id: 3 user_id: 5 application_id: 1 counter: 1 - scope: "openid profile email" + scope: 'openid profile email' + nonce: '' created_unix: 1546869730 updated_unix: 1546869730 -- id: 4 +- + id: 4 user_id: 99 application_id: 2 counter: 1 - scope: "whatever" + scope: 'whatever' + nonce: '' created_unix: 1546869730 updated_unix: 1546869730 + diff --git a/models/fixtures/org_user.yml b/models/fixtures/org_user.yml index 8d58169a32f17..46f515c3aea22 100644 --- a/models/fixtures/org_user.yml +++ b/models/fixtures/org_user.yml @@ -99,3 +99,4 @@ uid: 5 org_id: 36 is_public: true + diff --git a/models/fixtures/project.yml b/models/fixtures/project.yml index 1bf8030f6aa57..f53e83a2c5e37 100644 --- a/models/fixtures/project.yml +++ b/models/fixtures/project.yml @@ -1,47 +1,60 @@ - id: 1 title: First project + description: '' owner_id: 0 repo_id: 1 - is_closed: false creator_id: 2 + is_closed: false board_type: 1 + card_type: 0 type: 2 created_unix: 1688973030 updated_unix: 1688973030 + closed_date_unix: 0 - id: 2 title: second project + description: '' owner_id: 0 repo_id: 3 - is_closed: false creator_id: 3 + is_closed: false board_type: 1 + card_type: 0 type: 2 created_unix: 1688973010 updated_unix: 1688973010 + closed_date_unix: 0 - id: 3 title: project on repo with disabled project + description: '' owner_id: 0 repo_id: 4 - is_closed: true creator_id: 5 + is_closed: true board_type: 1 + card_type: 0 type: 2 created_unix: 1688973020 updated_unix: 1688973020 + closed_date_unix: 0 - id: 4 title: project on user2 + description: '' owner_id: 2 repo_id: 0 - is_closed: false creator_id: 2 + is_closed: false board_type: 1 + card_type: 0 type: 2 created_unix: 1688973000 updated_unix: 1688973000 + closed_date_unix: 0 + diff --git a/models/fixtures/project_board.yml b/models/fixtures/project_board.yml index dc4f9cf565d7d..f2a3951c346fe 100644 --- a/models/fixtures/project_board.yml +++ b/models/fixtures/project_board.yml @@ -1,31 +1,40 @@ - id: 1 - project_id: 1 title: To Do + default: false + sorting: 0 + project_id: 1 creator_id: 2 created_unix: 1588117528 updated_unix: 1588117528 - id: 2 - project_id: 1 title: In Progress + default: false + sorting: 0 + project_id: 1 creator_id: 2 created_unix: 1588117528 updated_unix: 1588117528 - id: 3 - project_id: 1 title: Done + default: false + sorting: 0 + project_id: 1 creator_id: 2 created_unix: 1588117528 updated_unix: 1588117528 - id: 4 - project_id: 4 title: Done + default: false + sorting: 0 + project_id: 4 creator_id: 2 created_unix: 1588117528 updated_unix: 1588117528 + diff --git a/models/fixtures/project_issue.yml b/models/fixtures/project_issue.yml index b1af05908aafb..50b2138c92b59 100644 --- a/models/fixtures/project_issue.yml +++ b/models/fixtures/project_issue.yml @@ -3,21 +3,26 @@ issue_id: 1 project_id: 1 project_board_id: 1 + sorting: 0 - id: 2 issue_id: 2 project_id: 1 - project_board_id: 0 # no board assigned + project_board_id: 0 + sorting: 0 - id: 3 issue_id: 3 project_id: 1 project_board_id: 2 + sorting: 0 - id: 4 issue_id: 5 project_id: 1 project_board_id: 3 + sorting: 0 + diff --git a/models/fixtures/public_key.yml b/models/fixtures/public_key.yml index 08f5c349a7b3d..b35d307ad6f87 100644 --- a/models/fixtures/public_key.yml +++ b/models/fixtures/public_key.yml @@ -2,10 +2,12 @@ id: 1 owner_id: 2 name: user2@localhost - fingerprint: "SHA256:M3iiFbqQKgLxi+WAoRa38ZVQ9ktdfau2sOu9xuPb9ew" - content: "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDWVj0fQ5N8wNc0LVNA41wDLYJ89ZIbejrPfg/avyj3u/ZohAKsQclxG4Ju0VirduBFF9EOiuxoiFBRr3xRpqzpsZtnMPkWVWb+akZwBFAx8p+jKdy4QXR/SZqbVobrGwip2UjSrri1CtBxpJikojRIZfCnDaMOyd9Jp6KkujvniFzUWdLmCPxUE9zhTaPu0JsEP7MW0m6yx7ZUhHyfss+NtqmFTaDO+QlMR7L2QkDliN2Jl3Xa3PhuWnKJfWhdAq1Cw4oraKUOmIgXLkuiuxVQ6mD3AiFupkmfqdHq6h+uHHmyQqv3gU+/sD8GbGAhf6ftqhTsXjnv1Aj4R8NoDf9BS6KRkzkeun5UisSzgtfQzjOMEiJtmrep2ZQrMGahrXa+q4VKr0aKJfm+KlLfwm/JztfsBcqQWNcTURiCFqz+fgZw0Ey/de0eyMzldYTdXXNRYCKjs9bvBK+6SSXRM7AhftfQ0ZuoW5+gtinPrnmoOaSCEJbAiEiTO/BzOHgowiM= user2@localhost" + fingerprint: SHA256:M3iiFbqQKgLxi+WAoRa38ZVQ9ktdfau2sOu9xuPb9ew + content: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDWVj0fQ5N8wNc0LVNA41wDLYJ89ZIbejrPfg/avyj3u/ZohAKsQclxG4Ju0VirduBFF9EOiuxoiFBRr3xRpqzpsZtnMPkWVWb+akZwBFAx8p+jKdy4QXR/SZqbVobrGwip2UjSrri1CtBxpJikojRIZfCnDaMOyd9Jp6KkujvniFzUWdLmCPxUE9zhTaPu0JsEP7MW0m6yx7ZUhHyfss+NtqmFTaDO+QlMR7L2QkDliN2Jl3Xa3PhuWnKJfWhdAq1Cw4oraKUOmIgXLkuiuxVQ6mD3AiFupkmfqdHq6h+uHHmyQqv3gU+/sD8GbGAhf6ftqhTsXjnv1Aj4R8NoDf9BS6KRkzkeun5UisSzgtfQzjOMEiJtmrep2ZQrMGahrXa+q4VKr0aKJfm+KlLfwm/JztfsBcqQWNcTURiCFqz+fgZw0Ey/de0eyMzldYTdXXNRYCKjs9bvBK+6SSXRM7AhftfQ0ZuoW5+gtinPrnmoOaSCEJbAiEiTO/BzOHgowiM= user2@localhost mode: 2 type: 1 + login_source_id: 0 created_unix: 1559593109 updated_unix: 1565224552 - login_source_id: 0 \ No newline at end of file + verified: false + diff --git a/models/fixtures/pull_request.yml b/models/fixtures/pull_request.yml index e5589ac703d77..4ee181995c110 100644 --- a/models/fixtures/pull_request.yml +++ b/models/fixtures/pull_request.yml @@ -1,7 +1,9 @@ - id: 1 - type: 0 # gitea pull request - status: 2 # mergable + type: 0 + status: 2 + commits_ahead: 0 + commits_behind: 0 issue_id: 2 index: 2 head_repo_id: 1 @@ -9,13 +11,18 @@ head_branch: branch1 base_branch: master merge_base: 4a357436d925b5c974181ff12a994538ddc5a269 + allow_maintainer_edit: false has_merged: true merger_id: 2 + merged_unix: 0 + flow: 0 - id: 2 - type: 0 # gitea pull request - status: 2 # mergable + type: 0 + status: 2 + commits_ahead: 0 + commits_behind: 0 issue_id: 3 index: 3 head_repo_id: 1 @@ -23,12 +30,18 @@ head_branch: branch2 base_branch: master merge_base: 4a357436d925b5c974181ff12a994538ddc5a269 + allow_maintainer_edit: false has_merged: false + merger_id: 0 + merged_unix: 0 + flow: 0 - id: 3 - type: 0 # gitea pull request - status: 2 # mergable + type: 0 + status: 2 + commits_ahead: 0 + commits_behind: 0 issue_id: 8 index: 1 head_repo_id: 11 @@ -36,12 +49,18 @@ head_branch: branch2 base_branch: master merge_base: 0abcb056019adb83 + allow_maintainer_edit: false has_merged: false + merger_id: 0 + merged_unix: 0 + flow: 0 - id: 4 - type: 0 # gitea pull request - status: 2 # mergable + type: 0 + status: 2 + commits_ahead: 0 + commits_behind: 0 issue_id: 9 index: 1 head_repo_id: 48 @@ -49,12 +68,18 @@ head_branch: branch1 base_branch: master merge_base: abcdef1234567890 + allow_maintainer_edit: false has_merged: false + merger_id: 0 + merged_unix: 0 + flow: 0 - - id: 5 # this PR is outdated (one commit behind branch1 ) - type: 0 # gitea pull request - status: 2 # mergable + id: 5 + type: 0 + status: 2 + commits_ahead: 0 + commits_behind: 0 issue_id: 11 index: 5 head_repo_id: 1 @@ -62,12 +87,18 @@ head_branch: pr-to-update base_branch: branch2 merge_base: 985f0301dba5e7b34be866819cd15ad3d8f508ee + allow_maintainer_edit: false has_merged: false + merger_id: 0 + merged_unix: 0 + flow: 0 - id: 6 - type: 0 # gitea pull request - status: 2 # mergable + type: 0 + status: 2 + commits_ahead: 0 + commits_behind: 0 issue_id: 12 index: 2 head_repo_id: 3 @@ -75,12 +106,18 @@ head_branch: test_branch base_branch: master merge_base: 2a47ca4b614a9f5a + allow_maintainer_edit: false has_merged: false + merger_id: 0 + merged_unix: 0 + flow: 0 - id: 7 - type: 0 # gitea pull request - status: 2 # mergable + type: 0 + status: 2 + commits_ahead: 0 + commits_behind: 0 issue_id: 19 index: 1 head_repo_id: 58 @@ -88,4 +125,9 @@ head_branch: branch1 base_branch: main merge_base: cbff181af4c9c7fee3cf6c106699e07d9a3f54e6 + allow_maintainer_edit: false has_merged: false + merger_id: 0 + merged_unix: 0 + flow: 0 + diff --git a/models/fixtures/reaction.yml b/models/fixtures/reaction.yml index 4925935fe6fe6..7b84db7a3dd97 100644 --- a/models/fixtures/reaction.yml +++ b/models/fixtures/reaction.yml @@ -1,39 +1,45 @@ - - id: 1 #issue reaction - type: zzz # not allowed reaction (added before allowed reaction list has changed) + id: 1 + type: zzz issue_id: 1 comment_id: 0 user_id: 2 + original_author_id: 0 created_unix: 1573248001 - - id: 2 #issue reaction - type: zzz # not allowed reaction (added before allowed reaction list has changed) + id: 2 + type: zzz issue_id: 1 comment_id: 0 user_id: 1 + original_author_id: 0 created_unix: 1573248002 - - id: 3 #issue reaction - type: eyes # allowed reaction + id: 3 + type: eyes issue_id: 1 comment_id: 0 user_id: 2 + original_author_id: 0 created_unix: 1573248003 - - id: 4 #comment reaction - type: laugh # allowed reaction + id: 4 + type: laugh issue_id: 1 comment_id: 2 user_id: 2 + original_author_id: 0 created_unix: 1573248004 - - id: 5 #comment reaction - type: laugh # allowed reaction + id: 5 + type: laugh issue_id: 1 comment_id: 2 user_id: 1 + original_author_id: 0 created_unix: 1573248005 + diff --git a/models/fixtures/release.yml b/models/fixtures/release.yml index 4ed7df440dbd3..761e036f1b59e 100644 --- a/models/fixtures/release.yml +++ b/models/fixtures/release.yml @@ -1,138 +1,168 @@ -- id: 1 +- + id: 1 repo_id: 1 publisher_id: 2 - tag_name: "v1.1" - lower_tag_name: "v1.1" - target: "master" - title: "testing-release" - sha1: "65f1bf27bc3bf70f64657658635e66094edbcb4d" + tag_name: v1.1 + original_author_id: 0 + lower_tag_name: v1.1 + target: master + title: testing-release + sha1: 65f1bf27bc3bf70f64657658635e66094edbcb4d num_commits: 10 + note: '' is_draft: false is_prerelease: false is_tag: false created_unix: 946684800 -- id: 2 +- + id: 2 repo_id: 40 publisher_id: 2 - tag_name: "v1.1" - lower_tag_name: "v1.1" - target: "master" - title: "testing-release" - sha1: "65f1bf27bc3bf70f64657658635e66094edbcb4d" + tag_name: v1.1 + original_author_id: 0 + lower_tag_name: v1.1 + target: master + title: testing-release + sha1: 65f1bf27bc3bf70f64657658635e66094edbcb4d num_commits: 10 + note: '' is_draft: false is_prerelease: false is_tag: false created_unix: 946684800 -- id: 3 +- + id: 3 repo_id: 1 publisher_id: 2 - tag_name: "delete-tag" - lower_tag_name: "delete-tag" - target: "master" - title: "delete-tag" - sha1: "65f1bf27bc3bf70f64657658635e66094edbcb4d" + tag_name: delete-tag + original_author_id: 0 + lower_tag_name: delete-tag + target: master + title: delete-tag + sha1: 65f1bf27bc3bf70f64657658635e66094edbcb4d num_commits: 10 + note: '' is_draft: false is_prerelease: false is_tag: true created_unix: 946684800 -- id: 4 +- + id: 4 repo_id: 1 publisher_id: 2 - tag_name: "draft-release" - lower_tag_name: "draft-release" - target: "master" - title: "draft-release" + tag_name: draft-release + original_author_id: 0 + lower_tag_name: draft-release + target: master + title: draft-release + num_commits: 0 + note: '' is_draft: true is_prerelease: false is_tag: false created_unix: 1619524806 -- id: 5 +- + id: 5 repo_id: 1 publisher_id: 2 - tag_name: "v1.0" - lower_tag_name: "v1.0" - target: "master" - title: "pre-release" - note: "some text for a pre release" - sha1: "65f1bf27bc3bf70f64657658635e66094edbcb4d" + tag_name: v1.0 + original_author_id: 0 + lower_tag_name: v1.0 + target: master + title: pre-release + sha1: 65f1bf27bc3bf70f64657658635e66094edbcb4d num_commits: 1 + note: 'some text for a pre release' is_draft: false is_prerelease: true is_tag: false created_unix: 946684800 -- id: 6 +- + id: 6 repo_id: 57 publisher_id: 2 - tag_name: "v1.0" - lower_tag_name: "v1.0" - target: "main" - title: "v1.0" - sha1: "a8a700e8c644c783ba2c6e742bb81bf91e244bff" + tag_name: v1.0 + original_author_id: 0 + lower_tag_name: v1.0 + target: main + title: v1.0 + sha1: a8a700e8c644c783ba2c6e742bb81bf91e244bff num_commits: 3 + note: '' is_draft: false is_prerelease: false is_tag: false created_unix: 946684801 -- id: 7 +- + id: 7 repo_id: 57 publisher_id: 2 - tag_name: "v1.1" - lower_tag_name: "v1.1" - target: "main" - title: "v1.1" - sha1: "cef06e48f2642cd0dc9597b4bea09f4b3f74aad6" + tag_name: v1.1 + original_author_id: 0 + lower_tag_name: v1.1 + target: main + title: v1.1 + sha1: cef06e48f2642cd0dc9597b4bea09f4b3f74aad6 num_commits: 5 + note: '' is_draft: false is_prerelease: false is_tag: false created_unix: 946684802 -- id: 8 +- + id: 8 repo_id: 57 publisher_id: 2 - tag_name: "v2.0" - lower_tag_name: "v2.0" - target: "main" - title: "v2.0" - sha1: "7197b56fdc75b453f47c9110938cb46a303579fd" + tag_name: v2.0 + original_author_id: 0 + lower_tag_name: v2.0 + target: main + title: v2.0 + sha1: 7197b56fdc75b453f47c9110938cb46a303579fd num_commits: 6 + note: '' is_draft: false is_prerelease: false is_tag: false created_unix: 946684803 -- id: 9 +- + id: 9 repo_id: 57 publisher_id: 2 - tag_name: "non-existing-target-branch" - lower_tag_name: "non-existing-target-branch" - target: "non-existing" - title: "non-existing-target-branch" - sha1: "cef06e48f2642cd0dc9597b4bea09f4b3f74aad6" + tag_name: non-existing-target-branch + original_author_id: 0 + lower_tag_name: non-existing-target-branch + target: non-existing + title: non-existing-target-branch + sha1: cef06e48f2642cd0dc9597b4bea09f4b3f74aad6 num_commits: 5 + note: '' is_draft: false is_prerelease: false is_tag: false created_unix: 946684803 -- id: 10 +- + id: 10 repo_id: 57 publisher_id: 2 - tag_name: "empty-target-branch" - lower_tag_name: "empty-target-branch" - target: "" - title: "empty-target-branch" - sha1: "cef06e48f2642cd0dc9597b4bea09f4b3f74aad6" + tag_name: empty-target-branch + original_author_id: 0 + lower_tag_name: empty-target-branch + title: empty-target-branch + sha1: cef06e48f2642cd0dc9597b4bea09f4b3f74aad6 num_commits: 5 + note: '' is_draft: false is_prerelease: false is_tag: false created_unix: 946684803 + diff --git a/models/fixtures/renamed_branch.yml b/models/fixtures/renamed_branch.yml index efa5130a2b9e9..5fc87123760f4 100644 --- a/models/fixtures/renamed_branch.yml +++ b/models/fixtures/renamed_branch.yml @@ -3,3 +3,5 @@ repo_id: 1 from: dev to: master + created_unix: 0 + diff --git a/models/fixtures/repo_indexer_status.yml b/models/fixtures/repo_indexer_status.yml index ca780a73aa0c1..1ff9b878521a8 100644 --- a/models/fixtures/repo_indexer_status.yml +++ b/models/fixtures/repo_indexer_status.yml @@ -1 +1,132 @@ -[] # empty +- + id: 462 + repo_id: 49 + commit_sha: aacbdfe9e1c4b47f60abe81849045fa4e96f1d75 + indexer_type: 1 + +- + id: 463 + repo_id: 48 + commit_sha: cdaca8cf1d36e1e4e508a940f6e157e239beccfa + indexer_type: 1 + +- + id: 464 + repo_id: 47 + commit_sha: cdaca8cf1d36e1e4e508a940f6e157e239beccfa + indexer_type: 1 + +- + id: 465 + repo_id: 46 + commit_sha: cdaca8cf1d36e1e4e508a940f6e157e239beccfa + indexer_type: 1 + +- + id: 466 + repo_id: 44 + commit_sha: 2a83b349fa234131fc5db6f2a0498d3f4d3d6038 + indexer_type: 1 + +- + id: 467 + repo_id: 42 + commit_sha: ef6b814b610d8e7717aa0f71fbe5842bcf814697 + indexer_type: 1 + +- + id: 468 + repo_id: 41 + commit_sha: 6e75c9f89da9a9b93f4f36e61ed092f7a1625ba0 + indexer_type: 1 + +- + id: 469 + repo_id: 40 + commit_sha: bf19fd4707acb403c4aca44f126ab69142ac59ce + indexer_type: 1 + +- + id: 470 + repo_id: 39 + commit_sha: b895782bd271fdd266dd06e5880ea4abdc3a0dc7 + indexer_type: 1 + +- + id: 471 + repo_id: 38 + commit_sha: 90e402c3937a4639725fcc59ca1f529e7dc8506f + indexer_type: 1 + +- + id: 472 + repo_id: 37 + commit_sha: 65f1bf27bc3bf70f64657658635e66094edbcb4d + indexer_type: 1 + +- + id: 473 + repo_id: 36 + commit_sha: 9800fe78cabf4fe774fcf376f97fa2a0ed06987b + indexer_type: 1 + +- + id: 474 + repo_id: 33 + commit_sha: 3aa73c3499bff049a352b4e265575373e964b89a + indexer_type: 1 + +- + id: 475 + repo_id: 31 + commit_sha: 808038d2f71b0ab020991439cffd24309c7bc530 + indexer_type: 1 + +- + id: 476 + repo_id: 16 + commit_sha: 69554a64c1e6030f051e5c3f94bfbd773cd6a324 + indexer_type: 1 + +- + id: 477 + repo_id: 11 + commit_sha: 65f1bf27bc3bf70f64657658635e66094edbcb4d + indexer_type: 1 + +- + id: 478 + repo_id: 10 + commit_sha: 65f1bf27bc3bf70f64657658635e66094edbcb4d + indexer_type: 1 + +- + id: 479 + repo_id: 4 + commit_sha: c7cd3cd144e6d23c9d6f3d07e52b2c1a956e0338 + indexer_type: 1 + +- + id: 480 + repo_id: 3 + commit_sha: 2a47ca4b614a9f5a43abbd5ad851a54a616ffee6 + indexer_type: 1 + +- + id: 481 + repo_id: 2 + commit_sha: 1032bbf17fbc0d9c95bb5418dabe8f8c99278700 + indexer_type: 1 + +- + id: 482 + repo_id: 1 + commit_sha: 65f1bf27bc3bf70f64657658635e66094edbcb4d + indexer_type: 1 + +- + id: 490 + repo_id: 54 + commit_sha: 73cf03db6ece34e12bf91e8853dc58f678f2f82d + indexer_type: 1 + diff --git a/models/fixtures/repo_redirect.yml b/models/fixtures/repo_redirect.yml index 8850c8d780b70..8a01fbe18b2b4 100644 --- a/models/fixtures/repo_redirect.yml +++ b/models/fixtures/repo_redirect.yml @@ -3,3 +3,4 @@ owner_id: 2 lower_name: oldrepo1 redirect_repo_id: 1 + diff --git a/models/fixtures/repo_topic.yml b/models/fixtures/repo_topic.yml index f166faccc1d8f..697925bc05445 100644 --- a/models/fixtures/repo_topic.yml +++ b/models/fixtures/repo_topic.yml @@ -25,3 +25,4 @@ - repo_id: 2 topic_id: 6 + diff --git a/models/fixtures/repo_transfer.yml b/models/fixtures/repo_transfer.yml index b841b5e983a1b..32340a6a948b3 100644 --- a/models/fixtures/repo_transfer.yml +++ b/models/fixtures/repo_transfer.yml @@ -5,3 +5,4 @@ repo_id: 3 created_unix: 1553610671 updated_unix: 1553610671 + diff --git a/models/fixtures/repo_unit.yml b/models/fixtures/repo_unit.yml index c22eb8c2a2f08..947adf57e03df 100644 --- a/models/fixtures/repo_unit.yml +++ b/models/fixtures/repo_unit.yml @@ -1,651 +1,679 @@ -# See models/unit/unit.go for the meaning of the type - id: 1 repo_id: 1 type: 4 - config: "{}" + config: '{}' created_unix: 946684810 - id: 2 repo_id: 1 type: 5 - config: "{}" + config: '{}' created_unix: 946684810 - id: 3 repo_id: 1 type: 1 - config: "{}" + config: '{}' created_unix: 946684810 - id: 4 repo_id: 1 type: 2 - config: "{\"EnableTimetracker\":true,\"AllowOnlyContributorsToTrackTime\":true}" + config: '{"EnableTimetracker":true,"AllowOnlyContributorsToTrackTime":true,"EnableDependencies":false}' created_unix: 946684810 - id: 5 repo_id: 1 type: 3 - config: "{\"IgnoreWhitespaceConflicts\":false,\"AllowMerge\":true,\"AllowRebase\":true,\"AllowRebaseMerge\":true,\"AllowSquash\":true}" + config: '{"IgnoreWhitespaceConflicts":false,"AllowMerge":true,"AllowRebase":true,"AllowRebaseMerge":true,"AllowSquash":true,"AllowManualMerge":false,"AutodetectManualMerge":false,"AllowRebaseUpdate":true,"DefaultDeleteBranchAfterMerge":false,"DefaultMergeStyle":"","DefaultAllowMaintainerEdit":false}' created_unix: 946684810 - id: 6 repo_id: 3 type: 1 - config: "{}" + config: '{}' created_unix: 946684810 - id: 7 repo_id: 3 type: 2 - config: "{\"EnableTimetracker\":false,\"AllowOnlyContributorsToTrackTime\":false}" + config: '{"EnableTimetracker":false,"AllowOnlyContributorsToTrackTime":false,"EnableDependencies":false}' created_unix: 946684810 - id: 8 repo_id: 3 type: 3 - config: "{\"IgnoreWhitespaceConflicts\":true,\"AllowMerge\":true,\"AllowRebase\":false,\"AllowRebaseMerge\":true,\"AllowSquash\":false}" + config: '{"IgnoreWhitespaceConflicts":true,"AllowMerge":true,"AllowRebase":false,"AllowRebaseMerge":true,"AllowSquash":false,"AllowManualMerge":false,"AutodetectManualMerge":false,"AllowRebaseUpdate":true,"DefaultDeleteBranchAfterMerge":false,"DefaultMergeStyle":"","DefaultAllowMaintainerEdit":false}' created_unix: 946684810 - id: 9 repo_id: 3 type: 4 - config: "{}" + config: '{}' created_unix: 946684810 - id: 10 repo_id: 3 type: 5 - config: "{}" + config: '{}' created_unix: 946684810 - id: 11 repo_id: 31 type: 1 - config: "{}" + config: '{}' created_unix: 1524304355 - id: 12 repo_id: 33 type: 1 - config: "{}" + config: '{}' created_unix: 1535593231 - id: 13 repo_id: 33 type: 2 - config: "{\"EnableTimetracker\":true,\"AllowOnlyContributorsToTrackTime\":true}" + config: '{"EnableTimetracker":true,"AllowOnlyContributorsToTrackTime":true,"EnableDependencies":false}' created_unix: 1535593231 - id: 14 repo_id: 33 type: 3 - config: "{\"IgnoreWhitespaceConflicts\":false,\"AllowMerge\":true,\"AllowRebase\":true,\"AllowSquash\":true}" + config: '{"IgnoreWhitespaceConflicts":false,"AllowMerge":true,"AllowRebase":true,"AllowRebaseMerge":false,"AllowSquash":true,"AllowManualMerge":false,"AutodetectManualMerge":false,"AllowRebaseUpdate":true,"DefaultDeleteBranchAfterMerge":false,"DefaultMergeStyle":"","DefaultAllowMaintainerEdit":false}' created_unix: 1535593231 - id: 15 repo_id: 33 type: 4 - config: "{}" + config: '{}' created_unix: 1535593231 - id: 16 repo_id: 33 type: 5 - config: "{}" + config: '{}' created_unix: 1535593231 - id: 17 repo_id: 4 type: 4 - config: "{}" + config: '{}' created_unix: 946684810 - id: 18 repo_id: 4 type: 5 - config: "{}" + config: '{}' created_unix: 946684810 - id: 19 repo_id: 4 type: 1 - config: "{}" + config: '{}' created_unix: 946684810 - id: 20 repo_id: 4 type: 2 - config: "{\"EnableTimetracker\":true,\"AllowOnlyContributorsToTrackTime\":true}" + config: '{"EnableTimetracker":true,"AllowOnlyContributorsToTrackTime":true,"EnableDependencies":false}' created_unix: 946684810 - id: 21 repo_id: 4 type: 3 - config: "{\"IgnoreWhitespaceConflicts\":false,\"AllowMerge\":true,\"AllowRebase\":true,\"AllowSquash\":true}" + config: '{"IgnoreWhitespaceConflicts":false,"AllowMerge":true,"AllowRebase":true,"AllowRebaseMerge":false,"AllowSquash":true,"AllowManualMerge":false,"AutodetectManualMerge":false,"AllowRebaseUpdate":true,"DefaultDeleteBranchAfterMerge":false,"DefaultMergeStyle":"","DefaultAllowMaintainerEdit":false}' created_unix: 946684810 - id: 22 repo_id: 2 type: 4 - config: "{}" + config: '{}' created_unix: 946684810 - id: 23 repo_id: 2 type: 5 - config: "{}" + config: '{}' created_unix: 946684810 - id: 24 repo_id: 2 type: 1 - config: "{}" + config: '{}' created_unix: 946684810 - id: 25 repo_id: 32 type: 1 - config: "{}" + config: '{}' created_unix: 1524304355 - id: 26 repo_id: 32 type: 2 - config: "{}" + config: '{"EnableTimetracker":false,"AllowOnlyContributorsToTrackTime":false,"EnableDependencies":false}' created_unix: 1524304355 - id: 27 repo_id: 24 type: 1 - config: "{}" + config: '{}' created_unix: 1524304355 - id: 28 repo_id: 24 type: 2 - config: "{}" + config: '{"EnableTimetracker":false,"AllowOnlyContributorsToTrackTime":false,"EnableDependencies":false}' created_unix: 1524304355 - id: 29 repo_id: 16 type: 1 - config: "{}" + config: '{}' created_unix: 1524304355 - id: 30 repo_id: 23 type: 1 - config: "{}" + config: '{}' created_unix: 1524304355 - id: 31 repo_id: 27 type: 1 - config: "{}" + config: '{}' created_unix: 1524304355 - id: 32 repo_id: 28 type: 1 - config: "{}" + config: '{}' created_unix: 1524304355 - id: 33 repo_id: 36 type: 4 - config: "{}" + config: '{}' created_unix: 1524304355 - id: 34 repo_id: 36 type: 5 - config: "{}" + config: '{}' created_unix: 1524304355 - id: 35 repo_id: 36 type: 1 - config: "{}" + config: '{}' created_unix: 1524304355 - id: 36 repo_id: 36 type: 2 - config: "{\"EnableTimetracker\":true,\"AllowOnlyContributorsToTrackTime\":true}" + config: '{"EnableTimetracker":true,"AllowOnlyContributorsToTrackTime":true,"EnableDependencies":false}' created_unix: 1524304355 - id: 37 repo_id: 36 type: 3 - config: "{\"IgnoreWhitespaceConflicts\":false,\"AllowMerge\":true,\"AllowRebase\":true,\"AllowRebaseMerge\":true,\"AllowSquash\":true}" + config: '{"IgnoreWhitespaceConflicts":false,"AllowMerge":true,"AllowRebase":true,"AllowRebaseMerge":true,"AllowSquash":true,"AllowManualMerge":false,"AutodetectManualMerge":false,"AllowRebaseUpdate":true,"DefaultDeleteBranchAfterMerge":false,"DefaultMergeStyle":"","DefaultAllowMaintainerEdit":false}' created_unix: 1524304355 - id: 38 repo_id: 37 type: 4 - config: "{}" + config: '{}' created_unix: 946684810 - id: 39 repo_id: 37 type: 5 - config: "{}" + config: '{}' created_unix: 946684810 - id: 40 repo_id: 37 type: 1 - config: "{}" + config: '{}' created_unix: 946684810 - id: 41 repo_id: 37 type: 2 - config: "{\"EnableTimetracker\":true,\"AllowOnlyContributorsToTrackTime\":true}" + config: '{"EnableTimetracker":true,"AllowOnlyContributorsToTrackTime":true,"EnableDependencies":false}' created_unix: 946684810 - id: 42 repo_id: 37 type: 3 - config: "{\"IgnoreWhitespaceConflicts\":false,\"AllowMerge\":true,\"AllowRebase\":true,\"AllowRebaseMerge\":true,\"AllowSquash\":true}" + config: '{"IgnoreWhitespaceConflicts":false,"AllowMerge":true,"AllowRebase":true,"AllowRebaseMerge":true,"AllowSquash":true,"AllowManualMerge":false,"AutodetectManualMerge":false,"AllowRebaseUpdate":true,"DefaultDeleteBranchAfterMerge":false,"DefaultMergeStyle":"","DefaultAllowMaintainerEdit":false}' created_unix: 946684810 - id: 43 repo_id: 38 type: 1 - config: "{}" + config: '{}' created_unix: 946684810 - id: 44 repo_id: 38 type: 2 - config: "{\"EnableTimetracker\":true,\"AllowOnlyContributorsToTrackTime\":true}" + config: '{"EnableTimetracker":true,"AllowOnlyContributorsToTrackTime":true,"EnableDependencies":false}' created_unix: 946684810 - id: 45 repo_id: 38 type: 3 - config: "{\"IgnoreWhitespaceConflicts\":false,\"AllowMerge\":true,\"AllowRebase\":true,\"AllowRebaseMerge\":true,\"AllowSquash\":true}" + config: '{"IgnoreWhitespaceConflicts":false,"AllowMerge":true,"AllowRebase":true,"AllowRebaseMerge":true,"AllowSquash":true,"AllowManualMerge":false,"AutodetectManualMerge":false,"AllowRebaseUpdate":true,"DefaultDeleteBranchAfterMerge":false,"DefaultMergeStyle":"","DefaultAllowMaintainerEdit":false}' created_unix: 946684810 - id: 46 repo_id: 39 type: 1 - config: "{}" + config: '{}' created_unix: 946684810 - id: 47 repo_id: 39 type: 2 - config: "{\"EnableTimetracker\":true,\"AllowOnlyContributorsToTrackTime\":true}" + config: '{"EnableTimetracker":true,"AllowOnlyContributorsToTrackTime":true,"EnableDependencies":false}' created_unix: 946684810 - id: 48 repo_id: 39 type: 3 - config: "{\"IgnoreWhitespaceConflicts\":false,\"AllowMerge\":true,\"AllowRebase\":true,\"AllowRebaseMerge\":true,\"AllowSquash\":true}" + config: '{"IgnoreWhitespaceConflicts":false,"AllowMerge":true,"AllowRebase":true,"AllowRebaseMerge":true,"AllowSquash":true,"AllowManualMerge":false,"AutodetectManualMerge":false,"AllowRebaseUpdate":true,"DefaultDeleteBranchAfterMerge":false,"DefaultMergeStyle":"","DefaultAllowMaintainerEdit":false}' created_unix: 946684810 - id: 49 repo_id: 40 type: 1 - config: "{}" + config: '{}' created_unix: 946684810 - id: 50 repo_id: 40 type: 2 - config: "{\"EnableTimetracker\":true,\"AllowOnlyContributorsToTrackTime\":true}" + config: '{"EnableTimetracker":true,"AllowOnlyContributorsToTrackTime":true,"EnableDependencies":false}' created_unix: 946684810 - id: 51 repo_id: 40 type: 3 - config: "{\"IgnoreWhitespaceConflicts\":false,\"AllowMerge\":true,\"AllowRebase\":true,\"AllowRebaseMerge\":true,\"AllowSquash\":true}" + config: '{"IgnoreWhitespaceConflicts":false,"AllowMerge":true,"AllowRebase":true,"AllowRebaseMerge":true,"AllowSquash":true,"AllowManualMerge":false,"AutodetectManualMerge":false,"AllowRebaseUpdate":true,"DefaultDeleteBranchAfterMerge":false,"DefaultMergeStyle":"","DefaultAllowMaintainerEdit":false}' created_unix: 946684810 - id: 52 repo_id: 41 type: 1 - config: "{}" + config: '{}' created_unix: 946684810 - id: 53 repo_id: 41 type: 2 - config: "{\"EnableTimetracker\":true,\"AllowOnlyContributorsToTrackTime\":true}" + config: '{"EnableTimetracker":true,"AllowOnlyContributorsToTrackTime":true,"EnableDependencies":false}' created_unix: 946684810 - id: 54 repo_id: 41 type: 3 - config: "{\"IgnoreWhitespaceConflicts\":false,\"AllowMerge\":true,\"AllowRebase\":true,\"AllowRebaseMerge\":true,\"AllowSquash\":true}" + config: '{"IgnoreWhitespaceConflicts":false,"AllowMerge":true,"AllowRebase":true,"AllowRebaseMerge":true,"AllowSquash":true,"AllowManualMerge":false,"AutodetectManualMerge":false,"AllowRebaseUpdate":true,"DefaultDeleteBranchAfterMerge":false,"DefaultMergeStyle":"","DefaultAllowMaintainerEdit":false}' created_unix: 946684810 - id: 55 repo_id: 10 type: 1 - config: "{}" + config: '{}' created_unix: 946684810 - id: 56 repo_id: 10 type: 2 - config: "{\"EnableTimetracker\":true,\"AllowOnlyContributorsToTrackTime\":true}" + config: '{"EnableTimetracker":true,"AllowOnlyContributorsToTrackTime":true,"EnableDependencies":false}' created_unix: 946684810 - id: 57 repo_id: 10 type: 3 - config: "{\"IgnoreWhitespaceConflicts\":false,\"AllowMerge\":true,\"AllowRebase\":true,\"AllowRebaseMerge\":true,\"AllowSquash\":true}" + config: '{"IgnoreWhitespaceConflicts":false,"AllowMerge":true,"AllowRebase":true,"AllowRebaseMerge":true,"AllowSquash":true,"AllowManualMerge":false,"AutodetectManualMerge":false,"AllowRebaseUpdate":true,"DefaultDeleteBranchAfterMerge":false,"DefaultMergeStyle":"","DefaultAllowMaintainerEdit":false}' created_unix: 946684810 - id: 58 repo_id: 11 type: 1 - config: "{}" + config: '{}' created_unix: 946684810 - id: 59 repo_id: 42 type: 1 - config: "{}" + config: '{}' created_unix: 946684810 - id: 60 repo_id: 42 type: 4 - config: "{}" + config: '{}' created_unix: 946684810 - id: 61 repo_id: 42 type: 5 - config: "{}" + config: '{}' created_unix: 946684810 - id: 62 repo_id: 42 type: 2 - config: "{\"EnableTimetracker\":true,\"AllowOnlyContributorsToTrackTime\":true}" + config: '{"EnableTimetracker":true,"AllowOnlyContributorsToTrackTime":true,"EnableDependencies":false}' created_unix: 946684810 - id: 63 repo_id: 42 type: 3 - config: "{\"IgnoreWhitespaceConflicts\":false,\"AllowMerge\":true,\"AllowRebase\":true,\"AllowRebaseMerge\":true,\"AllowSquash\":true}" + config: '{"IgnoreWhitespaceConflicts":false,"AllowMerge":true,"AllowRebase":true,"AllowRebaseMerge":true,"AllowSquash":true,"AllowManualMerge":false,"AutodetectManualMerge":false,"AllowRebaseUpdate":true,"DefaultDeleteBranchAfterMerge":false,"DefaultMergeStyle":"","DefaultAllowMaintainerEdit":false}' created_unix: 946684810 - id: 64 repo_id: 44 type: 1 - config: "{}" + config: '{}' created_unix: 946684810 - id: 65 repo_id: 45 type: 1 - config: "{}" + config: '{}' created_unix: 946684810 - id: 66 repo_id: 46 type: 7 - config: "{\"ExternalTrackerURL\":\"https://tracker.com\",\"ExternalTrackerFormat\":\"https://tracker.com/{user}/{repo}/issues/{index}\",\"ExternalTrackerStyle\":\"\"}" + config: '{"ExternalTrackerURL":"https://tracker.com","ExternalTrackerFormat":"https://tracker.com/{user}/{repo}/issues/{index}","ExternalTrackerStyle":"","ExternalTrackerRegexpPattern":""}' created_unix: 946684810 - id: 67 repo_id: 47 type: 7 - config: "{\"ExternalTrackerURL\":\"https://tracker.com\",\"ExternalTrackerFormat\":\"https://tracker.com/{user}/{repo}/issues/{index}\",\"ExternalTrackerStyle\":\"numeric\"}" + config: '{"ExternalTrackerURL":"https://tracker.com","ExternalTrackerFormat":"https://tracker.com/{user}/{repo}/issues/{index}","ExternalTrackerStyle":"numeric","ExternalTrackerRegexpPattern":""}' created_unix: 946684810 - id: 68 repo_id: 48 type: 7 - config: "{\"ExternalTrackerURL\":\"https://tracker.com\",\"ExternalTrackerFormat\":\"https://tracker.com/{user}/{repo}/issues/{index}\",\"ExternalTrackerStyle\":\"alphanumeric\"}" + config: '{"ExternalTrackerURL":"https://tracker.com","ExternalTrackerFormat":"https://tracker.com/{user}/{repo}/issues/{index}","ExternalTrackerStyle":"alphanumeric","ExternalTrackerRegexpPattern":""}' created_unix: 946684810 + - id: 69 repo_id: 2 type: 2 - config: "{}" + config: '{"EnableTimetracker":false,"AllowOnlyContributorsToTrackTime":false,"EnableDependencies":false}' created_unix: 946684810 - id: 70 repo_id: 5 type: 4 - config: "{}" + config: '{}' created_unix: 946684810 - id: 71 repo_id: 5 type: 5 - config: "{}" + config: '{}' created_unix: 946684810 - id: 72 repo_id: 5 type: 1 - config: "{}" + config: '{}' created_unix: 946684810 - id: 73 repo_id: 5 type: 2 - config: "{\"EnableTimetracker\":true,\"AllowOnlyContributorsToTrackTime\":true}" + config: '{"EnableTimetracker":true,"AllowOnlyContributorsToTrackTime":true,"EnableDependencies":false}' created_unix: 946684810 - id: 74 repo_id: 5 type: 3 - config: "{\"IgnoreWhitespaceConflicts\":false,\"AllowMerge\":true,\"AllowRebase\":true,\"AllowRebaseMerge\":true,\"AllowSquash\":true}" + config: '{"IgnoreWhitespaceConflicts":false,"AllowMerge":true,"AllowRebase":true,"AllowRebaseMerge":true,"AllowSquash":true,"AllowManualMerge":false,"AutodetectManualMerge":false,"AllowRebaseUpdate":true,"DefaultDeleteBranchAfterMerge":false,"DefaultMergeStyle":"","DefaultAllowMaintainerEdit":false}' created_unix: 946684810 - id: 75 repo_id: 1 type: 8 + config: '{}' created_unix: 946684810 - id: 76 repo_id: 2 type: 8 + config: '{}' created_unix: 946684810 - id: 77 repo_id: 3 type: 8 + config: '{}' created_unix: 946684810 - id: 78 repo_id: 50 type: 2 + config: '{"EnableTimetracker":false,"AllowOnlyContributorsToTrackTime":false,"EnableDependencies":false}' created_unix: 946684810 - id: 79 repo_id: 51 type: 2 + config: '{"EnableTimetracker":false,"AllowOnlyContributorsToTrackTime":false,"EnableDependencies":false}' created_unix: 946684810 - id: 80 repo_id: 53 type: 1 + config: '{}' created_unix: 946684810 - id: 81 repo_id: 54 type: 1 + config: '{}' created_unix: 946684810 - id: 82 repo_id: 31 type: 1 + config: '{}' created_unix: 946684810 - id: 83 repo_id: 31 type: 3 - config: "{\"IgnoreWhitespaceConflicts\":false,\"AllowMerge\":true,\"AllowRebase\":true,\"AllowRebaseMerge\":true,\"AllowSquash\":true}" + config: '{"IgnoreWhitespaceConflicts":false,"AllowMerge":true,"AllowRebase":true,"AllowRebaseMerge":true,"AllowSquash":true,"AllowManualMerge":false,"AutodetectManualMerge":false,"AllowRebaseUpdate":true,"DefaultDeleteBranchAfterMerge":false,"DefaultMergeStyle":"","DefaultAllowMaintainerEdit":false}' created_unix: 946684810 - id: 84 repo_id: 56 type: 1 + config: '{}' created_unix: 946684810 + - id: 85 repo_id: 57 type: 1 + config: '{}' created_unix: 946684810 + - id: 86 repo_id: 57 type: 2 + config: '{"EnableTimetracker":false,"AllowOnlyContributorsToTrackTime":false,"EnableDependencies":false}' created_unix: 946684810 + - id: 87 repo_id: 57 type: 3 + config: '{"IgnoreWhitespaceConflicts":false,"AllowMerge":false,"AllowRebase":false,"AllowRebaseMerge":false,"AllowSquash":false,"AllowManualMerge":false,"AutodetectManualMerge":false,"AllowRebaseUpdate":false,"DefaultDeleteBranchAfterMerge":false,"DefaultMergeStyle":"","DefaultAllowMaintainerEdit":false}' created_unix: 946684810 + - id: 88 repo_id: 57 type: 4 + config: '{}' created_unix: 946684810 + - id: 89 repo_id: 57 type: 5 + config: '{}' created_unix: 946684810 - id: 90 repo_id: 52 type: 1 + config: '{}' created_unix: 946684810 - id: 91 repo_id: 58 type: 1 + config: '{}' created_unix: 946684810 - id: 92 repo_id: 58 type: 2 + config: '{"EnableTimetracker":false,"AllowOnlyContributorsToTrackTime":false,"EnableDependencies":false}' created_unix: 946684810 - id: 93 repo_id: 58 type: 3 + config: '{"IgnoreWhitespaceConflicts":false,"AllowMerge":false,"AllowRebase":false,"AllowRebaseMerge":false,"AllowSquash":false,"AllowManualMerge":false,"AutodetectManualMerge":false,"AllowRebaseUpdate":false,"DefaultDeleteBranchAfterMerge":false,"DefaultMergeStyle":"","DefaultAllowMaintainerEdit":false}' created_unix: 946684810 - id: 94 repo_id: 58 type: 4 + config: '{}' created_unix: 946684810 - id: 95 repo_id: 58 type: 5 + config: '{}' created_unix: 946684810 - id: 96 repo_id: 49 type: 1 + config: '{}' created_unix: 946684810 - id: 97 repo_id: 49 type: 2 + config: '{"EnableTimetracker":false,"AllowOnlyContributorsToTrackTime":false,"EnableDependencies":false}' created_unix: 946684810 + diff --git a/models/fixtures/repository.yml b/models/fixtures/repository.yml index 15668e6caed68..40217abefe15c 100644 --- a/models/fixtures/repository.yml +++ b/models/fixtures/repository.yml @@ -1,10 +1,11 @@ -# don't forget to add fixtures in repo_unit.yml - id: 1 owner_id: 2 owner_name: user2 lower_name: repo1 name: repo1 + description: '' + original_service_type: 0 default_branch: master num_watches: 4 num_stars: 0 @@ -17,6 +18,8 @@ num_closed_milestones: 1 num_projects: 1 num_closed_projects: 0 + num_action_runs: 0 + num_closed_action_runs: 0 is_private: false is_empty: false is_archived: false @@ -27,8 +30,14 @@ is_template: false template_id: 0 size: 7320 + git_size: 0 + lfs_size: 0 is_fsck_enabled: true close_issues_via_commit_in_any_branch: false + trust_model: 0 + created_unix: 0 + updated_unix: 0 + archived_unix: 0 - id: 2 @@ -36,6 +45,8 @@ owner_name: user2 lower_name: repo2 name: repo2 + description: '' + original_service_type: 0 default_branch: master num_watches: 0 num_stars: 1 @@ -48,6 +59,8 @@ num_closed_milestones: 0 num_projects: 0 num_closed_projects: 0 + num_action_runs: 0 + num_closed_action_runs: 0 is_private: true is_empty: false is_archived: false @@ -58,8 +71,14 @@ is_template: false template_id: 0 size: 0 + git_size: 0 + lfs_size: 0 is_fsck_enabled: true close_issues_via_commit_in_any_branch: true + trust_model: 0 + created_unix: 0 + updated_unix: 0 + archived_unix: 0 - id: 3 @@ -67,6 +86,8 @@ owner_name: user3 lower_name: repo3 name: repo3 + description: '' + original_service_type: 0 default_branch: master num_watches: 0 num_stars: 0 @@ -79,6 +100,8 @@ num_closed_milestones: 0 num_projects: 1 num_closed_projects: 0 + num_action_runs: 0 + num_closed_action_runs: 0 is_private: true is_empty: false is_archived: false @@ -89,8 +112,14 @@ is_template: false template_id: 0 size: 0 + git_size: 0 + lfs_size: 0 is_fsck_enabled: true close_issues_via_commit_in_any_branch: false + trust_model: 0 + created_unix: 0 + updated_unix: 0 + archived_unix: 0 - id: 4 @@ -98,6 +127,8 @@ owner_name: user5 lower_name: repo4 name: repo4 + description: '' + original_service_type: 0 default_branch: master num_watches: 0 num_stars: 1 @@ -110,6 +141,8 @@ num_closed_milestones: 0 num_projects: 0 num_closed_projects: 1 + num_action_runs: 0 + num_closed_action_runs: 0 is_private: false is_empty: false is_archived: false @@ -120,8 +153,14 @@ is_template: false template_id: 0 size: 0 + git_size: 0 + lfs_size: 0 is_fsck_enabled: true close_issues_via_commit_in_any_branch: false + trust_model: 0 + created_unix: 0 + updated_unix: 0 + archived_unix: 0 - id: 5 @@ -129,6 +168,8 @@ owner_name: user3 lower_name: repo5 name: repo5 + description: '' + original_service_type: 0 num_watches: 0 num_stars: 0 num_forks: 0 @@ -140,6 +181,8 @@ num_closed_milestones: 0 num_projects: 0 num_closed_projects: 0 + num_action_runs: 0 + num_closed_action_runs: 0 is_private: true is_empty: false is_archived: false @@ -150,8 +193,14 @@ is_template: false template_id: 0 size: 0 + git_size: 0 + lfs_size: 0 is_fsck_enabled: true close_issues_via_commit_in_any_branch: false + trust_model: 0 + created_unix: 0 + updated_unix: 0 + archived_unix: 0 - id: 6 @@ -159,6 +208,8 @@ owner_name: user10 lower_name: repo6 name: repo6 + description: '' + original_service_type: 0 num_watches: 0 num_stars: 0 num_forks: 0 @@ -170,6 +221,8 @@ num_closed_milestones: 0 num_projects: 0 num_closed_projects: 0 + num_action_runs: 0 + num_closed_action_runs: 0 is_private: true is_empty: true is_archived: false @@ -180,8 +233,14 @@ is_template: false template_id: 0 size: 0 + git_size: 0 + lfs_size: 0 is_fsck_enabled: true close_issues_via_commit_in_any_branch: false + trust_model: 0 + created_unix: 0 + updated_unix: 0 + archived_unix: 0 - id: 7 @@ -189,6 +248,8 @@ owner_name: user10 lower_name: repo7 name: repo7 + description: '' + original_service_type: 0 num_watches: 0 num_stars: 0 num_forks: 0 @@ -200,6 +261,8 @@ num_closed_milestones: 0 num_projects: 0 num_closed_projects: 0 + num_action_runs: 0 + num_closed_action_runs: 0 is_private: true is_empty: true is_archived: false @@ -210,8 +273,14 @@ is_template: false template_id: 0 size: 0 + git_size: 0 + lfs_size: 0 is_fsck_enabled: true close_issues_via_commit_in_any_branch: false + trust_model: 0 + created_unix: 0 + updated_unix: 0 + archived_unix: 0 - id: 8 @@ -219,6 +288,8 @@ owner_name: user10 lower_name: repo8 name: repo8 + description: '' + original_service_type: 0 num_watches: 0 num_stars: 0 num_forks: 0 @@ -230,6 +301,8 @@ num_closed_milestones: 0 num_projects: 0 num_closed_projects: 0 + num_action_runs: 0 + num_closed_action_runs: 0 is_private: false is_empty: true is_archived: false @@ -240,8 +313,14 @@ is_template: false template_id: 0 size: 0 + git_size: 0 + lfs_size: 0 is_fsck_enabled: true close_issues_via_commit_in_any_branch: false + trust_model: 0 + created_unix: 0 + updated_unix: 0 + archived_unix: 0 - id: 9 @@ -249,6 +328,8 @@ owner_name: user11 lower_name: repo9 name: repo9 + description: '' + original_service_type: 0 num_watches: 0 num_stars: 0 num_forks: 0 @@ -260,6 +341,8 @@ num_closed_milestones: 0 num_projects: 0 num_closed_projects: 0 + num_action_runs: 0 + num_closed_action_runs: 0 is_private: false is_empty: true is_archived: false @@ -270,8 +353,14 @@ is_template: false template_id: 0 size: 0 + git_size: 0 + lfs_size: 0 is_fsck_enabled: true close_issues_via_commit_in_any_branch: false + trust_model: 0 + created_unix: 0 + updated_unix: 0 + archived_unix: 0 - id: 10 @@ -279,6 +368,8 @@ owner_name: user12 lower_name: repo10 name: repo10 + description: '' + original_service_type: 0 default_branch: master num_watches: 0 num_stars: 0 @@ -291,6 +382,8 @@ num_closed_milestones: 0 num_projects: 0 num_closed_projects: 0 + num_action_runs: 0 + num_closed_action_runs: 0 is_private: false is_empty: false is_archived: false @@ -301,8 +394,14 @@ is_template: false template_id: 0 size: 0 + git_size: 0 + lfs_size: 0 is_fsck_enabled: true close_issues_via_commit_in_any_branch: false + trust_model: 0 + created_unix: 0 + updated_unix: 0 + archived_unix: 0 - id: 11 @@ -310,6 +409,8 @@ owner_name: user13 lower_name: repo11 name: repo11 + description: '' + original_service_type: 0 default_branch: master num_watches: 0 num_stars: 0 @@ -322,6 +423,8 @@ num_closed_milestones: 0 num_projects: 0 num_closed_projects: 0 + num_action_runs: 0 + num_closed_action_runs: 0 is_private: false is_empty: false is_archived: false @@ -332,8 +435,14 @@ is_template: false template_id: 0 size: 0 + git_size: 0 + lfs_size: 0 is_fsck_enabled: true close_issues_via_commit_in_any_branch: false + trust_model: 0 + created_unix: 0 + updated_unix: 0 + archived_unix: 0 - id: 12 @@ -341,6 +450,8 @@ owner_name: user14 lower_name: test_repo_12 name: test_repo_12 + description: '' + original_service_type: 0 num_watches: 0 num_stars: 0 num_forks: 0 @@ -352,6 +463,8 @@ num_closed_milestones: 0 num_projects: 0 num_closed_projects: 0 + num_action_runs: 0 + num_closed_action_runs: 0 is_private: false is_empty: true is_archived: false @@ -362,8 +475,14 @@ is_template: false template_id: 0 size: 0 + git_size: 0 + lfs_size: 0 is_fsck_enabled: true close_issues_via_commit_in_any_branch: false + trust_model: 0 + created_unix: 0 + updated_unix: 0 + archived_unix: 0 - id: 13 @@ -371,6 +490,8 @@ owner_name: user14 lower_name: test_repo_13 name: test_repo_13 + description: '' + original_service_type: 0 num_watches: 0 num_stars: 0 num_forks: 0 @@ -382,6 +503,8 @@ num_closed_milestones: 0 num_projects: 0 num_closed_projects: 0 + num_action_runs: 0 + num_closed_action_runs: 0 is_private: true is_empty: true is_archived: false @@ -392,8 +515,14 @@ is_template: false template_id: 0 size: 0 + git_size: 0 + lfs_size: 0 is_fsck_enabled: true close_issues_via_commit_in_any_branch: false + trust_model: 0 + created_unix: 0 + updated_unix: 0 + archived_unix: 0 - id: 14 @@ -401,7 +530,8 @@ owner_name: user14 lower_name: test_repo_14 name: test_repo_14 - description: test_description_14 + description: 'test_description_14' + original_service_type: 0 num_watches: 0 num_stars: 0 num_forks: 0 @@ -413,6 +543,8 @@ num_closed_milestones: 0 num_projects: 0 num_closed_projects: 0 + num_action_runs: 0 + num_closed_action_runs: 0 is_private: false is_empty: true is_archived: false @@ -423,8 +555,14 @@ is_template: false template_id: 0 size: 0 + git_size: 0 + lfs_size: 0 is_fsck_enabled: true close_issues_via_commit_in_any_branch: false + trust_model: 0 + created_unix: 0 + updated_unix: 0 + archived_unix: 0 - id: 15 @@ -432,6 +570,8 @@ owner_name: user2 lower_name: repo15 name: repo15 + description: '' + original_service_type: 0 default_branch: master num_watches: 0 num_stars: 0 @@ -444,6 +584,8 @@ num_closed_milestones: 0 num_projects: 0 num_closed_projects: 0 + num_action_runs: 0 + num_closed_action_runs: 0 is_private: true is_empty: false is_archived: false @@ -454,8 +596,14 @@ is_template: false template_id: 0 size: 0 + git_size: 0 + lfs_size: 0 is_fsck_enabled: true close_issues_via_commit_in_any_branch: false + trust_model: 0 + created_unix: 0 + updated_unix: 0 + archived_unix: 0 - id: 16 @@ -463,6 +611,8 @@ owner_name: user2 lower_name: repo16 name: repo16 + description: '' + original_service_type: 0 default_branch: master num_watches: 0 num_stars: 0 @@ -475,6 +625,8 @@ num_closed_milestones: 0 num_projects: 0 num_closed_projects: 0 + num_action_runs: 0 + num_closed_action_runs: 0 is_private: true is_empty: false is_archived: false @@ -485,8 +637,14 @@ is_template: false template_id: 0 size: 0 + git_size: 0 + lfs_size: 0 is_fsck_enabled: true close_issues_via_commit_in_any_branch: false + trust_model: 0 + created_unix: 0 + updated_unix: 0 + archived_unix: 0 - id: 17 @@ -494,6 +652,8 @@ owner_name: user15 lower_name: big_test_public_1 name: big_test_public_1 + description: '' + original_service_type: 0 num_watches: 0 num_stars: 0 num_forks: 0 @@ -505,6 +665,8 @@ num_closed_milestones: 0 num_projects: 0 num_closed_projects: 0 + num_action_runs: 0 + num_closed_action_runs: 0 is_private: false is_empty: true is_archived: false @@ -515,8 +677,14 @@ is_template: false template_id: 0 size: 0 + git_size: 0 + lfs_size: 0 is_fsck_enabled: true close_issues_via_commit_in_any_branch: false + trust_model: 0 + created_unix: 0 + updated_unix: 0 + archived_unix: 0 - id: 18 @@ -524,6 +692,8 @@ owner_name: user15 lower_name: big_test_public_2 name: big_test_public_2 + description: '' + original_service_type: 0 num_watches: 0 num_stars: 0 num_forks: 0 @@ -535,6 +705,8 @@ num_closed_milestones: 0 num_projects: 0 num_closed_projects: 0 + num_action_runs: 0 + num_closed_action_runs: 0 is_private: false is_empty: true is_archived: false @@ -545,8 +717,14 @@ is_template: false template_id: 0 size: 0 + git_size: 0 + lfs_size: 0 is_fsck_enabled: true close_issues_via_commit_in_any_branch: false + trust_model: 0 + created_unix: 0 + updated_unix: 0 + archived_unix: 0 - id: 19 @@ -554,6 +732,8 @@ owner_name: user15 lower_name: big_test_private_1 name: big_test_private_1 + description: '' + original_service_type: 0 num_watches: 0 num_stars: 0 num_forks: 0 @@ -565,6 +745,8 @@ num_closed_milestones: 0 num_projects: 0 num_closed_projects: 0 + num_action_runs: 0 + num_closed_action_runs: 0 is_private: true is_empty: true is_archived: false @@ -575,8 +757,14 @@ is_template: false template_id: 0 size: 0 + git_size: 0 + lfs_size: 0 is_fsck_enabled: true close_issues_via_commit_in_any_branch: false + trust_model: 0 + created_unix: 0 + updated_unix: 0 + archived_unix: 0 - id: 20 @@ -584,6 +772,8 @@ owner_name: user15 lower_name: big_test_private_2 name: big_test_private_2 + description: '' + original_service_type: 0 num_watches: 0 num_stars: 0 num_forks: 0 @@ -595,6 +785,8 @@ num_closed_milestones: 0 num_projects: 0 num_closed_projects: 0 + num_action_runs: 0 + num_closed_action_runs: 0 is_private: true is_empty: true is_archived: false @@ -605,8 +797,14 @@ is_template: false template_id: 0 size: 0 + git_size: 0 + lfs_size: 0 is_fsck_enabled: true close_issues_via_commit_in_any_branch: false + trust_model: 0 + created_unix: 0 + updated_unix: 0 + archived_unix: 0 - id: 21 @@ -614,6 +812,8 @@ owner_name: user16 lower_name: big_test_public_3 name: big_test_public_3 + description: '' + original_service_type: 0 num_watches: 0 num_stars: 0 num_forks: 0 @@ -625,6 +825,8 @@ num_closed_milestones: 0 num_projects: 0 num_closed_projects: 0 + num_action_runs: 0 + num_closed_action_runs: 0 is_private: false is_empty: true is_archived: false @@ -635,8 +837,14 @@ is_template: false template_id: 0 size: 0 + git_size: 0 + lfs_size: 0 is_fsck_enabled: true close_issues_via_commit_in_any_branch: false + trust_model: 0 + created_unix: 0 + updated_unix: 0 + archived_unix: 0 - id: 22 @@ -644,6 +852,8 @@ owner_name: user16 lower_name: big_test_private_3 name: big_test_private_3 + description: '' + original_service_type: 0 num_watches: 0 num_stars: 0 num_forks: 0 @@ -655,6 +865,8 @@ num_closed_milestones: 0 num_projects: 0 num_closed_projects: 0 + num_action_runs: 0 + num_closed_action_runs: 0 is_private: true is_empty: true is_archived: false @@ -665,8 +877,14 @@ is_template: false template_id: 0 size: 0 + git_size: 0 + lfs_size: 0 is_fsck_enabled: true close_issues_via_commit_in_any_branch: false + trust_model: 0 + created_unix: 0 + updated_unix: 0 + archived_unix: 0 - id: 23 @@ -674,6 +892,8 @@ owner_name: user17 lower_name: big_test_public_4 name: big_test_public_4 + description: '' + original_service_type: 0 num_watches: 0 num_stars: 0 num_forks: 0 @@ -685,6 +905,8 @@ num_closed_milestones: 0 num_projects: 0 num_closed_projects: 0 + num_action_runs: 0 + num_closed_action_runs: 0 is_private: false is_empty: true is_archived: false @@ -695,8 +917,14 @@ is_template: false template_id: 0 size: 0 + git_size: 0 + lfs_size: 0 is_fsck_enabled: true close_issues_via_commit_in_any_branch: false + trust_model: 0 + created_unix: 0 + updated_unix: 0 + archived_unix: 0 - id: 24 @@ -704,6 +932,8 @@ owner_name: user17 lower_name: big_test_private_4 name: big_test_private_4 + description: '' + original_service_type: 0 num_watches: 0 num_stars: 0 num_forks: 0 @@ -715,6 +945,8 @@ num_closed_milestones: 0 num_projects: 0 num_closed_projects: 0 + num_action_runs: 0 + num_closed_action_runs: 0 is_private: true is_empty: true is_archived: false @@ -725,8 +957,14 @@ is_template: false template_id: 0 size: 0 + git_size: 0 + lfs_size: 0 is_fsck_enabled: true close_issues_via_commit_in_any_branch: false + trust_model: 0 + created_unix: 0 + updated_unix: 0 + archived_unix: 0 - id: 25 @@ -734,6 +972,8 @@ owner_name: user20 lower_name: big_test_public_mirror_5 name: big_test_public_mirror_5 + description: '' + original_service_type: 0 num_watches: 0 num_stars: 0 num_forks: 0 @@ -745,6 +985,8 @@ num_closed_milestones: 0 num_projects: 0 num_closed_projects: 0 + num_action_runs: 0 + num_closed_action_runs: 0 is_private: false is_empty: true is_archived: false @@ -755,8 +997,14 @@ is_template: false template_id: 0 size: 0 + git_size: 0 + lfs_size: 0 is_fsck_enabled: true close_issues_via_commit_in_any_branch: false + trust_model: 0 + created_unix: 0 + updated_unix: 0 + archived_unix: 0 - id: 26 @@ -764,6 +1012,8 @@ owner_name: user20 lower_name: big_test_private_mirror_5 name: big_test_private_mirror_5 + description: '' + original_service_type: 0 num_watches: 0 num_stars: 0 num_forks: 0 @@ -775,6 +1025,8 @@ num_closed_milestones: 0 num_projects: 0 num_closed_projects: 0 + num_action_runs: 0 + num_closed_action_runs: 0 is_private: true is_empty: true is_archived: false @@ -785,8 +1037,14 @@ is_template: false template_id: 0 size: 0 + git_size: 0 + lfs_size: 0 is_fsck_enabled: true close_issues_via_commit_in_any_branch: false + trust_model: 0 + created_unix: 0 + updated_unix: 0 + archived_unix: 0 - id: 27 @@ -794,6 +1052,8 @@ owner_name: user19 lower_name: big_test_public_mirror_6 name: big_test_public_mirror_6 + description: '' + original_service_type: 0 num_watches: 0 num_stars: 0 num_forks: 1 @@ -805,6 +1065,8 @@ num_closed_milestones: 0 num_projects: 0 num_closed_projects: 0 + num_action_runs: 0 + num_closed_action_runs: 0 is_private: false is_empty: true is_archived: false @@ -815,8 +1077,14 @@ is_template: false template_id: 0 size: 0 + git_size: 0 + lfs_size: 0 is_fsck_enabled: true close_issues_via_commit_in_any_branch: false + trust_model: 0 + created_unix: 0 + updated_unix: 0 + archived_unix: 0 - id: 28 @@ -824,6 +1092,8 @@ owner_name: user19 lower_name: big_test_private_mirror_6 name: big_test_private_mirror_6 + description: '' + original_service_type: 0 num_watches: 0 num_stars: 0 num_forks: 1 @@ -835,6 +1105,8 @@ num_closed_milestones: 0 num_projects: 0 num_closed_projects: 0 + num_action_runs: 0 + num_closed_action_runs: 0 is_private: true is_empty: true is_archived: false @@ -845,8 +1117,14 @@ is_template: false template_id: 0 size: 0 + git_size: 0 + lfs_size: 0 is_fsck_enabled: true close_issues_via_commit_in_any_branch: false + trust_model: 0 + created_unix: 0 + updated_unix: 0 + archived_unix: 0 - id: 29 @@ -854,6 +1132,8 @@ owner_name: user20 lower_name: big_test_public_fork_7 name: big_test_public_fork_7 + description: '' + original_service_type: 0 num_watches: 0 num_stars: 0 num_forks: 0 @@ -865,6 +1145,8 @@ num_closed_milestones: 0 num_projects: 0 num_closed_projects: 0 + num_action_runs: 0 + num_closed_action_runs: 0 is_private: false is_empty: true is_archived: false @@ -875,8 +1157,14 @@ is_template: false template_id: 0 size: 0 + git_size: 0 + lfs_size: 0 is_fsck_enabled: true close_issues_via_commit_in_any_branch: false + trust_model: 0 + created_unix: 0 + updated_unix: 0 + archived_unix: 0 - id: 30 @@ -884,6 +1172,8 @@ owner_name: user20 lower_name: big_test_private_fork_7 name: big_test_private_fork_7 + description: '' + original_service_type: 0 num_watches: 0 num_stars: 0 num_forks: 0 @@ -895,6 +1185,8 @@ num_closed_milestones: 0 num_projects: 0 num_closed_projects: 0 + num_action_runs: 0 + num_closed_action_runs: 0 is_private: true is_empty: true is_archived: false @@ -905,8 +1197,14 @@ is_template: false template_id: 0 size: 0 + git_size: 0 + lfs_size: 0 is_fsck_enabled: true close_issues_via_commit_in_any_branch: false + trust_model: 0 + created_unix: 0 + updated_unix: 0 + archived_unix: 0 - id: 31 @@ -914,6 +1212,8 @@ owner_name: user2 lower_name: repo20 name: repo20 + description: '' + original_service_type: 0 default_branch: master num_watches: 0 num_stars: 0 @@ -926,6 +1226,8 @@ num_closed_milestones: 0 num_projects: 0 num_closed_projects: 0 + num_action_runs: 0 + num_closed_action_runs: 0 is_private: true is_empty: false is_archived: false @@ -936,15 +1238,23 @@ is_template: false template_id: 0 size: 0 + git_size: 0 + lfs_size: 0 is_fsck_enabled: true close_issues_via_commit_in_any_branch: false + trust_model: 0 + created_unix: 0 + updated_unix: 0 + archived_unix: 0 - - id: 32 # org public repo + id: 32 owner_id: 3 owner_name: user3 lower_name: repo21 name: repo21 + description: '' + original_service_type: 0 num_watches: 0 num_stars: 0 num_forks: 0 @@ -956,6 +1266,8 @@ num_closed_milestones: 0 num_projects: 0 num_closed_projects: 0 + num_action_runs: 0 + num_closed_action_runs: 0 is_private: false is_empty: true is_archived: false @@ -966,8 +1278,14 @@ is_template: false template_id: 0 size: 0 + git_size: 0 + lfs_size: 0 is_fsck_enabled: true close_issues_via_commit_in_any_branch: false + trust_model: 0 + created_unix: 0 + updated_unix: 0 + archived_unix: 0 - id: 33 @@ -975,6 +1293,8 @@ owner_name: user2 lower_name: utf8 name: utf8 + description: '' + original_service_type: 0 default_branch: master num_watches: 0 num_stars: 0 @@ -987,6 +1307,8 @@ num_closed_milestones: 0 num_projects: 0 num_closed_projects: 0 + num_action_runs: 0 + num_closed_action_runs: 0 is_private: false is_empty: false is_archived: false @@ -997,8 +1319,14 @@ is_template: false template_id: 0 size: 0 + git_size: 0 + lfs_size: 0 is_fsck_enabled: true close_issues_via_commit_in_any_branch: false + trust_model: 0 + created_unix: 0 + updated_unix: 0 + archived_unix: 0 - id: 34 @@ -1006,6 +1334,8 @@ owner_name: user21 lower_name: golang name: golang + description: '' + original_service_type: 0 num_watches: 0 num_stars: 0 num_forks: 0 @@ -1017,6 +1347,8 @@ num_closed_milestones: 0 num_projects: 0 num_closed_projects: 0 + num_action_runs: 0 + num_closed_action_runs: 0 is_private: false is_empty: true is_archived: false @@ -1027,8 +1359,14 @@ is_template: false template_id: 0 size: 0 + git_size: 0 + lfs_size: 0 is_fsck_enabled: true close_issues_via_commit_in_any_branch: false + trust_model: 0 + created_unix: 0 + updated_unix: 0 + archived_unix: 0 - id: 35 @@ -1036,6 +1374,8 @@ owner_name: user21 lower_name: graphql name: graphql + description: '' + original_service_type: 0 num_watches: 0 num_stars: 0 num_forks: 0 @@ -1047,6 +1387,8 @@ num_closed_milestones: 0 num_projects: 0 num_closed_projects: 0 + num_action_runs: 0 + num_closed_action_runs: 0 is_private: false is_empty: true is_archived: false @@ -1057,8 +1399,14 @@ is_template: false template_id: 0 size: 0 + git_size: 0 + lfs_size: 0 is_fsck_enabled: true close_issues_via_commit_in_any_branch: false + trust_model: 0 + created_unix: 0 + updated_unix: 0 + archived_unix: 0 - id: 36 @@ -1066,6 +1414,8 @@ owner_name: user2 lower_name: commits_search_test name: commits_search_test + description: '' + original_service_type: 0 default_branch: master num_watches: 0 num_stars: 0 @@ -1078,6 +1428,8 @@ num_closed_milestones: 0 num_projects: 0 num_closed_projects: 0 + num_action_runs: 0 + num_closed_action_runs: 0 is_private: false is_empty: false is_archived: false @@ -1088,8 +1440,14 @@ is_template: false template_id: 0 size: 0 + git_size: 0 + lfs_size: 0 is_fsck_enabled: true close_issues_via_commit_in_any_branch: false + trust_model: 0 + created_unix: 0 + updated_unix: 0 + archived_unix: 0 - id: 37 @@ -1097,6 +1455,8 @@ owner_name: user2 lower_name: git_hooks_test name: git_hooks_test + description: '' + original_service_type: 0 default_branch: master num_watches: 0 num_stars: 0 @@ -1109,6 +1469,8 @@ num_closed_milestones: 0 num_projects: 0 num_closed_projects: 0 + num_action_runs: 0 + num_closed_action_runs: 0 is_private: false is_empty: false is_archived: false @@ -1119,8 +1481,14 @@ is_template: false template_id: 0 size: 0 + git_size: 0 + lfs_size: 0 is_fsck_enabled: true close_issues_via_commit_in_any_branch: false + trust_model: 0 + created_unix: 0 + updated_unix: 0 + archived_unix: 0 - id: 38 @@ -1128,6 +1496,8 @@ owner_name: limited_org lower_name: public_repo_on_limited_org name: public_repo_on_limited_org + description: '' + original_service_type: 0 default_branch: master num_watches: 0 num_stars: 0 @@ -1140,6 +1510,8 @@ num_closed_milestones: 0 num_projects: 0 num_closed_projects: 0 + num_action_runs: 0 + num_closed_action_runs: 0 is_private: false is_empty: false is_archived: false @@ -1150,8 +1522,14 @@ is_template: false template_id: 0 size: 0 + git_size: 0 + lfs_size: 0 is_fsck_enabled: true close_issues_via_commit_in_any_branch: false + trust_model: 0 + created_unix: 0 + updated_unix: 0 + archived_unix: 0 - id: 39 @@ -1159,6 +1537,8 @@ owner_name: limited_org lower_name: private_repo_on_limited_org name: private_repo_on_limited_org + description: '' + original_service_type: 0 default_branch: master num_watches: 0 num_stars: 0 @@ -1171,6 +1551,8 @@ num_closed_milestones: 0 num_projects: 0 num_closed_projects: 0 + num_action_runs: 0 + num_closed_action_runs: 0 is_private: true is_empty: false is_archived: false @@ -1181,8 +1563,14 @@ is_template: false template_id: 0 size: 0 + git_size: 0 + lfs_size: 0 is_fsck_enabled: true close_issues_via_commit_in_any_branch: false + trust_model: 0 + created_unix: 0 + updated_unix: 0 + archived_unix: 0 - id: 40 @@ -1190,6 +1578,8 @@ owner_name: privated_org lower_name: public_repo_on_private_org name: public_repo_on_private_org + description: '' + original_service_type: 0 default_branch: master num_watches: 0 num_stars: 0 @@ -1202,6 +1592,8 @@ num_closed_milestones: 0 num_projects: 0 num_closed_projects: 0 + num_action_runs: 0 + num_closed_action_runs: 0 is_private: false is_empty: false is_archived: false @@ -1212,8 +1604,14 @@ is_template: false template_id: 0 size: 0 + git_size: 0 + lfs_size: 0 is_fsck_enabled: true close_issues_via_commit_in_any_branch: false + trust_model: 0 + created_unix: 0 + updated_unix: 0 + archived_unix: 0 - id: 41 @@ -1221,6 +1619,8 @@ owner_name: privated_org lower_name: private_repo_on_private_org name: private_repo_on_private_org + description: '' + original_service_type: 0 default_branch: master num_watches: 0 num_stars: 0 @@ -1233,6 +1633,8 @@ num_closed_milestones: 0 num_projects: 0 num_closed_projects: 0 + num_action_runs: 0 + num_closed_action_runs: 0 is_private: true is_empty: false is_archived: false @@ -1243,8 +1645,14 @@ is_template: false template_id: 0 size: 0 + git_size: 0 + lfs_size: 0 is_fsck_enabled: true close_issues_via_commit_in_any_branch: false + trust_model: 0 + created_unix: 0 + updated_unix: 0 + archived_unix: 0 - id: 42 @@ -1252,6 +1660,8 @@ owner_name: user2 lower_name: glob name: glob + description: '' + original_service_type: 0 default_branch: master num_watches: 0 num_stars: 0 @@ -1264,6 +1674,8 @@ num_closed_milestones: 0 num_projects: 0 num_closed_projects: 0 + num_action_runs: 0 + num_closed_action_runs: 0 is_private: false is_empty: false is_archived: false @@ -1274,8 +1686,14 @@ is_template: false template_id: 0 size: 0 + git_size: 0 + lfs_size: 0 is_fsck_enabled: true close_issues_via_commit_in_any_branch: false + trust_model: 0 + created_unix: 0 + updated_unix: 0 + archived_unix: 0 - id: 43 @@ -1283,6 +1701,8 @@ owner_name: org26 lower_name: repo26 name: repo26 + description: '' + original_service_type: 0 num_watches: 0 num_stars: 0 num_forks: 0 @@ -1294,6 +1714,8 @@ num_closed_milestones: 0 num_projects: 0 num_closed_projects: 0 + num_action_runs: 0 + num_closed_action_runs: 0 is_private: true is_empty: true is_archived: false @@ -1304,8 +1726,14 @@ is_template: false template_id: 0 size: 0 + git_size: 0 + lfs_size: 0 is_fsck_enabled: true close_issues_via_commit_in_any_branch: false + trust_model: 0 + created_unix: 0 + updated_unix: 0 + archived_unix: 0 - id: 44 @@ -1313,6 +1741,8 @@ owner_name: user27 lower_name: template1 name: template1 + description: '' + original_service_type: 0 default_branch: master num_watches: 0 num_stars: 0 @@ -1325,6 +1755,8 @@ num_closed_milestones: 0 num_projects: 0 num_closed_projects: 0 + num_action_runs: 0 + num_closed_action_runs: 0 is_private: false is_empty: false is_archived: false @@ -1335,8 +1767,14 @@ is_template: true template_id: 0 size: 0 + git_size: 0 + lfs_size: 0 is_fsck_enabled: true close_issues_via_commit_in_any_branch: false + trust_model: 0 + created_unix: 0 + updated_unix: 0 + archived_unix: 0 - id: 45 @@ -1344,6 +1782,8 @@ owner_name: user27 lower_name: template2 name: template2 + description: '' + original_service_type: 0 num_watches: 0 num_stars: 0 num_forks: 0 @@ -1355,6 +1795,8 @@ num_closed_milestones: 0 num_projects: 0 num_closed_projects: 0 + num_action_runs: 0 + num_closed_action_runs: 0 is_private: false is_empty: true is_archived: false @@ -1365,8 +1807,14 @@ is_template: true template_id: 0 size: 0 + git_size: 0 + lfs_size: 0 is_fsck_enabled: true close_issues_via_commit_in_any_branch: false + trust_model: 0 + created_unix: 0 + updated_unix: 0 + archived_unix: 0 - id: 46 @@ -1374,6 +1822,8 @@ owner_name: org26 lower_name: repo_external_tracker name: repo_external_tracker + description: '' + original_service_type: 0 default_branch: master num_watches: 0 num_stars: 0 @@ -1386,6 +1836,8 @@ num_closed_milestones: 0 num_projects: 0 num_closed_projects: 0 + num_action_runs: 0 + num_closed_action_runs: 0 is_private: false is_empty: false is_archived: false @@ -1396,8 +1848,14 @@ is_template: false template_id: 0 size: 0 + git_size: 0 + lfs_size: 0 is_fsck_enabled: true close_issues_via_commit_in_any_branch: false + trust_model: 0 + created_unix: 0 + updated_unix: 0 + archived_unix: 0 - id: 47 @@ -1405,6 +1863,8 @@ owner_name: org26 lower_name: repo_external_tracker_numeric name: repo_external_tracker_numeric + description: '' + original_service_type: 0 default_branch: master num_watches: 0 num_stars: 0 @@ -1417,6 +1877,8 @@ num_closed_milestones: 0 num_projects: 0 num_closed_projects: 0 + num_action_runs: 0 + num_closed_action_runs: 0 is_private: false is_empty: false is_archived: false @@ -1427,8 +1889,14 @@ is_template: false template_id: 0 size: 0 + git_size: 0 + lfs_size: 0 is_fsck_enabled: true close_issues_via_commit_in_any_branch: false + trust_model: 0 + created_unix: 0 + updated_unix: 0 + archived_unix: 0 - id: 48 @@ -1436,6 +1904,8 @@ owner_name: org26 lower_name: repo_external_tracker_alpha name: repo_external_tracker_alpha + description: '' + original_service_type: 0 default_branch: master num_watches: 0 num_stars: 0 @@ -1448,6 +1918,8 @@ num_closed_milestones: 0 num_projects: 0 num_closed_projects: 0 + num_action_runs: 0 + num_closed_action_runs: 0 is_private: false is_empty: false is_archived: false @@ -1458,8 +1930,14 @@ is_template: false template_id: 0 size: 0 + git_size: 0 + lfs_size: 0 is_fsck_enabled: true close_issues_via_commit_in_any_branch: false + trust_model: 0 + created_unix: 0 + updated_unix: 0 + archived_unix: 0 - id: 49 @@ -1467,6 +1945,8 @@ owner_name: user27 lower_name: repo49 name: repo49 + description: '' + original_service_type: 0 default_branch: master num_watches: 0 num_stars: 0 @@ -1479,6 +1959,8 @@ num_closed_milestones: 0 num_projects: 0 num_closed_projects: 0 + num_action_runs: 0 + num_closed_action_runs: 0 is_private: false is_empty: false is_archived: false @@ -1489,8 +1971,14 @@ is_template: false template_id: 0 size: 0 + git_size: 0 + lfs_size: 0 is_fsck_enabled: true close_issues_via_commit_in_any_branch: false + trust_model: 0 + created_unix: 0 + updated_unix: 0 + archived_unix: 0 - id: 50 @@ -1498,6 +1986,8 @@ owner_name: user30 lower_name: repo50 name: repo50 + description: '' + original_service_type: 0 default_branch: master num_watches: 0 num_stars: 0 @@ -1510,6 +2000,8 @@ num_closed_milestones: 0 num_projects: 0 num_closed_projects: 0 + num_action_runs: 0 + num_closed_action_runs: 0 is_private: false is_empty: false is_archived: false @@ -1520,8 +2012,14 @@ is_template: false template_id: 0 size: 0 + git_size: 0 + lfs_size: 0 is_fsck_enabled: true close_issues_via_commit_in_any_branch: false + trust_model: 0 + created_unix: 0 + updated_unix: 0 + archived_unix: 0 - id: 51 @@ -1529,6 +2027,8 @@ owner_name: user30 lower_name: repo51 name: repo51 + description: '' + original_service_type: 0 default_branch: master num_watches: 0 num_stars: 0 @@ -1541,6 +2041,8 @@ num_closed_milestones: 0 num_projects: 0 num_closed_projects: 0 + num_action_runs: 0 + num_closed_action_runs: 0 is_private: false is_empty: false is_archived: true @@ -1551,8 +2053,14 @@ is_template: false template_id: 0 size: 0 + git_size: 0 + lfs_size: 0 is_fsck_enabled: true close_issues_via_commit_in_any_branch: false + trust_model: 0 + created_unix: 0 + updated_unix: 0 + archived_unix: 0 - id: 52 @@ -1560,6 +2068,8 @@ owner_name: user30 lower_name: empty name: empty + description: '' + original_service_type: 0 default_branch: master num_watches: 0 num_stars: 0 @@ -1572,6 +2082,8 @@ num_closed_milestones: 0 num_projects: 0 num_closed_projects: 0 + num_action_runs: 0 + num_closed_action_runs: 0 is_private: true is_empty: true is_archived: false @@ -1582,8 +2094,14 @@ is_template: false template_id: 0 size: 0 + git_size: 0 + lfs_size: 0 is_fsck_enabled: true close_issues_via_commit_in_any_branch: false + trust_model: 0 + created_unix: 0 + updated_unix: 0 + archived_unix: 0 - id: 53 @@ -1591,27 +2109,40 @@ owner_name: user30 lower_name: renderer name: renderer + description: '' + original_service_type: 0 default_branch: master - is_archived: false - is_empty: false - is_private: false + num_watches: 0 + num_stars: 0 + num_forks: 0 num_issues: 0 num_closed_issues: 0 num_pulls: 0 num_closed_pulls: 0 num_milestones: 0 num_closed_milestones: 0 - num_watches: 0 num_projects: 0 num_closed_projects: 0 + num_action_runs: 0 + num_closed_action_runs: 0 + is_private: false + is_empty: false + is_archived: false + is_mirror: false status: 0 is_fork: false fork_id: 0 is_template: false template_id: 0 size: 0 + git_size: 0 + lfs_size: 0 is_fsck_enabled: true close_issues_via_commit_in_any_branch: false + trust_model: 0 + created_unix: 0 + updated_unix: 0 + archived_unix: 0 - id: 54 @@ -1619,11 +2150,40 @@ owner_name: user2 lower_name: lfs name: lfs + description: '' + original_service_type: 0 default_branch: master + num_watches: 0 + num_stars: 0 + num_forks: 0 + num_issues: 0 + num_closed_issues: 0 + num_pulls: 0 + num_closed_pulls: 0 + num_milestones: 0 + num_closed_milestones: 0 + num_projects: 0 + num_closed_projects: 0 + num_action_runs: 0 + num_closed_action_runs: 0 + is_private: true is_empty: false is_archived: false - is_private: true + is_mirror: false status: 0 + is_fork: false + fork_id: 0 + is_template: false + template_id: 0 + size: 0 + git_size: 0 + lfs_size: 0 + is_fsck_enabled: true + close_issues_via_commit_in_any_branch: false + trust_model: 0 + created_unix: 0 + updated_unix: 0 + archived_unix: 0 - id: 55 @@ -1631,11 +2191,39 @@ owner_name: user2 lower_name: scoped_label name: scoped_label + description: '' + original_service_type: 0 + num_watches: 0 + num_stars: 0 + num_forks: 0 + num_issues: 1 + num_closed_issues: 0 + num_pulls: 0 + num_closed_pulls: 0 + num_milestones: 0 + num_closed_milestones: 0 + num_projects: 0 + num_closed_projects: 0 + num_action_runs: 0 + num_closed_action_runs: 0 + is_private: true is_empty: false is_archived: false - is_private: true - num_issues: 1 + is_mirror: false status: 0 + is_fork: false + fork_id: 0 + is_template: false + template_id: 0 + size: 0 + git_size: 0 + lfs_size: 0 + is_fsck_enabled: true + close_issues_via_commit_in_any_branch: false + trust_model: 0 + created_unix: 0 + updated_unix: 0 + archived_unix: 0 - id: 56 @@ -1643,12 +2231,40 @@ owner_name: user2 lower_name: readme-test name: readme-test + description: '' + original_service_type: 0 default_branch: master + num_watches: 0 + num_stars: 0 + num_forks: 0 + num_issues: 0 + num_closed_issues: 0 + num_pulls: 0 + num_closed_pulls: 0 + num_milestones: 0 + num_closed_milestones: 0 + num_projects: 0 + num_closed_projects: 0 + num_action_runs: 0 + num_closed_action_runs: 0 + is_private: true is_empty: false is_archived: false - is_private: true + is_mirror: false status: 0 - num_issues: 0 + is_fork: false + fork_id: 0 + is_template: false + template_id: 0 + size: 0 + git_size: 0 + lfs_size: 0 + is_fsck_enabled: true + close_issues_via_commit_in_any_branch: false + trust_model: 0 + created_unix: 0 + updated_unix: 0 + archived_unix: 0 - id: 57 @@ -1656,19 +2272,49 @@ owner_name: user2 lower_name: repo-release name: repo-release + description: '' + original_service_type: 0 default_branch: main + num_watches: 0 + num_stars: 0 + num_forks: 0 + num_issues: 0 + num_closed_issues: 0 + num_pulls: 0 + num_closed_pulls: 0 + num_milestones: 0 + num_closed_milestones: 0 + num_projects: 0 + num_closed_projects: 0 + num_action_runs: 0 + num_closed_action_runs: 0 + is_private: false is_empty: false is_archived: false - is_private: false + is_mirror: false status: 0 - num_issues: 0 + is_fork: false + fork_id: 0 + is_template: false + template_id: 0 + size: 0 + git_size: 0 + lfs_size: 0 + is_fsck_enabled: true + close_issues_via_commit_in_any_branch: false + trust_model: 0 + created_unix: 0 + updated_unix: 0 + archived_unix: 0 - - id: 58 # org public repo + id: 58 owner_id: 2 owner_name: user2 lower_name: commitsonpr name: commitsonpr + description: '' + original_service_type: 0 default_branch: main num_watches: 0 num_stars: 0 @@ -1681,6 +2327,8 @@ num_closed_milestones: 0 num_projects: 0 num_closed_projects: 0 + num_action_runs: 0 + num_closed_action_runs: 0 is_private: false is_empty: false is_archived: false @@ -1691,5 +2339,12 @@ is_template: false template_id: 0 size: 0 + git_size: 0 + lfs_size: 0 is_fsck_enabled: true close_issues_via_commit_in_any_branch: false + trust_model: 0 + created_unix: 0 + updated_unix: 0 + archived_unix: 0 + diff --git a/models/fixtures/review.yml b/models/fixtures/review.yml index cc2c7e06e73e2..da90859739128 100644 --- a/models/fixtures/review.yml +++ b/models/fixtures/review.yml @@ -2,133 +2,210 @@ id: 1 type: 1 reviewer_id: 1 + reviewer_team_id: 0 + original_author_id: 0 issue_id: 2 - content: "Demo Review" - updated_unix: 946684810 + content: 'Demo Review' + official: false + stale: false + dismissed: false created_unix: 946684810 + updated_unix: 946684810 + - id: 2 type: 1 reviewer_id: 534543 + reviewer_team_id: 0 + original_author_id: 0 issue_id: 534543 - content: "Invalid Review #1" - updated_unix: 946684810 + content: 'Invalid Review #1' + official: false + stale: false + dismissed: false created_unix: 946684810 + updated_unix: 946684810 + - id: 3 type: 1 reviewer_id: 1 + reviewer_team_id: 0 + original_author_id: 0 issue_id: 343545 - content: "Invalid Review #2" - updated_unix: 946684810 + content: 'Invalid Review #2' + official: false + stale: false + dismissed: false created_unix: 946684810 + updated_unix: 946684810 + - id: 4 - type: 0 # Pending review + type: 0 reviewer_id: 1 + reviewer_team_id: 0 + original_author_id: 0 issue_id: 2 - content: "Pending Review" - updated_unix: 946684810 + content: 'Pending Review' + official: false + stale: false + dismissed: false created_unix: 946684810 + updated_unix: 946684810 + - id: 5 type: 2 reviewer_id: 1 + reviewer_team_id: 0 + original_author_id: 0 issue_id: 3 - content: "New review 1" - updated_unix: 946684810 + content: 'New review 1' + official: false + stale: false + dismissed: false created_unix: 946684810 + updated_unix: 946684810 + - id: 6 type: 0 reviewer_id: 2 - issue_id: 3 - content: "New review 3" + reviewer_team_id: 0 original_author_id: 0 - updated_unix: 946684811 + issue_id: 3 + content: 'New review 3' + official: false + stale: false + dismissed: false created_unix: 946684811 + updated_unix: 946684811 + - id: 7 type: 3 reviewer_id: 3 - issue_id: 3 - content: "New review 4" + reviewer_team_id: 0 original_author_id: 0 - updated_unix: 946684812 + issue_id: 3 + content: 'New review 4' + official: false + stale: false + dismissed: false created_unix: 946684812 + updated_unix: 946684812 + - id: 8 type: 1 reviewer_id: 4 - issue_id: 3 + reviewer_team_id: 0 original_author_id: 0 - content: "New review 5" + issue_id: 3 + content: 'New review 5' + official: false commit_id: 8091a55037cd59e47293aca02981b5a67076b364 stale: true - updated_unix: 946684813 + dismissed: false created_unix: 946684813 + updated_unix: 946684813 + - id: 9 type: 3 reviewer_id: 2 + reviewer_team_id: 0 + original_author_id: 0 issue_id: 3 - content: "New review 3 rejected" - updated_unix: 946684814 + content: 'New review 3 rejected' + official: false + stale: false + dismissed: false created_unix: 946684814 - original_author_id: 0 + updated_unix: 946684814 - id: 10 type: 3 reviewer_id: 100 + reviewer_team_id: 0 + original_author_id: 0 issue_id: 3 - content: "a deleted user's review" + content: 'a deleted user''s review' official: true - updated_unix: 946684815 + stale: false + dismissed: false created_unix: 946684815 + updated_unix: 946684815 - id: 11 type: 4 reviewer_id: 0 reviewer_team_id: 7 + original_author_id: 0 issue_id: 12 + content: '' official: true - updated_unix: 1602936509 + stale: false + dismissed: false created_unix: 1602936509 + updated_unix: 1602936509 - id: 12 type: 4 reviewer_id: 1 + reviewer_team_id: 0 + original_author_id: 0 issue_id: 12 + content: '' official: true - updated_unix: 1603196749 + stale: false + dismissed: false created_unix: 1603196749 + updated_unix: 1603196749 - id: 13 type: 1 reviewer_id: 5 + reviewer_team_id: 0 + original_author_id: 0 issue_id: 11 - content: "old review from user5" - updated_unix: 946684820 + content: 'old review from user5' + official: false + stale: false + dismissed: false created_unix: 946684820 + updated_unix: 946684820 - id: 14 type: 1 reviewer_id: 5 + reviewer_team_id: 0 + original_author_id: 0 issue_id: 11 - content: "duplicate review from user5 (latest)" - updated_unix: 946684830 + content: 'duplicate review from user5 (latest)' + official: false + stale: false + dismissed: false created_unix: 946684830 + updated_unix: 946684830 - id: 15 type: 1 reviewer_id: 6 + reviewer_team_id: 0 + original_author_id: 0 issue_id: 11 - content: "singular review from user6 and final review for this pr" - updated_unix: 946684831 + content: 'singular review from user6 and final review for this pr' + official: false + stale: false + dismissed: false created_unix: 946684831 + updated_unix: 946684831 + diff --git a/models/fixtures/star.yml b/models/fixtures/star.yml index 860f26b8e2282..427c6562b8b8d 100644 --- a/models/fixtures/star.yml +++ b/models/fixtures/star.yml @@ -2,8 +2,11 @@ id: 1 uid: 2 repo_id: 2 + created_unix: 0 - id: 2 uid: 2 repo_id: 4 + created_unix: 0 + diff --git a/models/fixtures/stopwatch.yml b/models/fixtures/stopwatch.yml index b7919d6fbbd6e..8d03dbc2b4a26 100644 --- a/models/fixtures/stopwatch.yml +++ b/models/fixtures/stopwatch.yml @@ -1,11 +1,12 @@ - id: 1 - user_id: 1 issue_id: 1 + user_id: 1 created_unix: 1500988001 - id: 2 - user_id: 2 issue_id: 2 + user_id: 2 created_unix: 1500988002 + diff --git a/models/fixtures/system_setting.yml b/models/fixtures/system_setting.yml index 6c960168fcb81..d22fdc02f717c 100644 --- a/models/fixtures/system_setting.yml +++ b/models/fixtures/system_setting.yml @@ -1,6 +1,6 @@ - id: 1 - setting_key: 'disable_gravatar' + setting_key: disable_gravatar setting_value: 'false' version: 1 created: 1653533198 @@ -8,8 +8,9 @@ - id: 2 - setting_key: 'enable_federated_avatar' + setting_key: enable_federated_avatar setting_value: 'false' version: 1 created: 1653533198 updated: 1653533198 + diff --git a/models/fixtures/team.yml b/models/fixtures/team.yml index 65326eedbf476..2614b70b7a46f 100644 --- a/models/fixtures/team.yml +++ b/models/fixtures/team.yml @@ -3,7 +3,7 @@ org_id: 3 lower_name: owners name: Owners - authorize: 4 # owner + 'authorize': 4 num_repos: 3 num_members: 1 includes_all_repositories: false @@ -14,7 +14,7 @@ org_id: 3 lower_name: team1 name: team1 - authorize: 2 # write + 'authorize': 2 num_repos: 1 num_members: 2 includes_all_repositories: false @@ -25,7 +25,7 @@ org_id: 6 lower_name: owners name: Owners - authorize: 4 # owner + 'authorize': 4 num_repos: 0 num_members: 1 includes_all_repositories: false @@ -36,7 +36,7 @@ org_id: 7 lower_name: owners name: Owners - authorize: 4 # owner + 'authorize': 4 num_repos: 0 num_members: 1 includes_all_repositories: false @@ -47,7 +47,7 @@ org_id: 17 lower_name: owners name: Owners - authorize: 4 # owner + 'authorize': 4 num_repos: 2 num_members: 2 includes_all_repositories: false @@ -58,7 +58,7 @@ org_id: 19 lower_name: owners name: Owners - authorize: 4 # owner + 'authorize': 4 num_repos: 2 num_members: 2 includes_all_repositories: false @@ -69,7 +69,7 @@ org_id: 3 lower_name: test_team name: test_team - authorize: 2 # write + 'authorize': 2 num_repos: 1 num_members: 1 includes_all_repositories: false @@ -80,7 +80,7 @@ org_id: 17 lower_name: test_team name: test_team - authorize: 2 # write + 'authorize': 2 num_repos: 1 num_members: 1 includes_all_repositories: false @@ -91,7 +91,7 @@ org_id: 17 lower_name: review_team name: review_team - authorize: 1 # read + 'authorize': 1 num_repos: 1 num_members: 2 includes_all_repositories: false @@ -102,7 +102,7 @@ org_id: 25 lower_name: notowners name: NotOwners - authorize: 1 # read + 'authorize': 1 num_repos: 0 num_members: 1 includes_all_repositories: false @@ -113,7 +113,7 @@ org_id: 26 lower_name: team11 name: team11 - authorize: 1 # read + 'authorize': 1 num_repos: 0 num_members: 0 includes_all_repositories: false @@ -124,7 +124,7 @@ org_id: 3 lower_name: team12creators name: team12Creators - authorize: 3 # admin + 'authorize': 3 num_repos: 0 num_members: 1 includes_all_repositories: false @@ -135,7 +135,7 @@ org_id: 6 lower_name: team13notcreators name: team13NotCreators - authorize: 3 # admin + 'authorize': 3 num_repos: 0 num_members: 1 includes_all_repositories: false @@ -146,7 +146,7 @@ org_id: 3 lower_name: teamcreaterepo name: teamCreateRepo - authorize: 2 # write + 'authorize': 2 num_repos: 0 num_members: 1 includes_all_repositories: false @@ -157,7 +157,7 @@ org_id: 22 lower_name: owners name: Owners - authorize: 4 # owner + 'authorize': 4 num_repos: 0 num_members: 0 includes_all_repositories: false @@ -168,7 +168,7 @@ org_id: 23 lower_name: owners name: Owners - authorize: 4 # owner + 'authorize': 4 num_repos: 0 num_members: 0 includes_all_repositories: false @@ -179,7 +179,7 @@ org_id: 23 lower_name: team14writeauth name: team14WriteAuth - authorize: 2 # write + 'authorize': 2 num_repos: 0 num_members: 1 includes_all_repositories: false @@ -190,7 +190,7 @@ org_id: 35 lower_name: owners name: Owners - authorize: 4 # owner + 'authorize': 4 num_repos: 0 num_members: 1 includes_all_repositories: false @@ -201,7 +201,7 @@ org_id: 36 lower_name: owners name: Owners - authorize: 4 # owner + 'authorize': 4 num_repos: 0 num_members: 1 includes_all_repositories: false @@ -212,8 +212,9 @@ org_id: 36 lower_name: team20writepackage name: team20writepackage - authorize: 1 + 'authorize': 1 num_repos: 0 num_members: 1 includes_all_repositories: false can_create_org_repo: true + diff --git a/models/fixtures/team_repo.yml b/models/fixtures/team_repo.yml index a523a90b204d2..192118339c3f0 100644 --- a/models/fixtures/team_repo.yml +++ b/models/fixtures/team_repo.yml @@ -62,4 +62,5 @@ id: 11 org_id: 17 team_id: 9 - repo_id: 24 \ No newline at end of file + repo_id: 24 + diff --git a/models/fixtures/team_unit.yml b/models/fixtures/team_unit.yml index c5531aa57af52..ac3487466c1d4 100644 --- a/models/fixtures/team_unit.yml +++ b/models/fixtures/team_unit.yml @@ -1,251 +1,293 @@ - id: 1 + org_id: 0 team_id: 1 type: 1 access_mode: 4 - id: 2 + org_id: 0 team_id: 1 type: 2 access_mode: 4 - id: 3 + org_id: 0 team_id: 1 type: 3 access_mode: 4 - id: 4 + org_id: 0 team_id: 1 type: 4 access_mode: 4 - id: 5 + org_id: 0 team_id: 1 type: 5 access_mode: 4 - id: 6 + org_id: 0 team_id: 1 type: 6 access_mode: 4 - id: 7 + org_id: 0 team_id: 1 type: 7 access_mode: 4 - id: 8 + org_id: 0 team_id: 2 type: 1 access_mode: 2 - id: 9 + org_id: 0 team_id: 2 type: 2 access_mode: 2 - id: 10 + org_id: 0 team_id: 2 type: 3 access_mode: 2 - id: 11 + org_id: 0 team_id: 2 type: 4 access_mode: 2 - id: 12 + org_id: 0 team_id: 2 type: 5 access_mode: 2 - id: 13 + org_id: 0 team_id: 2 type: 6 access_mode: 2 - id: 14 + org_id: 0 team_id: 2 type: 7 access_mode: 2 - id: 15 + org_id: 0 team_id: 3 type: 1 access_mode: 4 - id: 16 + org_id: 0 team_id: 3 type: 2 access_mode: 4 - id: 17 + org_id: 0 team_id: 3 type: 3 access_mode: 4 - id: 18 + org_id: 0 team_id: 3 type: 4 access_mode: 4 - id: 19 + org_id: 0 team_id: 3 type: 5 access_mode: 4 - id: 20 + org_id: 0 team_id: 3 type: 6 access_mode: 4 - id: 21 + org_id: 0 team_id: 3 type: 7 access_mode: 4 - id: 22 + org_id: 0 team_id: 4 type: 1 access_mode: 4 - id: 23 + org_id: 0 team_id: 4 type: 2 access_mode: 4 - id: 24 + org_id: 0 team_id: 4 type: 3 access_mode: 4 - id: 25 + org_id: 0 team_id: 4 type: 4 access_mode: 4 - id: 26 + org_id: 0 team_id: 4 type: 5 access_mode: 4 - id: 27 + org_id: 0 team_id: 4 type: 6 access_mode: 4 - id: 28 + org_id: 0 team_id: 4 type: 7 access_mode: 4 - id: 29 + org_id: 0 team_id: 5 type: 1 access_mode: 4 - id: 30 + org_id: 0 team_id: 5 type: 2 access_mode: 4 - id: 31 + org_id: 0 team_id: 5 type: 3 access_mode: 4 - id: 32 + org_id: 0 team_id: 5 type: 4 access_mode: 4 - id: 33 + org_id: 0 team_id: 5 type: 5 access_mode: 4 - id: 34 + org_id: 0 team_id: 5 type: 6 access_mode: 4 - id: 35 + org_id: 0 team_id: 5 type: 7 access_mode: 4 - id: 36 + org_id: 0 team_id: 6 type: 1 access_mode: 4 - id: 37 + org_id: 0 team_id: 6 type: 2 access_mode: 4 - id: 38 + org_id: 0 team_id: 6 type: 3 access_mode: 4 - id: 39 + org_id: 0 team_id: 6 type: 4 access_mode: 4 - id: 40 + org_id: 0 team_id: 6 type: 5 access_mode: 4 - id: 41 + org_id: 0 team_id: 6 type: 6 access_mode: 4 - id: 42 + org_id: 0 team_id: 6 type: 7 access_mode: 4 @@ -254,35 +296,41 @@ id: 43 org_id: 3 team_id: 7 - type: 2 # issues + type: 2 access_mode: 2 - id: 44 + org_id: 0 team_id: 8 - type: 2 # issues + type: 2 access_mode: 2 - id: 45 + org_id: 0 team_id: 9 - type: 1 # code + type: 1 access_mode: 1 - id: 46 + org_id: 0 team_id: 17 - type: 9 # package + type: 9 access_mode: 2 - id: 47 + org_id: 0 team_id: 20 - type: 9 # package + type: 9 access_mode: 2 - id: 48 + org_id: 0 team_id: 2 type: 8 access_mode: 2 + diff --git a/models/fixtures/team_user.yml b/models/fixtures/team_user.yml index feace5f2a531d..3eee38faba615 100644 --- a/models/fixtures/team_user.yml +++ b/models/fixtures/team_user.yml @@ -123,3 +123,4 @@ org_id: 36 team_id: 20 uid: 5 + diff --git a/models/fixtures/topic.yml b/models/fixtures/topic.yml index 055addf510e20..78c74ee8e5a7e 100644 --- a/models/fixtures/topic.yml +++ b/models/fixtures/topic.yml @@ -2,28 +2,41 @@ id: 1 name: golang repo_count: 2 + created_unix: 0 + updated_unix: 0 - id: 2 name: database repo_count: 1 + created_unix: 0 + updated_unix: 0 - id: 3 name: SQL repo_count: 1 + created_unix: 0 + updated_unix: 0 - id: 4 name: graphql repo_count: 1 + created_unix: 0 + updated_unix: 0 - id: 5 name: topicname1 repo_count: 1 + created_unix: 0 + updated_unix: 0 - id: 6 name: topicname2 repo_count: 2 + created_unix: 0 + updated_unix: 0 + diff --git a/models/fixtures/tracked_time.yml b/models/fixtures/tracked_time.yml index 768af38d9e20f..46d7d2ed30bd4 100644 --- a/models/fixtures/tracked_time.yml +++ b/models/fixtures/tracked_time.yml @@ -1,71 +1,72 @@ - id: 1 - user_id: 1 issue_id: 1 - time: 400 + user_id: 1 created_unix: 946684800 + time: 400 deleted: false - id: 2 - user_id: 2 issue_id: 2 - time: 3661 + user_id: 2 created_unix: 946684801 + time: 3661 deleted: false - id: 3 - user_id: 2 issue_id: 2 - time: 1 + user_id: 2 created_unix: 946684802 + time: 1 deleted: false - id: 4 - user_id: -1 issue_id: 4 - time: 1 + user_id: -1 created_unix: 946684803 + time: 1 deleted: false - id: 5 - user_id: 2 issue_id: 5 - time: 1 + user_id: 2 created_unix: 946684804 + time: 1 deleted: false - id: 6 - user_id: 1 issue_id: 2 - time: 20 + user_id: 1 created_unix: 946684812 + time: 20 deleted: false - id: 7 - user_id: 2 issue_id: 4 - time: 3 + user_id: 2 created_unix: 946684813 + time: 3 deleted: false - id: 8 - user_id: 1 issue_id: 4 - time: 71 + user_id: 1 created_unix: 947688814 + time: 71 deleted: false - id: 9 - user_id: 2 issue_id: 2 - time: 100000 + user_id: 2 created_unix: 947688815 + time: 100000 deleted: true + diff --git a/models/fixtures/two_factor.yml b/models/fixtures/two_factor.yml index d8cb85274b687..6afbc4bd0d972 100644 --- a/models/fixtures/two_factor.yml +++ b/models/fixtures/two_factor.yml @@ -4,6 +4,6 @@ secret: KlDporn6Ile4vFcKI8z7Z6sqK1Scj2Qp0ovtUzCZO6jVbRW2lAoT7UDxDPtrab8d2B9zKOocBRdBJnS8orsrUNrsyETY+jJHb79M82uZRioKbRUz15sfOpmJmEzkFeSg6S4LicUBQos= scratch_salt: Qb5bq2DyR2 scratch_hash: 068eb9b8746e0bcfe332fac4457693df1bda55800eb0f6894d14ebb736ae6a24e0fc8fc5333c19f57f81599788f0b8e51ec1 - last_used_passcode: created_unix: 1564253724 updated_unix: 1564253724 + diff --git a/models/fixtures/user.yml b/models/fixtures/user.yml index f24d098a7ed7b..9573ad4013183 100644 --- a/models/fixtures/user.yml +++ b/models/fixtures/user.yml @@ -1,6 +1,4 @@ -# NOTE: all users should have a password of "password" - -- # NOTE: this user (id=1) is the admin +- id: 1 lower_name: user1 name: user1 @@ -11,10 +9,15 @@ passwd: ZogKvWdyEx:password passwd_hash_algo: dummy must_change_password: false + login_type: 0 login_source: 0 login_name: user1 type: 0 salt: ZogKvWdyEx + created_unix: 0 + updated_unix: 0 + last_login_unix: 0 + last_repo_visibility: false max_repo_creation: -1 is_active: true is_admin: true @@ -34,24 +37,29 @@ num_members: 0 visibility: 0 repo_admin_change_team_access: false - theme: "" + theme: auto keep_activity_private: false - id: 2 lower_name: user2 name: user2 - full_name: ' < Ur Tw >< ' + full_name: < Ur Tw >< email: user2@example.com keep_email_private: true email_notifications_preference: enabled passwd: ZogKvWdyEx:password passwd_hash_algo: dummy must_change_password: false + login_type: 0 login_source: 0 login_name: user2 type: 0 salt: ZogKvWdyEx + created_unix: 0 + updated_unix: 0 + last_login_unix: 0 + last_repo_visibility: false max_repo_creation: -1 is_active: true is_admin: false @@ -71,24 +79,29 @@ num_members: 0 visibility: 0 repo_admin_change_team_access: false - theme: "" + theme: auto keep_activity_private: false - id: 3 lower_name: user3 name: user3 - full_name: ' <<<< >> >> > >> > >>> >> ' + full_name: <<<< >> >> > >> > >>> >> email: user3@example.com keep_email_private: false email_notifications_preference: onmention passwd: ZogKvWdyEx:password passwd_hash_algo: dummy must_change_password: false + login_type: 0 login_source: 0 login_name: user3 type: 1 salt: ZogKvWdyEx + created_unix: 0 + updated_unix: 0 + last_login_unix: 0 + last_repo_visibility: false max_repo_creation: -1 is_active: false is_admin: false @@ -108,24 +121,28 @@ num_members: 3 visibility: 0 repo_admin_change_team_access: false - theme: "" + theme: auto keep_activity_private: false - id: 4 lower_name: user4 name: user4 - full_name: ' ' email: user4@example.com keep_email_private: false email_notifications_preference: onmention passwd: ZogKvWdyEx:password passwd_hash_algo: dummy must_change_password: false + login_type: 0 login_source: 0 login_name: user4 type: 0 salt: ZogKvWdyEx + created_unix: 0 + updated_unix: 0 + last_login_unix: 0 + last_repo_visibility: false max_repo_creation: -1 is_active: true is_admin: false @@ -145,7 +162,7 @@ num_members: 0 visibility: 0 repo_admin_change_team_access: false - theme: "" + theme: auto keep_activity_private: false - @@ -159,10 +176,15 @@ passwd: ZogKvWdyEx:password passwd_hash_algo: dummy must_change_password: false + login_type: 0 login_source: 0 login_name: user5 type: 0 salt: ZogKvWdyEx + created_unix: 0 + updated_unix: 0 + last_login_unix: 0 + last_repo_visibility: false max_repo_creation: -1 is_active: true is_admin: false @@ -182,7 +204,7 @@ num_members: 0 visibility: 0 repo_admin_change_team_access: false - theme: "" + theme: auto keep_activity_private: false - @@ -196,10 +218,15 @@ passwd: ZogKvWdyEx:password passwd_hash_algo: dummy must_change_password: false + login_type: 0 login_source: 0 login_name: user6 type: 1 salt: ZogKvWdyEx + created_unix: 0 + updated_unix: 0 + last_login_unix: 0 + last_repo_visibility: false max_repo_creation: -1 is_active: false is_admin: false @@ -219,7 +246,7 @@ num_members: 2 visibility: 0 repo_admin_change_team_access: false - theme: "" + theme: auto keep_activity_private: false - @@ -233,10 +260,15 @@ passwd: ZogKvWdyEx:password passwd_hash_algo: dummy must_change_password: false + login_type: 0 login_source: 0 login_name: user7 type: 1 salt: ZogKvWdyEx + created_unix: 0 + updated_unix: 0 + last_login_unix: 0 + last_repo_visibility: false max_repo_creation: -1 is_active: false is_admin: false @@ -256,7 +288,7 @@ num_members: 1 visibility: 0 repo_admin_change_team_access: false - theme: "" + theme: auto keep_activity_private: false - @@ -270,10 +302,15 @@ passwd: ZogKvWdyEx:password passwd_hash_algo: dummy must_change_password: false + login_type: 0 login_source: 0 login_name: user8 type: 0 salt: ZogKvWdyEx + created_unix: 0 + updated_unix: 0 + last_login_unix: 0 + last_repo_visibility: false max_repo_creation: -1 is_active: true is_admin: false @@ -293,7 +330,7 @@ num_members: 0 visibility: 0 repo_admin_change_team_access: false - theme: "" + theme: auto keep_activity_private: false - @@ -307,10 +344,15 @@ passwd: ZogKvWdyEx:password passwd_hash_algo: dummy must_change_password: false + login_type: 0 login_source: 0 login_name: user9 type: 0 salt: ZogKvWdyEx + created_unix: 0 + updated_unix: 0 + last_login_unix: 0 + last_repo_visibility: false max_repo_creation: -1 is_active: false is_admin: false @@ -330,7 +372,7 @@ num_members: 0 visibility: 0 repo_admin_change_team_access: false - theme: "" + theme: auto keep_activity_private: false - @@ -344,10 +386,15 @@ passwd: ZogKvWdyEx:password passwd_hash_algo: dummy must_change_password: false + login_type: 0 login_source: 0 login_name: user10 type: 0 salt: ZogKvWdyEx + created_unix: 0 + updated_unix: 0 + last_login_unix: 0 + last_repo_visibility: false max_repo_creation: -1 is_active: true is_admin: false @@ -367,7 +414,7 @@ num_members: 0 visibility: 0 repo_admin_change_team_access: false - theme: "" + theme: auto keep_activity_private: false - @@ -381,10 +428,15 @@ passwd: ZogKvWdyEx:password passwd_hash_algo: dummy must_change_password: false + login_type: 0 login_source: 0 login_name: user11 type: 0 salt: ZogKvWdyEx + created_unix: 0 + updated_unix: 0 + last_login_unix: 0 + last_repo_visibility: false max_repo_creation: -1 is_active: true is_admin: false @@ -404,7 +456,7 @@ num_members: 0 visibility: 0 repo_admin_change_team_access: false - theme: "" + theme: auto keep_activity_private: false - @@ -418,10 +470,15 @@ passwd: ZogKvWdyEx:password passwd_hash_algo: dummy must_change_password: false + login_type: 0 login_source: 0 login_name: user12 type: 0 salt: ZogKvWdyEx + created_unix: 0 + updated_unix: 0 + last_login_unix: 0 + last_repo_visibility: false max_repo_creation: -1 is_active: true is_admin: false @@ -441,7 +498,7 @@ num_members: 0 visibility: 0 repo_admin_change_team_access: false - theme: "" + theme: auto keep_activity_private: false - @@ -455,10 +512,15 @@ passwd: ZogKvWdyEx:password passwd_hash_algo: dummy must_change_password: false + login_type: 0 login_source: 0 login_name: user13 type: 0 salt: ZogKvWdyEx + created_unix: 0 + updated_unix: 0 + last_login_unix: 0 + last_repo_visibility: false max_repo_creation: -1 is_active: true is_admin: false @@ -478,7 +540,7 @@ num_members: 0 visibility: 0 repo_admin_change_team_access: false - theme: "" + theme: auto keep_activity_private: false - @@ -492,10 +554,15 @@ passwd: ZogKvWdyEx:password passwd_hash_algo: dummy must_change_password: false + login_type: 0 login_source: 0 login_name: user14 type: 0 salt: ZogKvWdyEx + created_unix: 0 + updated_unix: 0 + last_login_unix: 0 + last_repo_visibility: false max_repo_creation: -1 is_active: true is_admin: false @@ -515,7 +582,7 @@ num_members: 0 visibility: 0 repo_admin_change_team_access: false - theme: "" + theme: auto keep_activity_private: false - @@ -529,10 +596,15 @@ passwd: ZogKvWdyEx:password passwd_hash_algo: dummy must_change_password: false + login_type: 0 login_source: 0 login_name: user15 type: 0 salt: ZogKvWdyEx + created_unix: 0 + updated_unix: 0 + last_login_unix: 0 + last_repo_visibility: false max_repo_creation: -1 is_active: true is_admin: false @@ -552,7 +624,7 @@ num_members: 0 visibility: 0 repo_admin_change_team_access: false - theme: "" + theme: auto keep_activity_private: false - @@ -566,10 +638,15 @@ passwd: ZogKvWdyEx:password passwd_hash_algo: dummy must_change_password: false + login_type: 0 login_source: 0 login_name: user16 type: 0 salt: ZogKvWdyEx + created_unix: 0 + updated_unix: 0 + last_login_unix: 0 + last_repo_visibility: false max_repo_creation: -1 is_active: true is_admin: false @@ -589,7 +666,7 @@ num_members: 0 visibility: 0 repo_admin_change_team_access: false - theme: "" + theme: auto keep_activity_private: false - @@ -603,10 +680,15 @@ passwd: ZogKvWdyEx:password passwd_hash_algo: dummy must_change_password: false + login_type: 0 login_source: 0 login_name: user17 type: 1 salt: ZogKvWdyEx + created_unix: 0 + updated_unix: 0 + last_login_unix: 0 + last_repo_visibility: false max_repo_creation: -1 is_active: true is_admin: false @@ -626,7 +708,7 @@ num_members: 4 visibility: 0 repo_admin_change_team_access: false - theme: "" + theme: auto keep_activity_private: false - @@ -640,10 +722,15 @@ passwd: ZogKvWdyEx:password passwd_hash_algo: dummy must_change_password: false + login_type: 0 login_source: 0 login_name: user18 type: 0 salt: ZogKvWdyEx + created_unix: 0 + updated_unix: 0 + last_login_unix: 0 + last_repo_visibility: false max_repo_creation: -1 is_active: true is_admin: false @@ -663,7 +750,7 @@ num_members: 0 visibility: 0 repo_admin_change_team_access: false - theme: "" + theme: auto keep_activity_private: false - @@ -677,10 +764,15 @@ passwd: ZogKvWdyEx:password passwd_hash_algo: dummy must_change_password: false + login_type: 0 login_source: 0 login_name: user19 type: 1 salt: ZogKvWdyEx + created_unix: 0 + updated_unix: 0 + last_login_unix: 0 + last_repo_visibility: false max_repo_creation: -1 is_active: true is_admin: false @@ -700,7 +792,7 @@ num_members: 2 visibility: 0 repo_admin_change_team_access: false - theme: "" + theme: auto keep_activity_private: false - @@ -714,10 +806,15 @@ passwd: ZogKvWdyEx:password passwd_hash_algo: dummy must_change_password: false + login_type: 0 login_source: 0 login_name: user20 type: 0 salt: ZogKvWdyEx + created_unix: 0 + updated_unix: 0 + last_login_unix: 0 + last_repo_visibility: false max_repo_creation: -1 is_active: true is_admin: false @@ -737,7 +834,7 @@ num_members: 0 visibility: 0 repo_admin_change_team_access: false - theme: "" + theme: auto keep_activity_private: false - @@ -751,10 +848,15 @@ passwd: ZogKvWdyEx:password passwd_hash_algo: dummy must_change_password: false + login_type: 0 login_source: 0 login_name: user21 type: 0 salt: ZogKvWdyEx + created_unix: 0 + updated_unix: 0 + last_login_unix: 0 + last_repo_visibility: false max_repo_creation: -1 is_active: true is_admin: false @@ -774,7 +876,7 @@ num_members: 0 visibility: 0 repo_admin_change_team_access: false - theme: "" + theme: auto keep_activity_private: false - @@ -788,10 +890,15 @@ passwd: ZogKvWdyEx:password passwd_hash_algo: dummy must_change_password: false + login_type: 0 login_source: 0 login_name: limited_org type: 1 salt: ZogKvWdyEx + created_unix: 0 + updated_unix: 0 + last_login_unix: 0 + last_repo_visibility: false max_repo_creation: -1 is_active: true is_admin: false @@ -811,7 +918,7 @@ num_members: 0 visibility: 1 repo_admin_change_team_access: false - theme: "" + theme: auto keep_activity_private: false - @@ -825,10 +932,15 @@ passwd: ZogKvWdyEx:password passwd_hash_algo: dummy must_change_password: false + login_type: 0 login_source: 0 login_name: privated_org type: 1 salt: ZogKvWdyEx + created_unix: 0 + updated_unix: 0 + last_login_unix: 0 + last_repo_visibility: false max_repo_creation: -1 is_active: true is_admin: false @@ -848,7 +960,7 @@ num_members: 1 visibility: 2 repo_admin_change_team_access: false - theme: "" + theme: auto keep_activity_private: false - @@ -862,10 +974,15 @@ passwd: ZogKvWdyEx:password passwd_hash_algo: dummy must_change_password: false + login_type: 0 login_source: 0 login_name: user24 type: 0 salt: ZogKvWdyEx + created_unix: 0 + updated_unix: 0 + last_login_unix: 0 + last_repo_visibility: false max_repo_creation: -1 is_active: true is_admin: false @@ -885,7 +1002,7 @@ num_members: 0 visibility: 0 repo_admin_change_team_access: false - theme: "" + theme: auto keep_activity_private: false - @@ -899,10 +1016,15 @@ passwd: ZogKvWdyEx:password passwd_hash_algo: dummy must_change_password: false + login_type: 0 login_source: 0 login_name: org25 type: 1 salt: ZogKvWdyEx + created_unix: 0 + updated_unix: 0 + last_login_unix: 0 + last_repo_visibility: false max_repo_creation: -1 is_active: false is_admin: false @@ -922,7 +1044,7 @@ num_members: 1 visibility: 0 repo_admin_change_team_access: false - theme: "" + theme: auto keep_activity_private: false - @@ -936,10 +1058,15 @@ passwd: ZogKvWdyEx:password passwd_hash_algo: dummy must_change_password: false + login_type: 0 login_source: 0 login_name: org26 type: 1 salt: ZogKvWdyEx + created_unix: 0 + updated_unix: 0 + last_login_unix: 0 + last_repo_visibility: false max_repo_creation: -1 is_active: false is_admin: false @@ -959,7 +1086,7 @@ num_members: 0 visibility: 0 repo_admin_change_team_access: true - theme: "" + theme: auto keep_activity_private: false - @@ -973,10 +1100,15 @@ passwd: ZogKvWdyEx:password passwd_hash_algo: dummy must_change_password: false + login_type: 0 login_source: 0 login_name: user27 type: 0 salt: ZogKvWdyEx + created_unix: 0 + updated_unix: 0 + last_login_unix: 0 + last_repo_visibility: false max_repo_creation: -1 is_active: true is_admin: false @@ -996,7 +1128,7 @@ num_members: 0 visibility: 0 repo_admin_change_team_access: false - theme: "" + theme: auto keep_activity_private: false - @@ -1010,10 +1142,15 @@ passwd: ZogKvWdyEx:password passwd_hash_algo: dummy must_change_password: false + login_type: 0 login_source: 0 login_name: user28 type: 0 salt: ZogKvWdyEx + created_unix: 0 + updated_unix: 0 + last_login_unix: 0 + last_repo_visibility: false max_repo_creation: -1 is_active: true is_admin: false @@ -1033,7 +1170,7 @@ num_members: 0 visibility: 0 repo_admin_change_team_access: false - theme: "" + theme: auto keep_activity_private: false - @@ -1047,10 +1184,15 @@ passwd: ZogKvWdyEx:password passwd_hash_algo: dummy must_change_password: false + login_type: 0 login_source: 0 login_name: user29 type: 0 salt: ZogKvWdyEx + created_unix: 0 + updated_unix: 0 + last_login_unix: 0 + last_repo_visibility: false max_repo_creation: -1 is_active: true is_admin: false @@ -1070,7 +1212,7 @@ num_members: 0 visibility: 0 repo_admin_change_team_access: false - theme: "" + theme: auto keep_activity_private: false - @@ -1084,10 +1226,15 @@ passwd: ZogKvWdyEx:password passwd_hash_algo: dummy must_change_password: false + login_type: 0 login_source: 0 login_name: user30 type: 0 salt: ZogKvWdyEx + created_unix: 0 + updated_unix: 0 + last_login_unix: 0 + last_repo_visibility: false max_repo_creation: -1 is_active: true is_admin: false @@ -1107,7 +1254,7 @@ num_members: 0 visibility: 0 repo_admin_change_team_access: false - theme: "" + theme: auto keep_activity_private: false - @@ -1121,10 +1268,15 @@ passwd: ZogKvWdyEx:password passwd_hash_algo: dummy must_change_password: false + login_type: 0 login_source: 0 login_name: user31 type: 0 salt: ZogKvWdyEx + created_unix: 0 + updated_unix: 0 + last_login_unix: 0 + last_repo_visibility: false max_repo_creation: -1 is_active: true is_admin: false @@ -1144,7 +1296,7 @@ num_members: 0 visibility: 2 repo_admin_change_team_access: false - theme: "" + theme: auto keep_activity_private: false - @@ -1158,10 +1310,15 @@ passwd: ZogKvWdyEx:notpassword passwd_hash_algo: dummy must_change_password: false + login_type: 0 login_source: 0 login_name: user32 type: 0 salt: ZogKvWdyEx + created_unix: 0 + updated_unix: 0 + last_login_unix: 0 + last_repo_visibility: false max_repo_creation: -1 is_active: true is_admin: false @@ -1181,7 +1338,7 @@ num_members: 0 visibility: 0 repo_admin_change_team_access: false - theme: "" + theme: auto keep_activity_private: false - @@ -1195,10 +1352,15 @@ passwd: ZogKvWdyEx:password passwd_hash_algo: dummy must_change_password: false + login_type: 0 login_source: 0 login_name: user33 type: 0 salt: ZogKvWdyEx + created_unix: 0 + updated_unix: 0 + last_login_unix: 0 + last_repo_visibility: false max_repo_creation: -1 is_active: true is_admin: false @@ -1218,7 +1380,7 @@ num_members: 0 visibility: 1 repo_admin_change_team_access: false - theme: "" + theme: auto keep_activity_private: false - @@ -1226,17 +1388,22 @@ lower_name: the_34-user.with.all.allowedchars name: the_34-user.with.all.allowedChars full_name: the_1-user.with.all.allowedChars - description: 'some [commonmark](https://commonmark.org/)!' email: user34@example.com keep_email_private: false email_notifications_preference: enabled passwd: ZogKvWdyEx:password passwd_hash_algo: dummy must_change_password: false + login_type: 0 login_source: 0 login_name: the_34-user.with.all.allowedchars type: 0 salt: ZogKvWdyEx + description: some [commonmark](https://commonmark.org/)! + created_unix: 0 + updated_unix: 0 + last_login_unix: 0 + last_repo_visibility: false max_repo_creation: -1 is_active: true is_admin: false @@ -1256,7 +1423,7 @@ num_members: 0 visibility: 0 repo_admin_change_team_access: false - theme: "" + theme: auto keep_activity_private: false - @@ -1270,10 +1437,15 @@ passwd: ZogKvWdyEx:password passwd_hash_algo: dummy must_change_password: false + login_type: 0 login_source: 0 login_name: private_org35 type: 1 salt: ZogKvWdyEx + created_unix: 0 + updated_unix: 0 + last_login_unix: 0 + last_repo_visibility: false max_repo_creation: -1 is_active: true is_admin: false @@ -1293,7 +1465,7 @@ num_members: 1 visibility: 2 repo_admin_change_team_access: false - theme: "" + theme: auto keep_activity_private: false - @@ -1307,10 +1479,15 @@ passwd: ZogKvWdyEx:password passwd_hash_algo: dummy must_change_password: false + login_type: 0 login_source: 0 login_name: limited_org36 type: 1 salt: ZogKvWdyEx + created_unix: 0 + updated_unix: 0 + last_login_unix: 0 + last_repo_visibility: false max_repo_creation: -1 is_active: true is_admin: false @@ -1330,5 +1507,6 @@ num_members: 2 visibility: 1 repo_admin_change_team_access: false - theme: "" + theme: auto keep_activity_private: false + diff --git a/models/fixtures/user_open_id.yml b/models/fixtures/user_open_id.yml index d3a367b99dfa3..68c05287a87b8 100644 --- a/models/fixtures/user_open_id.yml +++ b/models/fixtures/user_open_id.yml @@ -15,3 +15,4 @@ uid: 2 uri: https://domain1.tld/user2/ show: true + diff --git a/models/fixtures/user_redirect.yml b/models/fixtures/user_redirect.yml index 8ff79933983eb..3465b7b65651d 100644 --- a/models/fixtures/user_redirect.yml +++ b/models/fixtures/user_redirect.yml @@ -2,3 +2,4 @@ id: 1 lower_name: olduser1 redirect_user_id: 1 + diff --git a/models/fixtures/watch.yml b/models/fixtures/watch.yml index c29f6bb65a889..985abd0ab404d 100644 --- a/models/fixtures/watch.yml +++ b/models/fixtures/watch.yml @@ -2,28 +2,39 @@ id: 1 user_id: 1 repo_id: 1 - mode: 1 # normal + mode: 1 + created_unix: 0 + updated_unix: 0 - id: 2 user_id: 4 repo_id: 1 - mode: 1 # normal + mode: 1 + created_unix: 0 + updated_unix: 0 - id: 3 user_id: 9 repo_id: 1 - mode: 1 # normal + mode: 1 + created_unix: 0 + updated_unix: 0 - id: 4 user_id: 8 repo_id: 1 - mode: 2 # don't watch + mode: 2 + created_unix: 0 + updated_unix: 0 - id: 5 user_id: 11 repo_id: 1 - mode: 3 # auto + mode: 3 + created_unix: 0 + updated_unix: 0 + diff --git a/models/fixtures/webauthn_credential.yml b/models/fixtures/webauthn_credential.yml index bc43127fcd46d..faa2e1894e7e2 100644 --- a/models/fixtures/webauthn_credential.yml +++ b/models/fixtures/webauthn_credential.yml @@ -1,9 +1,11 @@ - id: 1 name: WebAuthn credential + lower_name: webauthn credential user_id: 32 attestation_type: none sign_count: 0 clone_warning: false created_unix: 946684800 updated_unix: 946684800 + diff --git a/models/fixtures/webhook.yml b/models/fixtures/webhook.yml index f62bae1f311ce..c84f9796332cb 100644 --- a/models/fixtures/webhook.yml +++ b/models/fixtures/webhook.yml @@ -1,31 +1,64 @@ - id: 1 repo_id: 1 - url: www.example.com/url1 - content_type: 1 # json + owner_id: 0 + is_system_webhook: false + url: 'www.example.com/url1' + content_type: 1 + secret: '' events: '{"push_only":true,"send_everything":false,"choose_events":false,"events":{"create":false,"push":true,"pull_request":false}}' is_active: true + meta: '' + last_status: 0 + header_authorization_encrypted: '' + created_unix: 0 + updated_unix: 0 - id: 2 repo_id: 1 - url: www.example.com/url2 - content_type: 1 # json + owner_id: 0 + is_system_webhook: false + url: 'www.example.com/url2' + content_type: 1 + secret: '' events: '{"push_only":false,"send_everything":false,"choose_events":false,"events":{"create":false,"push":true,"pull_request":true}}' is_active: false + meta: '' + last_status: 0 + header_authorization_encrypted: '' + created_unix: 0 + updated_unix: 0 - id: 3 - owner_id: 3 repo_id: 3 - url: www.example.com/url3 - content_type: 1 # json + owner_id: 3 + is_system_webhook: false + url: 'www.example.com/url3' + content_type: 1 + secret: '' events: '{"push_only":false,"send_everything":false,"choose_events":false,"events":{"create":false,"push":true,"pull_request":true}}' is_active: true + meta: '' + last_status: 0 + header_authorization_encrypted: '' + created_unix: 0 + updated_unix: 0 + - id: 4 repo_id: 2 - url: www.example.com/url4 - content_type: 1 # json + owner_id: 0 + is_system_webhook: false + url: 'www.example.com/url4' + content_type: 1 + secret: '' events: '{"push_only":true,"branch_filter":"{master,feature*}"}' is_active: true + meta: '' + last_status: 0 + header_authorization_encrypted: '' + created_unix: 0 + updated_unix: 0 + diff --git a/tests/gitea-repositories-meta/limited_org/private_repo_on_limited_org.git/hooks/post-receive b/tests/gitea-repositories-meta/limited_org/private_repo_on_limited_org.git/hooks/post-receive new file mode 100755 index 0000000000000..4b3d452abcce2 --- /dev/null +++ b/tests/gitea-repositories-meta/limited_org/private_repo_on_limited_org.git/hooks/post-receive @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/post-receive.d"`; do + sh "$SHELL_FOLDER/post-receive.d/$i" +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/limited_org/private_repo_on_limited_org.git/hooks/post-receive.d/gitea b/tests/gitea-repositories-meta/limited_org/private_repo_on_limited_org.git/hooks/post-receive.d/gitea new file mode 100755 index 0000000000000..43a948da3a983 --- /dev/null +++ b/tests/gitea-repositories-meta/limited_org/private_repo_on_limited_org.git/hooks/post-receive.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" post-receive diff --git a/tests/gitea-repositories-meta/limited_org/private_repo_on_limited_org.git/hooks/pre-receive b/tests/gitea-repositories-meta/limited_org/private_repo_on_limited_org.git/hooks/pre-receive new file mode 100755 index 0000000000000..412701305369c --- /dev/null +++ b/tests/gitea-repositories-meta/limited_org/private_repo_on_limited_org.git/hooks/pre-receive @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/pre-receive.d"`; do + sh "$SHELL_FOLDER/pre-receive.d/$i" +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/limited_org/private_repo_on_limited_org.git/hooks/pre-receive.d/gitea b/tests/gitea-repositories-meta/limited_org/private_repo_on_limited_org.git/hooks/pre-receive.d/gitea new file mode 100755 index 0000000000000..49d09406364a5 --- /dev/null +++ b/tests/gitea-repositories-meta/limited_org/private_repo_on_limited_org.git/hooks/pre-receive.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" pre-receive diff --git a/tests/gitea-repositories-meta/limited_org/private_repo_on_limited_org.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/limited_org/private_repo_on_limited_org.git/hooks/proc-receive.d/gitea new file mode 100755 index 0000000000000..e69de29bb2d1d diff --git a/tests/gitea-repositories-meta/limited_org/private_repo_on_limited_org.git/hooks/update b/tests/gitea-repositories-meta/limited_org/private_repo_on_limited_org.git/hooks/update new file mode 100755 index 0000000000000..c186fe4a18b0f --- /dev/null +++ b/tests/gitea-repositories-meta/limited_org/private_repo_on_limited_org.git/hooks/update @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/update.d"`; do + sh "$SHELL_FOLDER/update.d/$i" $1 $2 $3 +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/limited_org/private_repo_on_limited_org.git/hooks/update.d/gitea b/tests/gitea-repositories-meta/limited_org/private_repo_on_limited_org.git/hooks/update.d/gitea new file mode 100755 index 0000000000000..38101c242664a --- /dev/null +++ b/tests/gitea-repositories-meta/limited_org/private_repo_on_limited_org.git/hooks/update.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" update $1 $2 $3 diff --git a/tests/gitea-repositories-meta/limited_org/public_repo_on_limited_org.git/hooks/post-receive b/tests/gitea-repositories-meta/limited_org/public_repo_on_limited_org.git/hooks/post-receive new file mode 100755 index 0000000000000..4b3d452abcce2 --- /dev/null +++ b/tests/gitea-repositories-meta/limited_org/public_repo_on_limited_org.git/hooks/post-receive @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/post-receive.d"`; do + sh "$SHELL_FOLDER/post-receive.d/$i" +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/limited_org/public_repo_on_limited_org.git/hooks/post-receive.d/gitea b/tests/gitea-repositories-meta/limited_org/public_repo_on_limited_org.git/hooks/post-receive.d/gitea new file mode 100755 index 0000000000000..43a948da3a983 --- /dev/null +++ b/tests/gitea-repositories-meta/limited_org/public_repo_on_limited_org.git/hooks/post-receive.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" post-receive diff --git a/tests/gitea-repositories-meta/limited_org/public_repo_on_limited_org.git/hooks/pre-receive b/tests/gitea-repositories-meta/limited_org/public_repo_on_limited_org.git/hooks/pre-receive new file mode 100755 index 0000000000000..412701305369c --- /dev/null +++ b/tests/gitea-repositories-meta/limited_org/public_repo_on_limited_org.git/hooks/pre-receive @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/pre-receive.d"`; do + sh "$SHELL_FOLDER/pre-receive.d/$i" +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/limited_org/public_repo_on_limited_org.git/hooks/pre-receive.d/gitea b/tests/gitea-repositories-meta/limited_org/public_repo_on_limited_org.git/hooks/pre-receive.d/gitea new file mode 100755 index 0000000000000..49d09406364a5 --- /dev/null +++ b/tests/gitea-repositories-meta/limited_org/public_repo_on_limited_org.git/hooks/pre-receive.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" pre-receive diff --git a/tests/gitea-repositories-meta/limited_org/public_repo_on_limited_org.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/limited_org/public_repo_on_limited_org.git/hooks/proc-receive.d/gitea new file mode 100755 index 0000000000000..e69de29bb2d1d diff --git a/tests/gitea-repositories-meta/limited_org/public_repo_on_limited_org.git/hooks/update b/tests/gitea-repositories-meta/limited_org/public_repo_on_limited_org.git/hooks/update new file mode 100755 index 0000000000000..c186fe4a18b0f --- /dev/null +++ b/tests/gitea-repositories-meta/limited_org/public_repo_on_limited_org.git/hooks/update @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/update.d"`; do + sh "$SHELL_FOLDER/update.d/$i" $1 $2 $3 +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/limited_org/public_repo_on_limited_org.git/hooks/update.d/gitea b/tests/gitea-repositories-meta/limited_org/public_repo_on_limited_org.git/hooks/update.d/gitea new file mode 100755 index 0000000000000..38101c242664a --- /dev/null +++ b/tests/gitea-repositories-meta/limited_org/public_repo_on_limited_org.git/hooks/update.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" update $1 $2 $3 diff --git a/tests/gitea-repositories-meta/migration/lfs-test.git/hooks/post-receive b/tests/gitea-repositories-meta/migration/lfs-test.git/hooks/post-receive new file mode 100755 index 0000000000000..4b3d452abcce2 --- /dev/null +++ b/tests/gitea-repositories-meta/migration/lfs-test.git/hooks/post-receive @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/post-receive.d"`; do + sh "$SHELL_FOLDER/post-receive.d/$i" +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/migration/lfs-test.git/hooks/post-receive.d/gitea b/tests/gitea-repositories-meta/migration/lfs-test.git/hooks/post-receive.d/gitea new file mode 100755 index 0000000000000..43a948da3a983 --- /dev/null +++ b/tests/gitea-repositories-meta/migration/lfs-test.git/hooks/post-receive.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" post-receive diff --git a/tests/gitea-repositories-meta/migration/lfs-test.git/hooks/pre-receive b/tests/gitea-repositories-meta/migration/lfs-test.git/hooks/pre-receive new file mode 100755 index 0000000000000..412701305369c --- /dev/null +++ b/tests/gitea-repositories-meta/migration/lfs-test.git/hooks/pre-receive @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/pre-receive.d"`; do + sh "$SHELL_FOLDER/pre-receive.d/$i" +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/migration/lfs-test.git/hooks/pre-receive.d/gitea b/tests/gitea-repositories-meta/migration/lfs-test.git/hooks/pre-receive.d/gitea new file mode 100755 index 0000000000000..49d09406364a5 --- /dev/null +++ b/tests/gitea-repositories-meta/migration/lfs-test.git/hooks/pre-receive.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" pre-receive diff --git a/tests/gitea-repositories-meta/migration/lfs-test.git/hooks/update b/tests/gitea-repositories-meta/migration/lfs-test.git/hooks/update new file mode 100755 index 0000000000000..c186fe4a18b0f --- /dev/null +++ b/tests/gitea-repositories-meta/migration/lfs-test.git/hooks/update @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/update.d"`; do + sh "$SHELL_FOLDER/update.d/$i" $1 $2 $3 +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/migration/lfs-test.git/hooks/update.d/gitea b/tests/gitea-repositories-meta/migration/lfs-test.git/hooks/update.d/gitea new file mode 100755 index 0000000000000..38101c242664a --- /dev/null +++ b/tests/gitea-repositories-meta/migration/lfs-test.git/hooks/update.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" update $1 $2 $3 diff --git a/tests/gitea-repositories-meta/org26/repo_external_tracker.git/hooks/post-receive b/tests/gitea-repositories-meta/org26/repo_external_tracker.git/hooks/post-receive new file mode 100755 index 0000000000000..4b3d452abcce2 --- /dev/null +++ b/tests/gitea-repositories-meta/org26/repo_external_tracker.git/hooks/post-receive @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/post-receive.d"`; do + sh "$SHELL_FOLDER/post-receive.d/$i" +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/org26/repo_external_tracker.git/hooks/post-receive.d/gitea b/tests/gitea-repositories-meta/org26/repo_external_tracker.git/hooks/post-receive.d/gitea new file mode 100755 index 0000000000000..43a948da3a983 --- /dev/null +++ b/tests/gitea-repositories-meta/org26/repo_external_tracker.git/hooks/post-receive.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" post-receive diff --git a/tests/gitea-repositories-meta/org26/repo_external_tracker.git/hooks/pre-receive b/tests/gitea-repositories-meta/org26/repo_external_tracker.git/hooks/pre-receive new file mode 100755 index 0000000000000..412701305369c --- /dev/null +++ b/tests/gitea-repositories-meta/org26/repo_external_tracker.git/hooks/pre-receive @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/pre-receive.d"`; do + sh "$SHELL_FOLDER/pre-receive.d/$i" +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/org26/repo_external_tracker.git/hooks/pre-receive.d/gitea b/tests/gitea-repositories-meta/org26/repo_external_tracker.git/hooks/pre-receive.d/gitea new file mode 100755 index 0000000000000..49d09406364a5 --- /dev/null +++ b/tests/gitea-repositories-meta/org26/repo_external_tracker.git/hooks/pre-receive.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" pre-receive diff --git a/tests/gitea-repositories-meta/org26/repo_external_tracker.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/org26/repo_external_tracker.git/hooks/proc-receive.d/gitea new file mode 100755 index 0000000000000..e69de29bb2d1d diff --git a/tests/gitea-repositories-meta/org26/repo_external_tracker.git/hooks/update b/tests/gitea-repositories-meta/org26/repo_external_tracker.git/hooks/update new file mode 100755 index 0000000000000..c186fe4a18b0f --- /dev/null +++ b/tests/gitea-repositories-meta/org26/repo_external_tracker.git/hooks/update @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/update.d"`; do + sh "$SHELL_FOLDER/update.d/$i" $1 $2 $3 +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/org26/repo_external_tracker.git/hooks/update.d/gitea b/tests/gitea-repositories-meta/org26/repo_external_tracker.git/hooks/update.d/gitea new file mode 100755 index 0000000000000..38101c242664a --- /dev/null +++ b/tests/gitea-repositories-meta/org26/repo_external_tracker.git/hooks/update.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" update $1 $2 $3 diff --git a/tests/gitea-repositories-meta/org26/repo_external_tracker_alpha.git/hooks/post-receive b/tests/gitea-repositories-meta/org26/repo_external_tracker_alpha.git/hooks/post-receive new file mode 100755 index 0000000000000..4b3d452abcce2 --- /dev/null +++ b/tests/gitea-repositories-meta/org26/repo_external_tracker_alpha.git/hooks/post-receive @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/post-receive.d"`; do + sh "$SHELL_FOLDER/post-receive.d/$i" +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/org26/repo_external_tracker_alpha.git/hooks/post-receive.d/gitea b/tests/gitea-repositories-meta/org26/repo_external_tracker_alpha.git/hooks/post-receive.d/gitea new file mode 100755 index 0000000000000..43a948da3a983 --- /dev/null +++ b/tests/gitea-repositories-meta/org26/repo_external_tracker_alpha.git/hooks/post-receive.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" post-receive diff --git a/tests/gitea-repositories-meta/org26/repo_external_tracker_alpha.git/hooks/pre-receive b/tests/gitea-repositories-meta/org26/repo_external_tracker_alpha.git/hooks/pre-receive new file mode 100755 index 0000000000000..412701305369c --- /dev/null +++ b/tests/gitea-repositories-meta/org26/repo_external_tracker_alpha.git/hooks/pre-receive @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/pre-receive.d"`; do + sh "$SHELL_FOLDER/pre-receive.d/$i" +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/org26/repo_external_tracker_alpha.git/hooks/pre-receive.d/gitea b/tests/gitea-repositories-meta/org26/repo_external_tracker_alpha.git/hooks/pre-receive.d/gitea new file mode 100755 index 0000000000000..49d09406364a5 --- /dev/null +++ b/tests/gitea-repositories-meta/org26/repo_external_tracker_alpha.git/hooks/pre-receive.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" pre-receive diff --git a/tests/gitea-repositories-meta/org26/repo_external_tracker_alpha.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/org26/repo_external_tracker_alpha.git/hooks/proc-receive.d/gitea new file mode 100755 index 0000000000000..e69de29bb2d1d diff --git a/tests/gitea-repositories-meta/org26/repo_external_tracker_alpha.git/hooks/update b/tests/gitea-repositories-meta/org26/repo_external_tracker_alpha.git/hooks/update new file mode 100755 index 0000000000000..c186fe4a18b0f --- /dev/null +++ b/tests/gitea-repositories-meta/org26/repo_external_tracker_alpha.git/hooks/update @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/update.d"`; do + sh "$SHELL_FOLDER/update.d/$i" $1 $2 $3 +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/org26/repo_external_tracker_alpha.git/hooks/update.d/gitea b/tests/gitea-repositories-meta/org26/repo_external_tracker_alpha.git/hooks/update.d/gitea new file mode 100755 index 0000000000000..38101c242664a --- /dev/null +++ b/tests/gitea-repositories-meta/org26/repo_external_tracker_alpha.git/hooks/update.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" update $1 $2 $3 diff --git a/tests/gitea-repositories-meta/org26/repo_external_tracker_numeric.git/hooks/post-receive b/tests/gitea-repositories-meta/org26/repo_external_tracker_numeric.git/hooks/post-receive new file mode 100755 index 0000000000000..4b3d452abcce2 --- /dev/null +++ b/tests/gitea-repositories-meta/org26/repo_external_tracker_numeric.git/hooks/post-receive @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/post-receive.d"`; do + sh "$SHELL_FOLDER/post-receive.d/$i" +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/org26/repo_external_tracker_numeric.git/hooks/post-receive.d/gitea b/tests/gitea-repositories-meta/org26/repo_external_tracker_numeric.git/hooks/post-receive.d/gitea new file mode 100755 index 0000000000000..43a948da3a983 --- /dev/null +++ b/tests/gitea-repositories-meta/org26/repo_external_tracker_numeric.git/hooks/post-receive.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" post-receive diff --git a/tests/gitea-repositories-meta/org26/repo_external_tracker_numeric.git/hooks/pre-receive b/tests/gitea-repositories-meta/org26/repo_external_tracker_numeric.git/hooks/pre-receive new file mode 100755 index 0000000000000..412701305369c --- /dev/null +++ b/tests/gitea-repositories-meta/org26/repo_external_tracker_numeric.git/hooks/pre-receive @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/pre-receive.d"`; do + sh "$SHELL_FOLDER/pre-receive.d/$i" +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/org26/repo_external_tracker_numeric.git/hooks/pre-receive.d/gitea b/tests/gitea-repositories-meta/org26/repo_external_tracker_numeric.git/hooks/pre-receive.d/gitea new file mode 100755 index 0000000000000..49d09406364a5 --- /dev/null +++ b/tests/gitea-repositories-meta/org26/repo_external_tracker_numeric.git/hooks/pre-receive.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" pre-receive diff --git a/tests/gitea-repositories-meta/org26/repo_external_tracker_numeric.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/org26/repo_external_tracker_numeric.git/hooks/proc-receive.d/gitea new file mode 100755 index 0000000000000..e69de29bb2d1d diff --git a/tests/gitea-repositories-meta/org26/repo_external_tracker_numeric.git/hooks/update b/tests/gitea-repositories-meta/org26/repo_external_tracker_numeric.git/hooks/update new file mode 100755 index 0000000000000..c186fe4a18b0f --- /dev/null +++ b/tests/gitea-repositories-meta/org26/repo_external_tracker_numeric.git/hooks/update @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/update.d"`; do + sh "$SHELL_FOLDER/update.d/$i" $1 $2 $3 +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/org26/repo_external_tracker_numeric.git/hooks/update.d/gitea b/tests/gitea-repositories-meta/org26/repo_external_tracker_numeric.git/hooks/update.d/gitea new file mode 100755 index 0000000000000..38101c242664a --- /dev/null +++ b/tests/gitea-repositories-meta/org26/repo_external_tracker_numeric.git/hooks/update.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" update $1 $2 $3 diff --git a/tests/gitea-repositories-meta/privated_org/private_repo_on_private_org.git/hooks/post-receive b/tests/gitea-repositories-meta/privated_org/private_repo_on_private_org.git/hooks/post-receive new file mode 100755 index 0000000000000..4b3d452abcce2 --- /dev/null +++ b/tests/gitea-repositories-meta/privated_org/private_repo_on_private_org.git/hooks/post-receive @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/post-receive.d"`; do + sh "$SHELL_FOLDER/post-receive.d/$i" +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/privated_org/private_repo_on_private_org.git/hooks/post-receive.d/gitea b/tests/gitea-repositories-meta/privated_org/private_repo_on_private_org.git/hooks/post-receive.d/gitea new file mode 100755 index 0000000000000..43a948da3a983 --- /dev/null +++ b/tests/gitea-repositories-meta/privated_org/private_repo_on_private_org.git/hooks/post-receive.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" post-receive diff --git a/tests/gitea-repositories-meta/privated_org/private_repo_on_private_org.git/hooks/pre-receive b/tests/gitea-repositories-meta/privated_org/private_repo_on_private_org.git/hooks/pre-receive new file mode 100755 index 0000000000000..412701305369c --- /dev/null +++ b/tests/gitea-repositories-meta/privated_org/private_repo_on_private_org.git/hooks/pre-receive @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/pre-receive.d"`; do + sh "$SHELL_FOLDER/pre-receive.d/$i" +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/privated_org/private_repo_on_private_org.git/hooks/pre-receive.d/gitea b/tests/gitea-repositories-meta/privated_org/private_repo_on_private_org.git/hooks/pre-receive.d/gitea new file mode 100755 index 0000000000000..49d09406364a5 --- /dev/null +++ b/tests/gitea-repositories-meta/privated_org/private_repo_on_private_org.git/hooks/pre-receive.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" pre-receive diff --git a/tests/gitea-repositories-meta/privated_org/private_repo_on_private_org.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/privated_org/private_repo_on_private_org.git/hooks/proc-receive.d/gitea new file mode 100755 index 0000000000000..e69de29bb2d1d diff --git a/tests/gitea-repositories-meta/privated_org/private_repo_on_private_org.git/hooks/update b/tests/gitea-repositories-meta/privated_org/private_repo_on_private_org.git/hooks/update new file mode 100755 index 0000000000000..c186fe4a18b0f --- /dev/null +++ b/tests/gitea-repositories-meta/privated_org/private_repo_on_private_org.git/hooks/update @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/update.d"`; do + sh "$SHELL_FOLDER/update.d/$i" $1 $2 $3 +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/privated_org/private_repo_on_private_org.git/hooks/update.d/gitea b/tests/gitea-repositories-meta/privated_org/private_repo_on_private_org.git/hooks/update.d/gitea new file mode 100755 index 0000000000000..38101c242664a --- /dev/null +++ b/tests/gitea-repositories-meta/privated_org/private_repo_on_private_org.git/hooks/update.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" update $1 $2 $3 diff --git a/tests/gitea-repositories-meta/privated_org/public_repo_on_private_org.git/hooks/post-receive b/tests/gitea-repositories-meta/privated_org/public_repo_on_private_org.git/hooks/post-receive new file mode 100755 index 0000000000000..4b3d452abcce2 --- /dev/null +++ b/tests/gitea-repositories-meta/privated_org/public_repo_on_private_org.git/hooks/post-receive @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/post-receive.d"`; do + sh "$SHELL_FOLDER/post-receive.d/$i" +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/privated_org/public_repo_on_private_org.git/hooks/post-receive.d/gitea b/tests/gitea-repositories-meta/privated_org/public_repo_on_private_org.git/hooks/post-receive.d/gitea new file mode 100755 index 0000000000000..43a948da3a983 --- /dev/null +++ b/tests/gitea-repositories-meta/privated_org/public_repo_on_private_org.git/hooks/post-receive.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" post-receive diff --git a/tests/gitea-repositories-meta/privated_org/public_repo_on_private_org.git/hooks/pre-receive b/tests/gitea-repositories-meta/privated_org/public_repo_on_private_org.git/hooks/pre-receive new file mode 100755 index 0000000000000..412701305369c --- /dev/null +++ b/tests/gitea-repositories-meta/privated_org/public_repo_on_private_org.git/hooks/pre-receive @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/pre-receive.d"`; do + sh "$SHELL_FOLDER/pre-receive.d/$i" +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/privated_org/public_repo_on_private_org.git/hooks/pre-receive.d/gitea b/tests/gitea-repositories-meta/privated_org/public_repo_on_private_org.git/hooks/pre-receive.d/gitea new file mode 100755 index 0000000000000..49d09406364a5 --- /dev/null +++ b/tests/gitea-repositories-meta/privated_org/public_repo_on_private_org.git/hooks/pre-receive.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" pre-receive diff --git a/tests/gitea-repositories-meta/privated_org/public_repo_on_private_org.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/privated_org/public_repo_on_private_org.git/hooks/proc-receive.d/gitea new file mode 100755 index 0000000000000..e69de29bb2d1d diff --git a/tests/gitea-repositories-meta/privated_org/public_repo_on_private_org.git/hooks/update b/tests/gitea-repositories-meta/privated_org/public_repo_on_private_org.git/hooks/update new file mode 100755 index 0000000000000..c186fe4a18b0f --- /dev/null +++ b/tests/gitea-repositories-meta/privated_org/public_repo_on_private_org.git/hooks/update @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/update.d"`; do + sh "$SHELL_FOLDER/update.d/$i" $1 $2 $3 +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/privated_org/public_repo_on_private_org.git/hooks/update.d/gitea b/tests/gitea-repositories-meta/privated_org/public_repo_on_private_org.git/hooks/update.d/gitea new file mode 100755 index 0000000000000..38101c242664a --- /dev/null +++ b/tests/gitea-repositories-meta/privated_org/public_repo_on_private_org.git/hooks/update.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" update $1 $2 $3 diff --git a/tests/gitea-repositories-meta/user12/repo10.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/user12/repo10.git/hooks/proc-receive.d/gitea new file mode 100755 index 0000000000000..e69de29bb2d1d diff --git a/tests/gitea-repositories-meta/user13/repo11.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/user13/repo11.git/hooks/proc-receive.d/gitea new file mode 100755 index 0000000000000..e69de29bb2d1d diff --git a/tests/gitea-repositories-meta/user2/commits_search_test.git/hooks/post-receive b/tests/gitea-repositories-meta/user2/commits_search_test.git/hooks/post-receive new file mode 100755 index 0000000000000..4b3d452abcce2 --- /dev/null +++ b/tests/gitea-repositories-meta/user2/commits_search_test.git/hooks/post-receive @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/post-receive.d"`; do + sh "$SHELL_FOLDER/post-receive.d/$i" +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/user2/commits_search_test.git/hooks/post-receive.d/gitea b/tests/gitea-repositories-meta/user2/commits_search_test.git/hooks/post-receive.d/gitea new file mode 100755 index 0000000000000..43a948da3a983 --- /dev/null +++ b/tests/gitea-repositories-meta/user2/commits_search_test.git/hooks/post-receive.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" post-receive diff --git a/tests/gitea-repositories-meta/user2/commits_search_test.git/hooks/pre-receive b/tests/gitea-repositories-meta/user2/commits_search_test.git/hooks/pre-receive new file mode 100755 index 0000000000000..412701305369c --- /dev/null +++ b/tests/gitea-repositories-meta/user2/commits_search_test.git/hooks/pre-receive @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/pre-receive.d"`; do + sh "$SHELL_FOLDER/pre-receive.d/$i" +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/user2/commits_search_test.git/hooks/pre-receive.d/gitea b/tests/gitea-repositories-meta/user2/commits_search_test.git/hooks/pre-receive.d/gitea new file mode 100755 index 0000000000000..49d09406364a5 --- /dev/null +++ b/tests/gitea-repositories-meta/user2/commits_search_test.git/hooks/pre-receive.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" pre-receive diff --git a/tests/gitea-repositories-meta/user2/commits_search_test.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/user2/commits_search_test.git/hooks/proc-receive.d/gitea new file mode 100755 index 0000000000000..e69de29bb2d1d diff --git a/tests/gitea-repositories-meta/user2/commits_search_test.git/hooks/update b/tests/gitea-repositories-meta/user2/commits_search_test.git/hooks/update new file mode 100755 index 0000000000000..c186fe4a18b0f --- /dev/null +++ b/tests/gitea-repositories-meta/user2/commits_search_test.git/hooks/update @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/update.d"`; do + sh "$SHELL_FOLDER/update.d/$i" $1 $2 $3 +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/user2/commits_search_test.git/hooks/update.d/gitea b/tests/gitea-repositories-meta/user2/commits_search_test.git/hooks/update.d/gitea new file mode 100755 index 0000000000000..38101c242664a --- /dev/null +++ b/tests/gitea-repositories-meta/user2/commits_search_test.git/hooks/update.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" update $1 $2 $3 diff --git a/tests/gitea-repositories-meta/user2/commitsonpr.git/hooks/post-receive b/tests/gitea-repositories-meta/user2/commitsonpr.git/hooks/post-receive new file mode 100755 index 0000000000000..4b3d452abcce2 --- /dev/null +++ b/tests/gitea-repositories-meta/user2/commitsonpr.git/hooks/post-receive @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/post-receive.d"`; do + sh "$SHELL_FOLDER/post-receive.d/$i" +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/user2/commitsonpr.git/hooks/post-receive.d/gitea b/tests/gitea-repositories-meta/user2/commitsonpr.git/hooks/post-receive.d/gitea new file mode 100755 index 0000000000000..43a948da3a983 --- /dev/null +++ b/tests/gitea-repositories-meta/user2/commitsonpr.git/hooks/post-receive.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" post-receive diff --git a/tests/gitea-repositories-meta/user2/commitsonpr.git/hooks/pre-receive b/tests/gitea-repositories-meta/user2/commitsonpr.git/hooks/pre-receive new file mode 100755 index 0000000000000..412701305369c --- /dev/null +++ b/tests/gitea-repositories-meta/user2/commitsonpr.git/hooks/pre-receive @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/pre-receive.d"`; do + sh "$SHELL_FOLDER/pre-receive.d/$i" +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/user2/commitsonpr.git/hooks/pre-receive.d/gitea b/tests/gitea-repositories-meta/user2/commitsonpr.git/hooks/pre-receive.d/gitea new file mode 100755 index 0000000000000..49d09406364a5 --- /dev/null +++ b/tests/gitea-repositories-meta/user2/commitsonpr.git/hooks/pre-receive.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" pre-receive diff --git a/tests/gitea-repositories-meta/user2/commitsonpr.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/user2/commitsonpr.git/hooks/proc-receive.d/gitea new file mode 100755 index 0000000000000..e69de29bb2d1d diff --git a/tests/gitea-repositories-meta/user2/commitsonpr.git/hooks/update b/tests/gitea-repositories-meta/user2/commitsonpr.git/hooks/update new file mode 100755 index 0000000000000..c186fe4a18b0f --- /dev/null +++ b/tests/gitea-repositories-meta/user2/commitsonpr.git/hooks/update @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/update.d"`; do + sh "$SHELL_FOLDER/update.d/$i" $1 $2 $3 +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/user2/commitsonpr.git/hooks/update.d/gitea b/tests/gitea-repositories-meta/user2/commitsonpr.git/hooks/update.d/gitea new file mode 100755 index 0000000000000..38101c242664a --- /dev/null +++ b/tests/gitea-repositories-meta/user2/commitsonpr.git/hooks/update.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" update $1 $2 $3 diff --git a/tests/gitea-repositories-meta/user2/git_hooks_test.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/user2/git_hooks_test.git/hooks/proc-receive.d/gitea new file mode 100755 index 0000000000000..e69de29bb2d1d diff --git a/tests/gitea-repositories-meta/user2/glob.git/hooks/post-receive b/tests/gitea-repositories-meta/user2/glob.git/hooks/post-receive new file mode 100755 index 0000000000000..4b3d452abcce2 --- /dev/null +++ b/tests/gitea-repositories-meta/user2/glob.git/hooks/post-receive @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/post-receive.d"`; do + sh "$SHELL_FOLDER/post-receive.d/$i" +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/user2/glob.git/hooks/post-receive.d/gitea b/tests/gitea-repositories-meta/user2/glob.git/hooks/post-receive.d/gitea new file mode 100755 index 0000000000000..43a948da3a983 --- /dev/null +++ b/tests/gitea-repositories-meta/user2/glob.git/hooks/post-receive.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" post-receive diff --git a/tests/gitea-repositories-meta/user2/glob.git/hooks/pre-receive b/tests/gitea-repositories-meta/user2/glob.git/hooks/pre-receive new file mode 100755 index 0000000000000..412701305369c --- /dev/null +++ b/tests/gitea-repositories-meta/user2/glob.git/hooks/pre-receive @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/pre-receive.d"`; do + sh "$SHELL_FOLDER/pre-receive.d/$i" +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/user2/glob.git/hooks/pre-receive.d/gitea b/tests/gitea-repositories-meta/user2/glob.git/hooks/pre-receive.d/gitea new file mode 100755 index 0000000000000..49d09406364a5 --- /dev/null +++ b/tests/gitea-repositories-meta/user2/glob.git/hooks/pre-receive.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" pre-receive diff --git a/tests/gitea-repositories-meta/user2/glob.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/user2/glob.git/hooks/proc-receive.d/gitea new file mode 100755 index 0000000000000..e69de29bb2d1d diff --git a/tests/gitea-repositories-meta/user2/glob.git/hooks/update b/tests/gitea-repositories-meta/user2/glob.git/hooks/update new file mode 100755 index 0000000000000..c186fe4a18b0f --- /dev/null +++ b/tests/gitea-repositories-meta/user2/glob.git/hooks/update @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/update.d"`; do + sh "$SHELL_FOLDER/update.d/$i" $1 $2 $3 +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/user2/glob.git/hooks/update.d/gitea b/tests/gitea-repositories-meta/user2/glob.git/hooks/update.d/gitea new file mode 100755 index 0000000000000..38101c242664a --- /dev/null +++ b/tests/gitea-repositories-meta/user2/glob.git/hooks/update.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" update $1 $2 $3 diff --git a/tests/gitea-repositories-meta/user2/lfs.git/hooks/post-receive b/tests/gitea-repositories-meta/user2/lfs.git/hooks/post-receive new file mode 100755 index 0000000000000..4b3d452abcce2 --- /dev/null +++ b/tests/gitea-repositories-meta/user2/lfs.git/hooks/post-receive @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/post-receive.d"`; do + sh "$SHELL_FOLDER/post-receive.d/$i" +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/user2/lfs.git/hooks/post-receive.d/gitea b/tests/gitea-repositories-meta/user2/lfs.git/hooks/post-receive.d/gitea new file mode 100755 index 0000000000000..43a948da3a983 --- /dev/null +++ b/tests/gitea-repositories-meta/user2/lfs.git/hooks/post-receive.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" post-receive diff --git a/tests/gitea-repositories-meta/user2/lfs.git/hooks/pre-receive b/tests/gitea-repositories-meta/user2/lfs.git/hooks/pre-receive new file mode 100755 index 0000000000000..412701305369c --- /dev/null +++ b/tests/gitea-repositories-meta/user2/lfs.git/hooks/pre-receive @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/pre-receive.d"`; do + sh "$SHELL_FOLDER/pre-receive.d/$i" +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/user2/lfs.git/hooks/pre-receive.d/gitea b/tests/gitea-repositories-meta/user2/lfs.git/hooks/pre-receive.d/gitea new file mode 100755 index 0000000000000..49d09406364a5 --- /dev/null +++ b/tests/gitea-repositories-meta/user2/lfs.git/hooks/pre-receive.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" pre-receive diff --git a/tests/gitea-repositories-meta/user2/lfs.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/user2/lfs.git/hooks/proc-receive.d/gitea new file mode 100755 index 0000000000000..e69de29bb2d1d diff --git a/tests/gitea-repositories-meta/user2/lfs.git/hooks/update b/tests/gitea-repositories-meta/user2/lfs.git/hooks/update new file mode 100755 index 0000000000000..c186fe4a18b0f --- /dev/null +++ b/tests/gitea-repositories-meta/user2/lfs.git/hooks/update @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/update.d"`; do + sh "$SHELL_FOLDER/update.d/$i" $1 $2 $3 +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/user2/lfs.git/hooks/update.d/gitea b/tests/gitea-repositories-meta/user2/lfs.git/hooks/update.d/gitea new file mode 100755 index 0000000000000..38101c242664a --- /dev/null +++ b/tests/gitea-repositories-meta/user2/lfs.git/hooks/update.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" update $1 $2 $3 diff --git a/tests/gitea-repositories-meta/user2/readme-test.git/hooks/post-receive b/tests/gitea-repositories-meta/user2/readme-test.git/hooks/post-receive new file mode 100755 index 0000000000000..4b3d452abcce2 --- /dev/null +++ b/tests/gitea-repositories-meta/user2/readme-test.git/hooks/post-receive @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/post-receive.d"`; do + sh "$SHELL_FOLDER/post-receive.d/$i" +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/user2/readme-test.git/hooks/post-receive.d/gitea b/tests/gitea-repositories-meta/user2/readme-test.git/hooks/post-receive.d/gitea new file mode 100755 index 0000000000000..43a948da3a983 --- /dev/null +++ b/tests/gitea-repositories-meta/user2/readme-test.git/hooks/post-receive.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" post-receive diff --git a/tests/gitea-repositories-meta/user2/readme-test.git/hooks/pre-receive b/tests/gitea-repositories-meta/user2/readme-test.git/hooks/pre-receive new file mode 100755 index 0000000000000..412701305369c --- /dev/null +++ b/tests/gitea-repositories-meta/user2/readme-test.git/hooks/pre-receive @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/pre-receive.d"`; do + sh "$SHELL_FOLDER/pre-receive.d/$i" +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/user2/readme-test.git/hooks/pre-receive.d/gitea b/tests/gitea-repositories-meta/user2/readme-test.git/hooks/pre-receive.d/gitea new file mode 100755 index 0000000000000..49d09406364a5 --- /dev/null +++ b/tests/gitea-repositories-meta/user2/readme-test.git/hooks/pre-receive.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" pre-receive diff --git a/tests/gitea-repositories-meta/user2/readme-test.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/user2/readme-test.git/hooks/proc-receive.d/gitea new file mode 100755 index 0000000000000..e69de29bb2d1d diff --git a/tests/gitea-repositories-meta/user2/readme-test.git/hooks/update b/tests/gitea-repositories-meta/user2/readme-test.git/hooks/update new file mode 100755 index 0000000000000..c186fe4a18b0f --- /dev/null +++ b/tests/gitea-repositories-meta/user2/readme-test.git/hooks/update @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/update.d"`; do + sh "$SHELL_FOLDER/update.d/$i" $1 $2 $3 +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/user2/readme-test.git/hooks/update.d/gitea b/tests/gitea-repositories-meta/user2/readme-test.git/hooks/update.d/gitea new file mode 100755 index 0000000000000..38101c242664a --- /dev/null +++ b/tests/gitea-repositories-meta/user2/readme-test.git/hooks/update.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" update $1 $2 $3 diff --git a/tests/gitea-repositories-meta/user2/repo-release.git/hooks/post-receive b/tests/gitea-repositories-meta/user2/repo-release.git/hooks/post-receive new file mode 100755 index 0000000000000..4b3d452abcce2 --- /dev/null +++ b/tests/gitea-repositories-meta/user2/repo-release.git/hooks/post-receive @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/post-receive.d"`; do + sh "$SHELL_FOLDER/post-receive.d/$i" +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/user2/repo-release.git/hooks/post-receive.d/gitea b/tests/gitea-repositories-meta/user2/repo-release.git/hooks/post-receive.d/gitea new file mode 100755 index 0000000000000..43a948da3a983 --- /dev/null +++ b/tests/gitea-repositories-meta/user2/repo-release.git/hooks/post-receive.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" post-receive diff --git a/tests/gitea-repositories-meta/user2/repo-release.git/hooks/pre-receive b/tests/gitea-repositories-meta/user2/repo-release.git/hooks/pre-receive new file mode 100755 index 0000000000000..412701305369c --- /dev/null +++ b/tests/gitea-repositories-meta/user2/repo-release.git/hooks/pre-receive @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/pre-receive.d"`; do + sh "$SHELL_FOLDER/pre-receive.d/$i" +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/user2/repo-release.git/hooks/pre-receive.d/gitea b/tests/gitea-repositories-meta/user2/repo-release.git/hooks/pre-receive.d/gitea new file mode 100755 index 0000000000000..49d09406364a5 --- /dev/null +++ b/tests/gitea-repositories-meta/user2/repo-release.git/hooks/pre-receive.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" pre-receive diff --git a/tests/gitea-repositories-meta/user2/repo-release.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/user2/repo-release.git/hooks/proc-receive.d/gitea new file mode 100755 index 0000000000000..e69de29bb2d1d diff --git a/tests/gitea-repositories-meta/user2/repo-release.git/hooks/update b/tests/gitea-repositories-meta/user2/repo-release.git/hooks/update new file mode 100755 index 0000000000000..c186fe4a18b0f --- /dev/null +++ b/tests/gitea-repositories-meta/user2/repo-release.git/hooks/update @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/update.d"`; do + sh "$SHELL_FOLDER/update.d/$i" $1 $2 $3 +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/user2/repo-release.git/hooks/update.d/gitea b/tests/gitea-repositories-meta/user2/repo-release.git/hooks/update.d/gitea new file mode 100755 index 0000000000000..38101c242664a --- /dev/null +++ b/tests/gitea-repositories-meta/user2/repo-release.git/hooks/update.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" update $1 $2 $3 diff --git a/tests/gitea-repositories-meta/user2/repo1.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/user2/repo1.git/hooks/proc-receive.d/gitea new file mode 100755 index 0000000000000..e69de29bb2d1d diff --git a/tests/gitea-repositories-meta/user2/repo15.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/user2/repo15.git/hooks/proc-receive.d/gitea new file mode 100755 index 0000000000000..e69de29bb2d1d diff --git a/tests/gitea-repositories-meta/user2/repo16.git/hooks/post-receive b/tests/gitea-repositories-meta/user2/repo16.git/hooks/post-receive new file mode 100755 index 0000000000000..4b3d452abcce2 --- /dev/null +++ b/tests/gitea-repositories-meta/user2/repo16.git/hooks/post-receive @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/post-receive.d"`; do + sh "$SHELL_FOLDER/post-receive.d/$i" +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/user2/repo16.git/hooks/post-receive.d/gitea b/tests/gitea-repositories-meta/user2/repo16.git/hooks/post-receive.d/gitea new file mode 100755 index 0000000000000..43a948da3a983 --- /dev/null +++ b/tests/gitea-repositories-meta/user2/repo16.git/hooks/post-receive.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" post-receive diff --git a/tests/gitea-repositories-meta/user2/repo16.git/hooks/pre-receive b/tests/gitea-repositories-meta/user2/repo16.git/hooks/pre-receive new file mode 100755 index 0000000000000..412701305369c --- /dev/null +++ b/tests/gitea-repositories-meta/user2/repo16.git/hooks/pre-receive @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/pre-receive.d"`; do + sh "$SHELL_FOLDER/pre-receive.d/$i" +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/user2/repo16.git/hooks/pre-receive.d/gitea b/tests/gitea-repositories-meta/user2/repo16.git/hooks/pre-receive.d/gitea new file mode 100755 index 0000000000000..49d09406364a5 --- /dev/null +++ b/tests/gitea-repositories-meta/user2/repo16.git/hooks/pre-receive.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" pre-receive diff --git a/tests/gitea-repositories-meta/user2/repo16.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/user2/repo16.git/hooks/proc-receive.d/gitea new file mode 100755 index 0000000000000..e69de29bb2d1d diff --git a/tests/gitea-repositories-meta/user2/repo16.git/hooks/update b/tests/gitea-repositories-meta/user2/repo16.git/hooks/update new file mode 100755 index 0000000000000..c186fe4a18b0f --- /dev/null +++ b/tests/gitea-repositories-meta/user2/repo16.git/hooks/update @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/update.d"`; do + sh "$SHELL_FOLDER/update.d/$i" $1 $2 $3 +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/user2/repo16.git/hooks/update.d/gitea b/tests/gitea-repositories-meta/user2/repo16.git/hooks/update.d/gitea new file mode 100755 index 0000000000000..38101c242664a --- /dev/null +++ b/tests/gitea-repositories-meta/user2/repo16.git/hooks/update.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" update $1 $2 $3 diff --git a/tests/gitea-repositories-meta/user2/repo2.git/hooks/post-receive b/tests/gitea-repositories-meta/user2/repo2.git/hooks/post-receive new file mode 100755 index 0000000000000..4b3d452abcce2 --- /dev/null +++ b/tests/gitea-repositories-meta/user2/repo2.git/hooks/post-receive @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/post-receive.d"`; do + sh "$SHELL_FOLDER/post-receive.d/$i" +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/user2/repo2.git/hooks/post-receive.d/gitea b/tests/gitea-repositories-meta/user2/repo2.git/hooks/post-receive.d/gitea new file mode 100755 index 0000000000000..43a948da3a983 --- /dev/null +++ b/tests/gitea-repositories-meta/user2/repo2.git/hooks/post-receive.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" post-receive diff --git a/tests/gitea-repositories-meta/user2/repo2.git/hooks/pre-receive b/tests/gitea-repositories-meta/user2/repo2.git/hooks/pre-receive new file mode 100755 index 0000000000000..412701305369c --- /dev/null +++ b/tests/gitea-repositories-meta/user2/repo2.git/hooks/pre-receive @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/pre-receive.d"`; do + sh "$SHELL_FOLDER/pre-receive.d/$i" +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/user2/repo2.git/hooks/pre-receive.d/gitea b/tests/gitea-repositories-meta/user2/repo2.git/hooks/pre-receive.d/gitea new file mode 100755 index 0000000000000..49d09406364a5 --- /dev/null +++ b/tests/gitea-repositories-meta/user2/repo2.git/hooks/pre-receive.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" pre-receive diff --git a/tests/gitea-repositories-meta/user2/repo2.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/user2/repo2.git/hooks/proc-receive.d/gitea new file mode 100755 index 0000000000000..e69de29bb2d1d diff --git a/tests/gitea-repositories-meta/user2/repo2.git/hooks/update b/tests/gitea-repositories-meta/user2/repo2.git/hooks/update new file mode 100755 index 0000000000000..c186fe4a18b0f --- /dev/null +++ b/tests/gitea-repositories-meta/user2/repo2.git/hooks/update @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/update.d"`; do + sh "$SHELL_FOLDER/update.d/$i" $1 $2 $3 +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/user2/repo2.git/hooks/update.d/gitea b/tests/gitea-repositories-meta/user2/repo2.git/hooks/update.d/gitea new file mode 100755 index 0000000000000..38101c242664a --- /dev/null +++ b/tests/gitea-repositories-meta/user2/repo2.git/hooks/update.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" update $1 $2 $3 diff --git a/tests/gitea-repositories-meta/user2/repo20.git/hooks/post-receive b/tests/gitea-repositories-meta/user2/repo20.git/hooks/post-receive index f1f2709dddeea..4b3d452abcce2 100755 --- a/tests/gitea-repositories-meta/user2/repo20.git/hooks/post-receive +++ b/tests/gitea-repositories-meta/user2/repo20.git/hooks/post-receive @@ -1,15 +1,7 @@ #!/usr/bin/env bash -data=$(cat) -exitcodes="" -hookname=$(basename $0) -GIT_DIR=${GIT_DIR:-$(dirname $0)} - -for hook in ${GIT_DIR}/hooks/${hookname}.d/*; do -test -x "${hook}" && test -f "${hook}" || continue -echo "${data}" | "${hook}" -exitcodes="${exitcodes} $?" -done - -for i in ${exitcodes}; do -[ ${i} -eq 0 ] || exit ${i} -done +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/post-receive.d"`; do + sh "$SHELL_FOLDER/post-receive.d/$i" +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/user2/repo20.git/hooks/pre-receive b/tests/gitea-repositories-meta/user2/repo20.git/hooks/pre-receive index f1f2709dddeea..412701305369c 100755 --- a/tests/gitea-repositories-meta/user2/repo20.git/hooks/pre-receive +++ b/tests/gitea-repositories-meta/user2/repo20.git/hooks/pre-receive @@ -1,15 +1,7 @@ #!/usr/bin/env bash -data=$(cat) -exitcodes="" -hookname=$(basename $0) -GIT_DIR=${GIT_DIR:-$(dirname $0)} - -for hook in ${GIT_DIR}/hooks/${hookname}.d/*; do -test -x "${hook}" && test -f "${hook}" || continue -echo "${data}" | "${hook}" -exitcodes="${exitcodes} $?" -done - -for i in ${exitcodes}; do -[ ${i} -eq 0 ] || exit ${i} -done +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/pre-receive.d"`; do + sh "$SHELL_FOLDER/pre-receive.d/$i" +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/user2/repo20.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/user2/repo20.git/hooks/proc-receive.d/gitea new file mode 100755 index 0000000000000..e69de29bb2d1d diff --git a/tests/gitea-repositories-meta/user2/repo20.git/hooks/update b/tests/gitea-repositories-meta/user2/repo20.git/hooks/update index df5bd27f106f2..c186fe4a18b0f 100755 --- a/tests/gitea-repositories-meta/user2/repo20.git/hooks/update +++ b/tests/gitea-repositories-meta/user2/repo20.git/hooks/update @@ -1,14 +1,7 @@ #!/usr/bin/env bash -exitcodes="" -hookname=$(basename $0) -GIT_DIR=${GIT_DIR:-$(dirname $0)} - -for hook in ${GIT_DIR}/hooks/${hookname}.d/*; do -test -x "${hook}" && test -f "${hook}" || continue -"${hook}" $1 $2 $3 -exitcodes="${exitcodes} $?" -done - -for i in ${exitcodes}; do -[ ${i} -eq 0 ] || exit ${i} -done +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/update.d"`; do + sh "$SHELL_FOLDER/update.d/$i" $1 $2 $3 +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/user2/utf8.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/user2/utf8.git/hooks/proc-receive.d/gitea new file mode 100755 index 0000000000000..e69de29bb2d1d diff --git a/tests/gitea-repositories-meta/user27/repo49.git/hooks/post-receive b/tests/gitea-repositories-meta/user27/repo49.git/hooks/post-receive old mode 100644 new mode 100755 index f1f2709dddeea..4b3d452abcce2 --- a/tests/gitea-repositories-meta/user27/repo49.git/hooks/post-receive +++ b/tests/gitea-repositories-meta/user27/repo49.git/hooks/post-receive @@ -1,15 +1,7 @@ #!/usr/bin/env bash -data=$(cat) -exitcodes="" -hookname=$(basename $0) -GIT_DIR=${GIT_DIR:-$(dirname $0)} - -for hook in ${GIT_DIR}/hooks/${hookname}.d/*; do -test -x "${hook}" && test -f "${hook}" || continue -echo "${data}" | "${hook}" -exitcodes="${exitcodes} $?" -done - -for i in ${exitcodes}; do -[ ${i} -eq 0 ] || exit ${i} -done +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/post-receive.d"`; do + sh "$SHELL_FOLDER/post-receive.d/$i" +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/user27/repo49.git/hooks/post-receive.d/gitea b/tests/gitea-repositories-meta/user27/repo49.git/hooks/post-receive.d/gitea old mode 100644 new mode 100755 diff --git a/tests/gitea-repositories-meta/user27/repo49.git/hooks/pre-receive b/tests/gitea-repositories-meta/user27/repo49.git/hooks/pre-receive old mode 100644 new mode 100755 index f1f2709dddeea..412701305369c --- a/tests/gitea-repositories-meta/user27/repo49.git/hooks/pre-receive +++ b/tests/gitea-repositories-meta/user27/repo49.git/hooks/pre-receive @@ -1,15 +1,7 @@ #!/usr/bin/env bash -data=$(cat) -exitcodes="" -hookname=$(basename $0) -GIT_DIR=${GIT_DIR:-$(dirname $0)} - -for hook in ${GIT_DIR}/hooks/${hookname}.d/*; do -test -x "${hook}" && test -f "${hook}" || continue -echo "${data}" | "${hook}" -exitcodes="${exitcodes} $?" -done - -for i in ${exitcodes}; do -[ ${i} -eq 0 ] || exit ${i} -done +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/pre-receive.d"`; do + sh "$SHELL_FOLDER/pre-receive.d/$i" +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/user27/repo49.git/hooks/pre-receive.d/gitea b/tests/gitea-repositories-meta/user27/repo49.git/hooks/pre-receive.d/gitea old mode 100644 new mode 100755 diff --git a/tests/gitea-repositories-meta/user27/repo49.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/user27/repo49.git/hooks/proc-receive.d/gitea new file mode 100755 index 0000000000000..e69de29bb2d1d diff --git a/tests/gitea-repositories-meta/user27/repo49.git/hooks/update b/tests/gitea-repositories-meta/user27/repo49.git/hooks/update old mode 100644 new mode 100755 index df5bd27f106f2..c186fe4a18b0f --- a/tests/gitea-repositories-meta/user27/repo49.git/hooks/update +++ b/tests/gitea-repositories-meta/user27/repo49.git/hooks/update @@ -1,14 +1,7 @@ #!/usr/bin/env bash -exitcodes="" -hookname=$(basename $0) -GIT_DIR=${GIT_DIR:-$(dirname $0)} - -for hook in ${GIT_DIR}/hooks/${hookname}.d/*; do -test -x "${hook}" && test -f "${hook}" || continue -"${hook}" $1 $2 $3 -exitcodes="${exitcodes} $?" -done - -for i in ${exitcodes}; do -[ ${i} -eq 0 ] || exit ${i} -done +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/update.d"`; do + sh "$SHELL_FOLDER/update.d/$i" $1 $2 $3 +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/user27/repo49.git/hooks/update.d/gitea b/tests/gitea-repositories-meta/user27/repo49.git/hooks/update.d/gitea old mode 100644 new mode 100755 diff --git a/tests/gitea-repositories-meta/user27/template1.git/hooks/post-receive b/tests/gitea-repositories-meta/user27/template1.git/hooks/post-receive old mode 100644 new mode 100755 index f1f2709dddeea..4b3d452abcce2 --- a/tests/gitea-repositories-meta/user27/template1.git/hooks/post-receive +++ b/tests/gitea-repositories-meta/user27/template1.git/hooks/post-receive @@ -1,15 +1,7 @@ #!/usr/bin/env bash -data=$(cat) -exitcodes="" -hookname=$(basename $0) -GIT_DIR=${GIT_DIR:-$(dirname $0)} - -for hook in ${GIT_DIR}/hooks/${hookname}.d/*; do -test -x "${hook}" && test -f "${hook}" || continue -echo "${data}" | "${hook}" -exitcodes="${exitcodes} $?" -done - -for i in ${exitcodes}; do -[ ${i} -eq 0 ] || exit ${i} -done +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/post-receive.d"`; do + sh "$SHELL_FOLDER/post-receive.d/$i" +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/user27/template1.git/hooks/post-receive.d/gitea b/tests/gitea-repositories-meta/user27/template1.git/hooks/post-receive.d/gitea old mode 100644 new mode 100755 diff --git a/tests/gitea-repositories-meta/user27/template1.git/hooks/pre-receive b/tests/gitea-repositories-meta/user27/template1.git/hooks/pre-receive old mode 100644 new mode 100755 index f1f2709dddeea..412701305369c --- a/tests/gitea-repositories-meta/user27/template1.git/hooks/pre-receive +++ b/tests/gitea-repositories-meta/user27/template1.git/hooks/pre-receive @@ -1,15 +1,7 @@ #!/usr/bin/env bash -data=$(cat) -exitcodes="" -hookname=$(basename $0) -GIT_DIR=${GIT_DIR:-$(dirname $0)} - -for hook in ${GIT_DIR}/hooks/${hookname}.d/*; do -test -x "${hook}" && test -f "${hook}" || continue -echo "${data}" | "${hook}" -exitcodes="${exitcodes} $?" -done - -for i in ${exitcodes}; do -[ ${i} -eq 0 ] || exit ${i} -done +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/pre-receive.d"`; do + sh "$SHELL_FOLDER/pre-receive.d/$i" +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/user27/template1.git/hooks/pre-receive.d/gitea b/tests/gitea-repositories-meta/user27/template1.git/hooks/pre-receive.d/gitea old mode 100644 new mode 100755 diff --git a/tests/gitea-repositories-meta/user27/template1.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/user27/template1.git/hooks/proc-receive.d/gitea new file mode 100755 index 0000000000000..e69de29bb2d1d diff --git a/tests/gitea-repositories-meta/user27/template1.git/hooks/update b/tests/gitea-repositories-meta/user27/template1.git/hooks/update old mode 100644 new mode 100755 index df5bd27f106f2..c186fe4a18b0f --- a/tests/gitea-repositories-meta/user27/template1.git/hooks/update +++ b/tests/gitea-repositories-meta/user27/template1.git/hooks/update @@ -1,14 +1,7 @@ #!/usr/bin/env bash -exitcodes="" -hookname=$(basename $0) -GIT_DIR=${GIT_DIR:-$(dirname $0)} - -for hook in ${GIT_DIR}/hooks/${hookname}.d/*; do -test -x "${hook}" && test -f "${hook}" || continue -"${hook}" $1 $2 $3 -exitcodes="${exitcodes} $?" -done - -for i in ${exitcodes}; do -[ ${i} -eq 0 ] || exit ${i} -done +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/update.d"`; do + sh "$SHELL_FOLDER/update.d/$i" $1 $2 $3 +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/user27/template1.git/hooks/update.d/gitea b/tests/gitea-repositories-meta/user27/template1.git/hooks/update.d/gitea old mode 100644 new mode 100755 diff --git a/tests/gitea-repositories-meta/user3/repo3.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/user3/repo3.git/hooks/proc-receive.d/gitea new file mode 100755 index 0000000000000..e69de29bb2d1d diff --git a/tests/gitea-repositories-meta/user3/repo5.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/user3/repo5.git/hooks/proc-receive.d/gitea new file mode 100755 index 0000000000000..e69de29bb2d1d diff --git a/tests/gitea-repositories-meta/user30/renderer.git/hooks/post-receive b/tests/gitea-repositories-meta/user30/renderer.git/hooks/post-receive old mode 100644 new mode 100755 index f1f2709dddeea..4b3d452abcce2 --- a/tests/gitea-repositories-meta/user30/renderer.git/hooks/post-receive +++ b/tests/gitea-repositories-meta/user30/renderer.git/hooks/post-receive @@ -1,15 +1,7 @@ #!/usr/bin/env bash -data=$(cat) -exitcodes="" -hookname=$(basename $0) -GIT_DIR=${GIT_DIR:-$(dirname $0)} - -for hook in ${GIT_DIR}/hooks/${hookname}.d/*; do -test -x "${hook}" && test -f "${hook}" || continue -echo "${data}" | "${hook}" -exitcodes="${exitcodes} $?" -done - -for i in ${exitcodes}; do -[ ${i} -eq 0 ] || exit ${i} -done +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/post-receive.d"`; do + sh "$SHELL_FOLDER/post-receive.d/$i" +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/user30/renderer.git/hooks/post-receive.d/gitea b/tests/gitea-repositories-meta/user30/renderer.git/hooks/post-receive.d/gitea old mode 100644 new mode 100755 diff --git a/tests/gitea-repositories-meta/user30/renderer.git/hooks/pre-receive b/tests/gitea-repositories-meta/user30/renderer.git/hooks/pre-receive old mode 100644 new mode 100755 index f1f2709dddeea..412701305369c --- a/tests/gitea-repositories-meta/user30/renderer.git/hooks/pre-receive +++ b/tests/gitea-repositories-meta/user30/renderer.git/hooks/pre-receive @@ -1,15 +1,7 @@ #!/usr/bin/env bash -data=$(cat) -exitcodes="" -hookname=$(basename $0) -GIT_DIR=${GIT_DIR:-$(dirname $0)} - -for hook in ${GIT_DIR}/hooks/${hookname}.d/*; do -test -x "${hook}" && test -f "${hook}" || continue -echo "${data}" | "${hook}" -exitcodes="${exitcodes} $?" -done - -for i in ${exitcodes}; do -[ ${i} -eq 0 ] || exit ${i} -done +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/pre-receive.d"`; do + sh "$SHELL_FOLDER/pre-receive.d/$i" +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/user30/renderer.git/hooks/pre-receive.d/gitea b/tests/gitea-repositories-meta/user30/renderer.git/hooks/pre-receive.d/gitea old mode 100644 new mode 100755 diff --git a/tests/gitea-repositories-meta/user30/renderer.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/user30/renderer.git/hooks/proc-receive.d/gitea new file mode 100755 index 0000000000000..e69de29bb2d1d diff --git a/tests/gitea-repositories-meta/user30/renderer.git/hooks/update b/tests/gitea-repositories-meta/user30/renderer.git/hooks/update old mode 100644 new mode 100755 index df5bd27f106f2..c186fe4a18b0f --- a/tests/gitea-repositories-meta/user30/renderer.git/hooks/update +++ b/tests/gitea-repositories-meta/user30/renderer.git/hooks/update @@ -1,14 +1,7 @@ #!/usr/bin/env bash -exitcodes="" -hookname=$(basename $0) -GIT_DIR=${GIT_DIR:-$(dirname $0)} - -for hook in ${GIT_DIR}/hooks/${hookname}.d/*; do -test -x "${hook}" && test -f "${hook}" || continue -"${hook}" $1 $2 $3 -exitcodes="${exitcodes} $?" -done - -for i in ${exitcodes}; do -[ ${i} -eq 0 ] || exit ${i} -done +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/update.d"`; do + sh "$SHELL_FOLDER/update.d/$i" $1 $2 $3 +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/user30/renderer.git/hooks/update.d/gitea b/tests/gitea-repositories-meta/user30/renderer.git/hooks/update.d/gitea old mode 100644 new mode 100755 diff --git a/tests/gitea-repositories-meta/user5/repo4.git/hooks/post-receive b/tests/gitea-repositories-meta/user5/repo4.git/hooks/post-receive new file mode 100755 index 0000000000000..4b3d452abcce2 --- /dev/null +++ b/tests/gitea-repositories-meta/user5/repo4.git/hooks/post-receive @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/post-receive.d"`; do + sh "$SHELL_FOLDER/post-receive.d/$i" +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/user5/repo4.git/hooks/post-receive.d/gitea b/tests/gitea-repositories-meta/user5/repo4.git/hooks/post-receive.d/gitea new file mode 100755 index 0000000000000..43a948da3a983 --- /dev/null +++ b/tests/gitea-repositories-meta/user5/repo4.git/hooks/post-receive.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" post-receive diff --git a/tests/gitea-repositories-meta/user5/repo4.git/hooks/pre-receive b/tests/gitea-repositories-meta/user5/repo4.git/hooks/pre-receive new file mode 100755 index 0000000000000..412701305369c --- /dev/null +++ b/tests/gitea-repositories-meta/user5/repo4.git/hooks/pre-receive @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/pre-receive.d"`; do + sh "$SHELL_FOLDER/pre-receive.d/$i" +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/user5/repo4.git/hooks/pre-receive.d/gitea b/tests/gitea-repositories-meta/user5/repo4.git/hooks/pre-receive.d/gitea new file mode 100755 index 0000000000000..49d09406364a5 --- /dev/null +++ b/tests/gitea-repositories-meta/user5/repo4.git/hooks/pre-receive.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" pre-receive diff --git a/tests/gitea-repositories-meta/user5/repo4.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/user5/repo4.git/hooks/proc-receive.d/gitea new file mode 100755 index 0000000000000..e69de29bb2d1d diff --git a/tests/gitea-repositories-meta/user5/repo4.git/hooks/update b/tests/gitea-repositories-meta/user5/repo4.git/hooks/update new file mode 100755 index 0000000000000..c186fe4a18b0f --- /dev/null +++ b/tests/gitea-repositories-meta/user5/repo4.git/hooks/update @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +ORI_DIR=`pwd` +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) +cd "$ORI_DIR" +for i in `ls "$SHELL_FOLDER/update.d"`; do + sh "$SHELL_FOLDER/update.d/$i" $1 $2 $3 +done \ No newline at end of file diff --git a/tests/gitea-repositories-meta/user5/repo4.git/hooks/update.d/gitea b/tests/gitea-repositories-meta/user5/repo4.git/hooks/update.d/gitea new file mode 100755 index 0000000000000..38101c242664a --- /dev/null +++ b/tests/gitea-repositories-meta/user5/repo4.git/hooks/update.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" update $1 $2 $3 From 10474e5cdb5ead07b9d65d9e24ad0e2181f75b9e Mon Sep 17 00:00:00 2001 From: a1012112796 <1012112796@qq.com> Date: Sun, 3 Sep 2023 06:45:48 +0000 Subject: [PATCH 07/26] fix lint Signed-off-by: a1012112796 <1012112796@qq.com> --- contrib/dev/dev.go | 20 +++----------------- models/unittest/fixtures.go | 10 +++++----- models/unittest/fixtures_test.go | 4 ++-- 3 files changed, 10 insertions(+), 24 deletions(-) diff --git a/contrib/dev/dev.go b/contrib/dev/dev.go index bbd417db790a9..668b410a26ba0 100644 --- a/contrib/dev/dev.go +++ b/contrib/dev/dev.go @@ -5,7 +5,6 @@ package main import ( "context" - "fmt" "io/fs" "net/http" "os" @@ -13,7 +12,6 @@ import ( "path/filepath" "strings" - _ "code.gitea.io/gitea/models" "code.gitea.io/gitea/models/db" "code.gitea.io/gitea/models/unittest" "code.gitea.io/gitea/modules/graceful" @@ -22,6 +20,9 @@ import ( "code.gitea.io/gitea/modules/util" "code.gitea.io/gitea/routers" "code.gitea.io/gitea/routers/common" + + _ "code.gitea.io/gitea/models" + "gopkg.in/yaml.v3" ) @@ -70,21 +71,6 @@ func main() { log.GetManager().Close() } -func buildInterfacesSlice(records interface{}) ([]interface{}, error) { - switch records := records.(type) { - case []interface{}: - return records, nil - case map[string]interface{}: - var result []interface{} - for _, record := range records { - result = append(result, record) - } - return result, nil - } - - return nil, fmt.Errorf("testfixtures: fixture is not a slice or map") -} - func listSubDir(dirname string, onDir func(path, name string) error) error { fileInfos, err := os.ReadDir(dirname) if err != nil { diff --git a/models/unittest/fixtures.go b/models/unittest/fixtures.go index 1d3e229a9f8c0..5200423d20666 100644 --- a/models/unittest/fixtures.go +++ b/models/unittest/fixtures.go @@ -5,7 +5,6 @@ package unittest import ( - "encoding/json" "errors" "fmt" "io" @@ -17,6 +16,7 @@ import ( "code.gitea.io/gitea/models/db" "code.gitea.io/gitea/modules/auth/password/hash" + "code.gitea.io/gitea/modules/json" "code.gitea.io/gitea/modules/setting" "code.gitea.io/gitea/modules/util" @@ -197,7 +197,7 @@ func defaultFixtureDumperVerbs(tableName string, actualValue reflect.Value, type fieldValue := field.Interface() isText := xormTags.HasTag("TEXT") - isJson := xormTags.HasTag("JSON") + isJSON := xormTags.HasTag("JSON") conversion, hasconversion := fieldValue.(convert.Conversion) if (!hasconversion) && isFieldNil(field) { continue @@ -231,7 +231,7 @@ func defaultFixtureDumperVerbs(tableName string, actualValue reflect.Value, type int64Type := reflect.TypeOf(int64(0)) isInt64 := field.Type().ConvertibleTo(int64Type) - if fieldType.Type.Kind() == reflect.Struct && !isInt64 && !isText && !isJson { + if fieldType.Type.Kind() == reflect.Struct && !isInt64 && !isText && !isJSON { return fmt.Errorf("%s: '%s' is a struct whcih can't be convert to a table field", tableName, xormTags.GetFieldName(fieldName)) } @@ -240,7 +240,7 @@ func defaultFixtureDumperVerbs(tableName string, actualValue reflect.Value, type return err } - if isJson { + if isJSON { result, err := json.Marshal(fieldValue) if err != nil { return err @@ -363,7 +363,7 @@ func (l xormTagList) HasTag(name string) bool { } func (l xormTagList) GetFieldName(defaultName string) string { - var reservedNames = []string{ + reservedNames := []string{ "TRUE", "FALSE", "BIT", diff --git a/models/unittest/fixtures_test.go b/models/unittest/fixtures_test.go index 928bf1992f600..9f0e554d81fd4 100644 --- a/models/unittest/fixtures_test.go +++ b/models/unittest/fixtures_test.go @@ -17,12 +17,12 @@ func (t testSub2) String() string { return "unknow" } -type testSubConversion struct { -} +type testSubConversion struct{} func (c *testSubConversion) FromDB([]byte) error { return nil } + func (c *testSubConversion) ToDB() ([]byte, error) { return []byte("testSubConversion"), nil } From e41cfbcea675827551b108f73696b603d2138d2c Mon Sep 17 00:00:00 2001 From: a1012112796 <1012112796@qq.com> Date: Sun, 3 Sep 2023 07:25:47 +0000 Subject: [PATCH 08/26] fix nits Signed-off-by: a1012112796 <1012112796@qq.com> --- models/fixtures/access_token.md | 7 +++++++ models/unittest/fixtures.go | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 models/fixtures/access_token.md diff --git a/models/fixtures/access_token.md b/models/fixtures/access_token.md new file mode 100644 index 0000000000000..f4588a60f9855 --- /dev/null +++ b/models/fixtures/access_token.md @@ -0,0 +1,7 @@ +# tokens list + +| id | token | +| :---- | :---- | +| 1 | d2c6c1ba3890b309189a8e618c72a162e4efbf36 | +| 2 | 4c6f36e6cf498e2a448662f915d932c09c5a146c | +| 3 | 90a18faa671dc43924b795806ffe4fd169d28c91 | diff --git a/models/unittest/fixtures.go b/models/unittest/fixtures.go index 5200423d20666..51d210c9c2a81 100644 --- a/models/unittest/fixtures.go +++ b/models/unittest/fixtures.go @@ -232,7 +232,7 @@ func defaultFixtureDumperVerbs(tableName string, actualValue reflect.Value, type int64Type := reflect.TypeOf(int64(0)) isInt64 := field.Type().ConvertibleTo(int64Type) if fieldType.Type.Kind() == reflect.Struct && !isInt64 && !isText && !isJSON { - return fmt.Errorf("%s: '%s' is a struct whcih can't be convert to a table field", tableName, xormTags.GetFieldName(fieldName)) + return fmt.Errorf("%s: '%s' is a struct which can't be convert to a table field", tableName, xormTags.GetFieldName(fieldName)) } _, err = fd.Write([]byte(fmt.Sprintf(" %s: ", xormTags.GetFieldName(fieldName)))) From 9bfbd6034f5e76b8041306b8e8277940880a624e Mon Sep 17 00:00:00 2001 From: a1012112796 <1012112796@qq.com> Date: Sun, 3 Sep 2023 08:39:59 +0000 Subject: [PATCH 09/26] fix nits Signed-off-by: a1012112796 <1012112796@qq.com> --- contrib/dev/dev.go | 5 ++ models/fixtures/repository.yml | 116 ++++++++++++++++----------------- tests/dev.ini.tmpl | 5 +- 3 files changed, 65 insertions(+), 61 deletions(-) diff --git a/contrib/dev/dev.go b/contrib/dev/dev.go index 668b410a26ba0..49f1f77facd2c 100644 --- a/contrib/dev/dev.go +++ b/contrib/dev/dev.go @@ -67,10 +67,15 @@ func main() { log.Fatal("unittest.DumpAllFixtures: %v", err) } removeNotNeededFixtures(pwd) + removeTmpFiles(pwd) log.GetManager().Close() } +func removeTmpFiles(pwd string) { + _ = util.RemoveAll(path.Join(pwd, "tests", "dev")) +} + func listSubDir(dirname string, onDir func(path, name string) error) error { fileInfos, err := os.ReadDir(dirname) if err != nil { diff --git a/models/fixtures/repository.yml b/models/fixtures/repository.yml index 40217abefe15c..3161a449fdf70 100644 --- a/models/fixtures/repository.yml +++ b/models/fixtures/repository.yml @@ -30,7 +30,7 @@ is_template: false template_id: 0 size: 7320 - git_size: 0 + git_size: 7320 lfs_size: 0 is_fsck_enabled: true close_issues_via_commit_in_any_branch: false @@ -70,8 +70,8 @@ fork_id: 0 is_template: false template_id: 0 - size: 0 - git_size: 0 + size: 7576 + git_size: 7576 lfs_size: 0 is_fsck_enabled: true close_issues_via_commit_in_any_branch: true @@ -111,8 +111,8 @@ fork_id: 0 is_template: false template_id: 0 - size: 0 - git_size: 0 + size: 3288 + git_size: 3288 lfs_size: 0 is_fsck_enabled: true close_issues_via_commit_in_any_branch: false @@ -152,8 +152,8 @@ fork_id: 0 is_template: false template_id: 0 - size: 0 - git_size: 0 + size: 2164 + git_size: 2164 lfs_size: 0 is_fsck_enabled: true close_issues_via_commit_in_any_branch: false @@ -192,8 +192,8 @@ fork_id: 0 is_template: false template_id: 0 - size: 0 - git_size: 0 + size: 3288 + git_size: 3288 lfs_size: 0 is_fsck_enabled: true close_issues_via_commit_in_any_branch: false @@ -393,8 +393,8 @@ fork_id: 0 is_template: false template_id: 0 - size: 0 - git_size: 0 + size: 1738 + git_size: 1738 lfs_size: 0 is_fsck_enabled: true close_issues_via_commit_in_any_branch: false @@ -434,8 +434,8 @@ fork_id: 10 is_template: false template_id: 0 - size: 0 - git_size: 0 + size: 2695 + git_size: 2695 lfs_size: 0 is_fsck_enabled: true close_issues_via_commit_in_any_branch: false @@ -595,8 +595,8 @@ fork_id: 0 is_template: false template_id: 0 - size: 0 - git_size: 0 + size: 1227 + git_size: 1227 lfs_size: 0 is_fsck_enabled: true close_issues_via_commit_in_any_branch: false @@ -636,8 +636,8 @@ fork_id: 0 is_template: false template_id: 0 - size: 0 - git_size: 0 + size: 3573 + git_size: 3573 lfs_size: 0 is_fsck_enabled: true close_issues_via_commit_in_any_branch: false @@ -1237,8 +1237,8 @@ fork_id: 0 is_template: false template_id: 0 - size: 0 - git_size: 0 + size: 3368 + git_size: 3368 lfs_size: 0 is_fsck_enabled: true close_issues_via_commit_in_any_branch: false @@ -1318,8 +1318,8 @@ fork_id: 0 is_template: false template_id: 0 - size: 0 - git_size: 0 + size: 4936 + git_size: 4936 lfs_size: 0 is_fsck_enabled: true close_issues_via_commit_in_any_branch: false @@ -1439,8 +1439,8 @@ fork_id: 0 is_template: false template_id: 0 - size: 0 - git_size: 0 + size: 2682 + git_size: 2682 lfs_size: 0 is_fsck_enabled: true close_issues_via_commit_in_any_branch: false @@ -1480,8 +1480,8 @@ fork_id: 0 is_template: false template_id: 0 - size: 0 - git_size: 0 + size: 1770 + git_size: 1770 lfs_size: 0 is_fsck_enabled: true close_issues_via_commit_in_any_branch: false @@ -1521,8 +1521,8 @@ fork_id: 0 is_template: false template_id: 0 - size: 0 - git_size: 0 + size: 2193 + git_size: 2193 lfs_size: 0 is_fsck_enabled: true close_issues_via_commit_in_any_branch: false @@ -1562,8 +1562,8 @@ fork_id: 0 is_template: false template_id: 0 - size: 0 - git_size: 0 + size: 2192 + git_size: 2192 lfs_size: 0 is_fsck_enabled: true close_issues_via_commit_in_any_branch: false @@ -1603,8 +1603,8 @@ fork_id: 0 is_template: false template_id: 0 - size: 0 - git_size: 0 + size: 2194 + git_size: 2194 lfs_size: 0 is_fsck_enabled: true close_issues_via_commit_in_any_branch: false @@ -1644,8 +1644,8 @@ fork_id: 0 is_template: false template_id: 0 - size: 0 - git_size: 0 + size: 2195 + git_size: 2195 lfs_size: 0 is_fsck_enabled: true close_issues_via_commit_in_any_branch: false @@ -1685,8 +1685,8 @@ fork_id: 0 is_template: false template_id: 0 - size: 0 - git_size: 0 + size: 1861 + git_size: 1861 lfs_size: 0 is_fsck_enabled: true close_issues_via_commit_in_any_branch: false @@ -1766,8 +1766,8 @@ fork_id: 0 is_template: true template_id: 0 - size: 0 - git_size: 0 + size: 2596 + git_size: 2596 lfs_size: 0 is_fsck_enabled: true close_issues_via_commit_in_any_branch: false @@ -1847,8 +1847,8 @@ fork_id: 0 is_template: false template_id: 0 - size: 0 - git_size: 0 + size: 2620 + git_size: 2620 lfs_size: 0 is_fsck_enabled: true close_issues_via_commit_in_any_branch: false @@ -1888,8 +1888,8 @@ fork_id: 0 is_template: false template_id: 0 - size: 0 - git_size: 0 + size: 2620 + git_size: 2620 lfs_size: 0 is_fsck_enabled: true close_issues_via_commit_in_any_branch: false @@ -1929,8 +1929,8 @@ fork_id: 0 is_template: false template_id: 0 - size: 0 - git_size: 0 + size: 2620 + git_size: 2620 lfs_size: 0 is_fsck_enabled: true close_issues_via_commit_in_any_branch: false @@ -1970,8 +1970,8 @@ fork_id: 0 is_template: false template_id: 0 - size: 0 - git_size: 0 + size: 1930 + git_size: 1930 lfs_size: 0 is_fsck_enabled: true close_issues_via_commit_in_any_branch: false @@ -2093,8 +2093,8 @@ fork_id: 0 is_template: false template_id: 0 - size: 0 - git_size: 0 + size: 125 + git_size: 125 lfs_size: 0 is_fsck_enabled: true close_issues_via_commit_in_any_branch: false @@ -2134,8 +2134,8 @@ fork_id: 0 is_template: false template_id: 0 - size: 0 - git_size: 0 + size: 2286 + git_size: 2286 lfs_size: 0 is_fsck_enabled: true close_issues_via_commit_in_any_branch: false @@ -2175,9 +2175,9 @@ fork_id: 0 is_template: false template_id: 0 - size: 0 - git_size: 0 - lfs_size: 0 + size: 2331 + git_size: 2065 + lfs_size: 266 is_fsck_enabled: true close_issues_via_commit_in_any_branch: false trust_model: 0 @@ -2256,8 +2256,8 @@ fork_id: 0 is_template: false template_id: 0 - size: 0 - git_size: 0 + size: 24149 + git_size: 24149 lfs_size: 0 is_fsck_enabled: true close_issues_via_commit_in_any_branch: false @@ -2297,8 +2297,8 @@ fork_id: 0 is_template: false template_id: 0 - size: 0 - git_size: 0 + size: 3480 + git_size: 3480 lfs_size: 0 is_fsck_enabled: true close_issues_via_commit_in_any_branch: false @@ -2338,8 +2338,8 @@ fork_id: 0 is_template: false template_id: 0 - size: 0 - git_size: 0 + size: 6169 + git_size: 6169 lfs_size: 0 is_fsck_enabled: true close_issues_via_commit_in_any_branch: false diff --git a/tests/dev.ini.tmpl b/tests/dev.ini.tmpl index 82645b36a7142..6a83f1e766414 100644 --- a/tests/dev.ini.tmpl +++ b/tests/dev.ini.tmpl @@ -82,9 +82,8 @@ PROVIDER_CONFIG = {{GITEA_ROOT}}/tests/dev/data/sessions [log] MODE = console,file ROOT_PATH = {{GITEA_ROOT}}/tests/dev/log -ROUTER = , -XORM = file ENABLE_SSH_LOG = true +logger.xorm.MODE = file [log.file] LEVEL = Debug @@ -99,7 +98,7 @@ INTERNAL_TOKEN = eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYmYiOjE0OTI3OTU5ODN9.O JWT_SECRET = KZb_QLUd4fYVyxetjxC4eZkrBgWM2SndOOWDNtgUUko [lfs] -PATH = {{GITEA_ROOT}}/tests/gitea-repositories-meta +PATH = {{GITEA_ROOT}}/tests/gitea-lfs-meta [packages] ENABLED = true From 9de158b7244949f21d16de1bec453503eed49264 Mon Sep 17 00:00:00 2001 From: a1012112796 <1012112796@qq.com> Date: Sun, 3 Sep 2023 10:48:59 +0000 Subject: [PATCH 10/26] fix git hooks usage Signed-off-by: a1012112796 <1012112796@qq.com> --- Makefile | 3 ++- contrib/dev/dev.go | 25 +++++++++++++++++++++++-- tests/dev.ini.tmpl | 8 ++++---- 3 files changed, 29 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index 6cfabe2c4767b..a4ff2f47d9cc9 100644 --- a/Makefile +++ b/Makefile @@ -180,6 +180,7 @@ TEST_MSSQL_HOST ?= mssql:1433 TEST_MSSQL_DBNAME ?= gitea TEST_MSSQL_USERNAME ?= sa TEST_MSSQL_PASSWORD ?= MwantsaSecurePassword1 +TEST_DEV_ADDR ?= localhost .PHONY: all all: build @@ -514,7 +515,7 @@ generate-ini-sqlite: tests/sqlite.ini.tmpl > tests/sqlite.ini generate-ini-dev: - sed -e 's|{{GITEA_ROOT}}|${CURDIR}|g' tests/dev.ini.tmpl > tests/dev.ini + sed -e 's|{{GITEA_ROOT}}|${CURDIR}|g' -e 's|{{GITEA_DEV_ADDR}}|${TEST_DEV_ADDR}|g' tests/dev.ini.tmpl > tests/dev.ini .PHONY: test-dev test-dev: generate-ini-dev diff --git a/contrib/dev/dev.go b/contrib/dev/dev.go index 49f1f77facd2c..2c40c27c9ebe5 100644 --- a/contrib/dev/dev.go +++ b/contrib/dev/dev.go @@ -12,6 +12,8 @@ import ( "path/filepath" "strings" + "code.gitea.io/gitea/cmd" + _ "code.gitea.io/gitea/models" "code.gitea.io/gitea/models/db" "code.gitea.io/gitea/models/unittest" "code.gitea.io/gitea/modules/graceful" @@ -20,9 +22,9 @@ import ( "code.gitea.io/gitea/modules/util" "code.gitea.io/gitea/routers" "code.gitea.io/gitea/routers/common" + repo_service "code.gitea.io/gitea/services/repository" - _ "code.gitea.io/gitea/models" - + "github.com/urfave/cli/v2" "gopkg.in/yaml.v3" ) @@ -30,6 +32,18 @@ import ( // GITEA_ROOT=`pwd` go run -tags 'sqlite sqlite_unlock_notify' contrib/dev/dev.go func main() { + app := cmd.NewMainApp("dev", "") + for _, command := range app.Commands { + if command.Name == app.DefaultCommand { + command.Action = devEntry + break + } + } + + _ = cmd.RunMainApp(app, os.Args...) +} + +func devEntry(_ *cli.Context) error { pwd := os.Getenv("GITEA_ROOT") if len(pwd) == 0 { panic(pwd) @@ -70,6 +84,8 @@ func main() { removeTmpFiles(pwd) log.GetManager().Close() + + return nil } func removeTmpFiles(pwd string) { @@ -165,6 +181,7 @@ func fixGitReops() { "privated_org/public_repo_on_private_org.git", "user3/repo5.git", "user3/repo3.git", + "user3/action_test.git", "user13/repo11.git", "user27/template1.git", "user27/repo49.git", @@ -258,6 +275,10 @@ func initDev(pathToGiteaRoot string) { if err := setting.PrepareAppDataPath(); err != nil { log.Fatal("Can not prepare APP_DATA_PATH: %v", err) } + + if err := repo_service.SyncRepositoryHooks(db.DefaultContext); err != nil { + log.Fatal("repo_service.SyncRepositoryHooks: %v", err) + } } func runHTTP(network, listenAddr, name string, m http.Handler, useProxyProtocol bool) error { diff --git a/tests/dev.ini.tmpl b/tests/dev.ini.tmpl index 6a83f1e766414..9484ef5208932 100644 --- a/tests/dev.ini.tmpl +++ b/tests/dev.ini.tmpl @@ -35,11 +35,11 @@ TEMP_PATH = {{GITEA_ROOT}}/tests/dev/tmp/uploads SIGNING_KEY = none [server] -SSH_DOMAIN = localhost -HTTP_PORT = 3003 -ROOT_URL = http://localhost:3000/ +SSH_DOMAIN = {{GITEA_DEV_ADDR}} +HTTP_PORT = 3000 +ROOT_URL = http://{{GITEA_DEV_ADDR}}:3000/ DISABLE_SSH = false -SSH_LISTEN_HOST = localhost +SSH_LISTEN_HOST = {{GITEA_DEV_ADDR}} SSH_PORT = 2203 START_SSH_SERVER = true LFS_START_SERVER = true From c064815ae0438b82e35807722f8713d62b702d97 Mon Sep 17 00:00:00 2001 From: a1012112796 <1012112796@qq.com> Date: Sun, 3 Sep 2023 11:59:10 +0000 Subject: [PATCH 11/26] fix test Signed-off-by: a1012112796 <1012112796@qq.com> --- models/db/engine.go | 2 +- models/fixture_generation.go | 3 ++- models/fixtures/lfs_meta_object.yml | 4 ---- models/git/lfs.go | 13 +++++++++++++ models/unittest/fixtures.go | 4 ++++ 5 files changed, 20 insertions(+), 6 deletions(-) diff --git a/models/db/engine.go b/models/db/engine.go index 018cea649e6fb..ea17cdbb02245 100755 --- a/models/db/engine.go +++ b/models/db/engine.go @@ -318,5 +318,5 @@ func AllTablesForEach(hanle func(info *schemas.Table, bean any) error) error { // FixtureDumper custom interface to generate a fixture file type FixtureDumper interface { - FixtureDumper(dbCtx context.Context, fd io.Writer) error + FixtureDumper(fd io.Writer) error } diff --git a/models/fixture_generation.go b/models/fixture_generation.go index 7e4aebb6a11ec..abf880ee8e2bc 100644 --- a/models/fixture_generation.go +++ b/models/fixture_generation.go @@ -39,7 +39,8 @@ func GetYamlFixturesAccess() (string, error) { fmt.Fprintf(&b, " id: %d\n", i+1) fmt.Fprintf(&b, " user_id: %d\n", a.UserID) fmt.Fprintf(&b, " repo_id: %d\n", a.RepoID) - fmt.Fprintf(&b, " mode: %d\n\n", a.Mode) + fmt.Fprintf(&b, " mode: %d\n", a.Mode) + fmt.Fprintf(&b, "\n") } return b.String(), nil diff --git a/models/fixtures/lfs_meta_object.yml b/models/fixtures/lfs_meta_object.yml index 2258c5b25a754..f60215319509b 100644 --- a/models/fixtures/lfs_meta_object.yml +++ b/models/fixtures/lfs_meta_object.yml @@ -4,7 +4,6 @@ size: 107 repository_id: 54 created_unix: 1671607299 - updated_unix: 0 - id: 2 @@ -12,7 +11,6 @@ size: 107 repository_id: 54 created_unix: 1671607299 - updated_unix: 0 - id: 3 @@ -20,7 +18,6 @@ size: 27 repository_id: 54 created_unix: 1671607299 - updated_unix: 0 - id: 4 @@ -28,5 +25,4 @@ size: 25 repository_id: 54 created_unix: 1671607299 - updated_unix: 0 diff --git a/models/git/lfs.go b/models/git/lfs.go index e8192f92c5c68..48babd5698752 100644 --- a/models/git/lfs.go +++ b/models/git/lfs.go @@ -6,6 +6,7 @@ package git import ( "context" "fmt" + "io" "code.gitea.io/gitea/models/db" "code.gitea.io/gitea/models/perm" @@ -117,6 +118,18 @@ type LFSMetaObject struct { UpdatedUnix timeutil.TimeStamp `xorm:"INDEX updated"` } +func (l *LFSMetaObject) FixtureDumper(fd io.Writer) error { + fmt.Fprintf(fd, "-\n") + fmt.Fprintf(fd, " id: %d\n", l.ID) + fmt.Fprintf(fd, " oid: %s\n", l.Pointer.Oid) + fmt.Fprintf(fd, " size: %d\n", l.Pointer.Size) + fmt.Fprintf(fd, " repository_id: %d\n", l.RepositoryID) + fmt.Fprintf(fd, " created_unix: %d\n", l.CreatedUnix) + fmt.Fprintf(fd, "\n") + + return nil +} + func init() { db.RegisterModel(new(LFSMetaObject)) } diff --git a/models/unittest/fixtures.go b/models/unittest/fixtures.go index 51d210c9c2a81..41030a1e9d88c 100644 --- a/models/unittest/fixtures.go +++ b/models/unittest/fixtures.go @@ -103,6 +103,10 @@ func DumpAllFixtures(dir string) error { } return db.GetEngine(db.DefaultContext).Iterate(bean, func(idx int, data interface{}) error { + if dumper, ok := data.(db.FixtureDumper); ok { + return dumper.FixtureDumper(fd) + } + return DefaultFixtureDumper(data, fd) }) }) From 5cd7cd0359f0de38bd5ff588e7b16cff759e14b9 Mon Sep 17 00:00:00 2001 From: a1012112796 <1012112796@qq.com> Date: Mon, 4 Sep 2023 05:31:57 +0000 Subject: [PATCH 12/26] fix []byte generation in DefaultFixtureDumper Signed-off-by: a1012112796 <1012112796@qq.com> --- models/unittest/fixtures.go | 11 +++++++++++ models/unittest/fixtures_test.go | 3 +++ modules/repository/create_test.go | 3 --- 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/models/unittest/fixtures.go b/models/unittest/fixtures.go index 41030a1e9d88c..4d826146dee18 100644 --- a/models/unittest/fixtures.go +++ b/models/unittest/fixtures.go @@ -270,6 +270,17 @@ func defaultFixtureDumperVerbs(tableName string, actualValue reflect.Value, type } else if isInt64 { intValue := field.Convert(int64Type).Int() strValue = []byte(fmt.Sprintf("%d", intValue)) + } else if bytes, ok := fieldValue.([]byte); ok && !isJSON { + isText = false + strValue = []byte{'0', 'x'} + vStrBuilder := strings.Builder{} + + for _, b := range bytes { + fmt.Fprintf(&vStrBuilder, "%02x", b) + } + + strValue = append(strValue, []byte(vStrBuilder.String())...) + } else { strValue = []byte(fmt.Sprintf("%v", fieldValue)) } diff --git a/models/unittest/fixtures_test.go b/models/unittest/fixtures_test.go index 9f0e554d81fd4..44b9237544952 100644 --- a/models/unittest/fixtures_test.go +++ b/models/unittest/fixtures_test.go @@ -56,6 +56,7 @@ func TestDefaultFixtureDumper(t *testing.T) { ExternVerb TestExtern `xorm:"extends"` NumStr string JJ *testSubConversion + FF []byte } buffer := bytes.NewBuffer(nil) @@ -76,6 +77,7 @@ func TestDefaultFixtureDumper(t *testing.T) { BB: 15, }, NumStr: "1234123412341234123412341234123412341234", + FF: []byte("hello world"), }, buffer) assert.NoError(t, err) @@ -94,6 +96,7 @@ func TestDefaultFixtureDumper(t *testing.T) { bb: 15 num_str: '1234123412341234123412341234123412341234' jj: testSubConversion + ff: 0x68656c6c6f20776f726c64 `, buffer.String()) diff --git a/modules/repository/create_test.go b/modules/repository/create_test.go index c55f3296cfa51..e620422bcb77c 100644 --- a/modules/repository/create_test.go +++ b/modules/repository/create_test.go @@ -173,9 +173,6 @@ func TestGetDirectorySize(t *testing.T) { assert.NoError(t, unittest.PrepareTestDatabase()) repo, err := repo_model.GetRepositoryByID(db.DefaultContext, 1) assert.NoError(t, err) - UpdateRepoSize(db.DefaultContext, repo) - repo, err = repo_model.GetRepositoryByID(db.DefaultContext, 1) - assert.NoError(t, err) size, err := getDirectorySize(repo.RepoPath()) assert.NoError(t, err) From a40a073d690fcf2a0a1e8536dee16c02841df15a Mon Sep 17 00:00:00 2001 From: a1012112796 <1012112796@qq.com> Date: Wed, 6 Sep 2023 09:36:09 +0000 Subject: [PATCH 13/26] fix []string generation Signed-off-by: a1012112796 <1012112796@qq.com> --- models/unittest/fixtures.go | 6 ++++++ models/unittest/fixtures_test.go | 3 +++ 2 files changed, 9 insertions(+) diff --git a/models/unittest/fixtures.go b/models/unittest/fixtures.go index 4d826146dee18..2e83236eedd28 100644 --- a/models/unittest/fixtures.go +++ b/models/unittest/fixtures.go @@ -207,6 +207,12 @@ func defaultFixtureDumperVerbs(tableName string, actualValue reflect.Value, type continue } + if isText { + if _, ok := fieldValue.([]string); ok { + isJSON = true + } + } + if !isText { if strValue, ok := fieldValue.(string); ok { if len(strValue) == 0 { diff --git a/models/unittest/fixtures_test.go b/models/unittest/fixtures_test.go index 44b9237544952..8ae103ba76bf7 100644 --- a/models/unittest/fixtures_test.go +++ b/models/unittest/fixtures_test.go @@ -57,6 +57,7 @@ func TestDefaultFixtureDumper(t *testing.T) { NumStr string JJ *testSubConversion FF []byte + WW []string `xorm:"TEXT"` } buffer := bytes.NewBuffer(nil) @@ -78,6 +79,7 @@ func TestDefaultFixtureDumper(t *testing.T) { }, NumStr: "1234123412341234123412341234123412341234", FF: []byte("hello world"), + WW: []string{"test1", "test2"}, }, buffer) assert.NoError(t, err) @@ -97,6 +99,7 @@ func TestDefaultFixtureDumper(t *testing.T) { num_str: '1234123412341234123412341234123412341234' jj: testSubConversion ff: 0x68656c6c6f20776f726c64 + ww: '["test1","test2"]' `, buffer.String()) From 265acf9a2d0045be147d26a455f82e9863118ddb Mon Sep 17 00:00:00 2001 From: a1012112796 <1012112796@qq.com> Date: Thu, 7 Sep 2023 08:20:38 +0000 Subject: [PATCH 14/26] try fix ActionTask generation Signed-off-by: a1012112796 <1012112796@qq.com> --- models/actions/task.go | 43 +++++++++++++++++++++++++++++ models/actions/task_test.go | 55 +++++++++++++++++++++++++++++++++++++ 2 files changed, 98 insertions(+) create mode 100644 models/actions/task_test.go diff --git a/models/actions/task.go b/models/actions/task.go index 69f52cf0846cf..12d53a806bd95 100644 --- a/models/actions/task.go +++ b/models/actions/task.go @@ -7,6 +7,7 @@ import ( "context" "crypto/subtle" "fmt" + "io" "time" auth_model "code.gitea.io/gitea/models/auth" @@ -57,6 +58,48 @@ type ActionTask struct { Updated timeutil.TimeStamp `xorm:"updated index"` } +func (task *ActionTask) FixtureDumper(fd io.Writer) error { + fmt.Fprintf(fd, "-\n") + fmt.Fprintf(fd, " id: %d\n", task.ID) + fmt.Fprintf(fd, " job_id: %d\n", task.JobID) + fmt.Fprintf(fd, " attempt: %d\n", task.Attempt) + fmt.Fprintf(fd, " runner_id: %d\n", task.RunnerID) + fmt.Fprintf(fd, " status: %d\n", task.Status) + fmt.Fprintf(fd, " started: %d\n", task.Started) + fmt.Fprintf(fd, " stopped: %d\n", task.Stopped) + fmt.Fprintf(fd, " repo_id: %d\n", task.RepoID) + fmt.Fprintf(fd, " owner_id: %d\n", task.OwnerID) + fmt.Fprintf(fd, " commit_sha: %s\n", task.CommitSHA) + fmt.Fprintf(fd, " is_fork_pull_request: %v\n", task.IsForkPullRequest) + fmt.Fprintf(fd, " token_hash: %s\n", task.TokenHash) + fmt.Fprintf(fd, " token_salt: %s\n", task.TokenSalt) + fmt.Fprintf(fd, " token_last_eight: %s\n", task.TokenLastEight) + fmt.Fprintf(fd, " log_filename: %s\n", task.LogFilename) + fmt.Fprintf(fd, " log_in_storage: %v\n", task.LogInStorage) + fmt.Fprintf(fd, " log_length: %d\n", task.LogLength) + fmt.Fprintf(fd, " log_size: %d\n", task.LogSize) + + data, err := task.LogIndexes.ToDB() + if err != nil { + return err + } + if len(data) > 0 { + fmt.Fprintf(fd, " log_indexes: 0x") + + for _, v := range data { + fmt.Fprintf(fd, "%02x", v) + } + fmt.Fprintf(fd, "\n") + } + + fmt.Fprintf(fd, " log_expired: %v\n", task.LogExpired) + fmt.Fprintf(fd, " created: %d\n", task.Created) + fmt.Fprintf(fd, " updated: %d\n", task.Updated) + fmt.Fprintf(fd, "\n") + + return nil +} + var successfulTokenTaskCache *lru.Cache[string, any] func init() { diff --git a/models/actions/task_test.go b/models/actions/task_test.go new file mode 100644 index 0000000000000..5d2780a62f85d --- /dev/null +++ b/models/actions/task_test.go @@ -0,0 +1,55 @@ +// Copyright 2023 The Gitea Authors. All rights reserved. +// SPDX-License-Identifier: MIT + +package actions + +import ( + "strings" + "testing" + + "github.com/stretchr/testify/assert" +) + +func TestActionTask_FixtureDumper(t *testing.T) { + task := &ActionTask{ + Started: 12, + Stopped: 12, + LogInStorage: true, + LogIndexes: LogIndexes([]int64{1, 2, 3}), + CommitSHA: "aaaaaa", + TokenSalt: "123", + TokenHash: "123", + TokenLastEight: "123", + LogFilename: "123", + } + + result := strings.Builder{} + err := task.FixtureDumper(&result) + + assert.NoError(t, err) + assert.EqualValues(t, `- + id: 0 + job_id: 0 + attempt: 0 + runner_id: 0 + status: 0 + started: 12 + stopped: 12 + repo_id: 0 + owner_id: 0 + commit_sha: aaaaaa + is_fork_pull_request: false + token_hash: 123 + token_salt: 123 + token_last_eight: 123 + log_filename: 123 + log_in_storage: true + log_length: 0 + log_size: 0 + log_indexes: 0x020406 + log_expired: false + created: 0 + updated: 0 + +`, result.String()) +} From 8a7ae774aca1aaee08b184d810e3b65c9cddfe86 Mon Sep 17 00:00:00 2001 From: a1012112796 <1012112796@qq.com> Date: Thu, 7 Sep 2023 09:28:16 +0000 Subject: [PATCH 15/26] add ci check for test-dev Signed-off-by: a1012112796 <1012112796@qq.com> --- .github/workflows/pull-compliance.yml | 12 ++++++++++++ Makefile | 9 ++++++++- contrib/dev/dev.go | 16 +++++++++++++++- 3 files changed, 35 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pull-compliance.yml b/.github/workflows/pull-compliance.yml index 45dd77fd929bf..3989d40ad6d6b 100644 --- a/.github/workflows/pull-compliance.yml +++ b/.github/workflows/pull-compliance.yml @@ -164,3 +164,15 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v4 - run: make lint-actions + + test-dev-check: + if: needs.files-changed.outputs.backend == 'true' + needs: files-changed + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-go@v4 + with: + go-version: "~1.21" + check-latest: true + - run: make test-dev-ci-check diff --git a/Makefile b/Makefile index a4ff2f47d9cc9..b6204ddbe7630 100644 --- a/Makefile +++ b/Makefile @@ -519,7 +519,14 @@ generate-ini-dev: .PHONY: test-dev test-dev: generate-ini-dev - GITEA_ROOT="$(CURDIR)" $(GO) run -tags 'sqlite sqlite_unlock_notify' contrib/dev/dev.go || true + GITEA_ROOT="$(CURDIR)" $(GO) run -tags 'sqlite sqlite_unlock_notify' contrib/dev/dev.go + +.PHONY: test-dev-ci +test-dev-ci: generate-ini-dev + GITEA_ROOT="$(CURDIR)" $(GO) run -tags 'sqlite sqlite_unlock_notify' contrib/dev/dev.go web --ci + +.PHONY: test-dev-ci-check +test-dev-ci-check: test-dev-ci test-check .PHONY: test-sqlite test-sqlite: integrations.sqlite.test generate-ini-sqlite diff --git a/contrib/dev/dev.go b/contrib/dev/dev.go index 2c40c27c9ebe5..a672c24d28f39 100644 --- a/contrib/dev/dev.go +++ b/contrib/dev/dev.go @@ -11,6 +11,7 @@ import ( "path" "path/filepath" "strings" + "time" "code.gitea.io/gitea/cmd" _ "code.gitea.io/gitea/models" @@ -36,6 +37,10 @@ func main() { for _, command := range app.Commands { if command.Name == app.DefaultCommand { command.Action = devEntry + command.Flags = append(command.Flags, &cli.BoolFlag{ + Name: "ci", + Usage: "will auto quit in 10 secodes after dev service, wich is used in ci check", + }) break } } @@ -43,7 +48,7 @@ func main() { _ = cmd.RunMainApp(app, os.Args...) } -func devEntry(_ *cli.Context) error { +func devEntry(ctx *cli.Context) error { pwd := os.Getenv("GITEA_ROOT") if len(pwd) == 0 { panic(pwd) @@ -58,6 +63,15 @@ func devEntry(_ *cli.Context) error { initDev(pwd) + if ctx.Bool("ci") { + log.Info("ci: will auto stop in 10 seconds") + go func() { + time.Sleep(10 * time.Second) + log.Info("ci: will shutdown soon") + graceful.GetManager().DoGracefulShutdown() + }() + } + // Set up Chi routes webRoutes := routers.NormalRoutes() err := runHTTP("tcp", ":3000", "Web", webRoutes, setting.UseProxyProtocol) From 147da5f9b101fa624ca00d0eec26a80d8789fdea Mon Sep 17 00:00:00 2001 From: a1012112796 <1012112796@qq.com> Date: Fri, 8 Sep 2023 01:07:27 +0000 Subject: [PATCH 16/26] fix build Signed-off-by: a1012112796 <1012112796@qq.com> --- contrib/dev/dev.go | 8 ++++---- models/unittest/fixtures.go | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/contrib/dev/dev.go b/contrib/dev/dev.go index a672c24d28f39..7012920cf4ed6 100644 --- a/contrib/dev/dev.go +++ b/contrib/dev/dev.go @@ -234,11 +234,11 @@ func fixGitReops() { return listSubDir(dir, func(dir, repoName string) error { fullName := path.Join(userName, repoName) - if !util.SliceContains(neededReops, fullName) { + if !util.SliceContainsString(neededReops, fullName) { return util.RemoveAll(dir) } - if util.SliceContains(reposNotneededHooks, fullName) { + if util.SliceContainsString(reposNotneededHooks, fullName) { return util.RemoveAll(path.Join(dir, "hooks")) } @@ -326,11 +326,11 @@ func removeNotNeededFixtures(pathToGiteaRoot string) { return nil } - if util.SliceContains(nootNeededFixtures, fileName) { + if util.SliceContainsString(nootNeededFixtures, fileName) { return os.Remove(pth) } - if util.SliceContains(keptFiles, fileName) { + if util.SliceContainsString(keptFiles, fileName) { return nil } diff --git a/models/unittest/fixtures.go b/models/unittest/fixtures.go index 2e83236eedd28..ead52d50f9759 100644 --- a/models/unittest/fixtures.go +++ b/models/unittest/fixtures.go @@ -458,7 +458,7 @@ func (l xormTagList) GetFieldName(defaultName string) string { } preTag = strings.ToUpper(tag.name) - if util.SliceContains(reservedNames, strings.ToUpper(tag.name)) { + if util.SliceContainsString(reservedNames, strings.ToUpper(tag.name)) { continue } From 507b75a490ba626bb469a603f24678800fd62680 Mon Sep 17 00:00:00 2001 From: a1012112796 <1012112796@qq.com> Date: Sat, 9 Sep 2023 14:07:00 +0000 Subject: [PATCH 17/26] always disable git hook Signed-off-by: a1012112796 <1012112796@qq.com> --- tests/dev.ini.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/dev.ini.tmpl b/tests/dev.ini.tmpl index 9484ef5208932..457be373499fb 100644 --- a/tests/dev.ini.tmpl +++ b/tests/dev.ini.tmpl @@ -89,7 +89,7 @@ logger.xorm.MODE = file LEVEL = Debug [security] -DISABLE_GIT_HOOKS = false +DISABLE_GIT_HOOKS = true INSTALL_LOCK = true SECRET_KEY = 9pCviYTWSb INTERNAL_TOKEN = eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYmYiOjE0OTI3OTU5ODN9.OQkH5UmzID2XBdwQ9TAI6Jj2t1X-wElVTjbE7aoN4I8 From 56dd204360876b810ff0fbb92960a2814ccdc0ae Mon Sep 17 00:00:00 2001 From: a1012112796 <1012112796@qq.com> Date: Sat, 9 Sep 2023 15:20:58 +0000 Subject: [PATCH 18/26] more security update Signed-off-by: a1012112796 <1012112796@qq.com> --- contrib/dev/dev.go | 63 +++++++++++++++++++++++++++++++++++++++++++++- tests/dev.ini.tmpl | 6 ----- 2 files changed, 62 insertions(+), 7 deletions(-) diff --git a/contrib/dev/dev.go b/contrib/dev/dev.go index 7012920cf4ed6..f65118080823a 100644 --- a/contrib/dev/dev.go +++ b/contrib/dev/dev.go @@ -17,6 +17,7 @@ import ( _ "code.gitea.io/gitea/models" "code.gitea.io/gitea/models/db" "code.gitea.io/gitea/models/unittest" + user_model "code.gitea.io/gitea/models/user" "code.gitea.io/gitea/modules/graceful" "code.gitea.io/gitea/modules/log" "code.gitea.io/gitea/modules/setting" @@ -88,6 +89,7 @@ func devEntry(ctx *cli.Context) error { if err != nil { log.Fatal("common.InitDBEngine: %v", err) } + fixUsersTestData() err = unittest.DumpAllFixtures(filepath.Join(pwd, "models", "fixtures")) cancel() @@ -280,11 +282,11 @@ func initDev(pathToGiteaRoot string) { }); err != nil { log.Fatal("CreateTestEngine: %+v", err) } - db.SetLogSQL(db.DefaultContext, true) if err := unittest.LoadFixtures(); err != nil { log.Fatal("LoadFixtures: %v", err) } + initDevUsersPasswds() if err := setting.PrepareAppDataPath(); err != nil { log.Fatal("Can not prepare APP_DATA_PATH: %v", err) @@ -295,6 +297,65 @@ func initDev(pathToGiteaRoot string) { } } +func initDevUsersPasswds() { + devUserPasswd := os.Getenv("GITEA_DEV_PASSWD") + if len(devUserPasswd) == 0 { + passwd, err := util.CryptoRandomString(20) + if err != nil { + log.Fatal("util.CryptoRandomString: %v", err) + } + + devUserPasswd = passwd + log.Info("all test users passwd: %v", devUserPasswd) + } + + err := db.Iterate(db.DefaultContext, nil, func(ctx context.Context, u *user_model.User) error { + if u.IsOrganization() { + return nil + } + + err := u.SetPassword(devUserPasswd) + if err != nil { + return err + } + + return user_model.UpdateUserCols(ctx, u, "passwd", "passwd_hash_algo", "salt") + }) + + if err != nil { + log.Fatal("initDevUsersPasswds: %v", err) + } +} + +func fixUsersTestData() { + err := db.Iterate(db.DefaultContext, nil, func(ctx context.Context, u *user_model.User) error { + u.Passwd = "ZogKvWdyEx:password" + u.Salt = "ZogKvWdyEx" + u.PasswdHashAlgo = "dummy" + u.Language = "" + u.UpdatedUnix = 0 + u.CreatedUnix = 0 + u.LastLoginUnix = 0 + + if u.ID == 32 { + u.Passwd = "ZogKvWdyEx:notpassword" + } + + cols := []string{"passwd", "passwd_hash_algo", "salt", "language", "last_login_unix", "created_unix", "updated_unix"} + + if err := user_model.ValidateUser(u, cols...); err != nil { + return err + } + + _, err := db.GetEngine(ctx).ID(u.ID).Cols(cols...).NoAutoTime().Update(u) + return err + }) + + if err != nil { + log.Fatal("fixUsersTestData: %v", err) + } +} + func runHTTP(network, listenAddr, name string, m http.Handler, useProxyProtocol bool) error { return graceful.HTTPListenAndServe(network, listenAddr, name, m, useProxyProtocol) } diff --git a/tests/dev.ini.tmpl b/tests/dev.ini.tmpl index 457be373499fb..81618e0197407 100644 --- a/tests/dev.ini.tmpl +++ b/tests/dev.ini.tmpl @@ -48,7 +48,6 @@ LFS_JWT_SECRET = Tv_MjmZuHqpIY6GFl12ebgkRAMt4RlWt0v4EHKSXO0w APP_DATA_PATH = {{GITEA_ROOT}}/tests/dev/data ENABLE_GZIP = true BUILTIN_SSH_SERVER_USER = git -SSH_TRUSTED_USER_CA_KEYS = ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCb4DC1dMFnJ6pXWo7GMxTchtzmJHYzfN6sZ9FAPFR4ijMLfGki+olvOMO5Fql1/yGnGfbELQa1S6y4shSvj/5K+zUFScmEXYf3Gcr87RqilLkyk16RS+cHNB1u87xTHbETaa3nyCJeGQRpd4IQ4NKob745mwDZ7jQBH8AZEng50Oh8y8fi8skBBBzaYp1ilgvzG740L7uex6fHV62myq0SXeCa+oJUjq326FU8y+Vsa32H8A3e7tOgXZPdt2TVNltx2S9H2WO8RMi7LfaSwARNfy1zu+bfR50r6ef8Yx5YKCMz4wWb1SHU1GS800mjOjlInLQORYRNMlSwR1+vLlVDciOqFapDSbj+YOVOawR0R1aqlSKpZkt33DuOBPx9qe6CVnIi7Z+Px/KqM+OLCzlLY/RS+LbxQpDWcfTVRiP+S5qRTcE3M3UioN/e0BE/1+MpX90IGpvVkA63ILYbKEa4bM3ASL7ChTCr6xN5XT+GpVJveFKK1cfNx9ExHI4rzYE= [attachment] PATH = {{GITEA_ROOT}}/tests/dev/data/attachments @@ -91,11 +90,6 @@ LEVEL = Debug [security] DISABLE_GIT_HOOKS = true INSTALL_LOCK = true -SECRET_KEY = 9pCviYTWSb -INTERNAL_TOKEN = eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYmYiOjE0OTI3OTU5ODN9.OQkH5UmzID2XBdwQ9TAI6Jj2t1X-wElVTjbE7aoN4I8 - -[oauth2] -JWT_SECRET = KZb_QLUd4fYVyxetjxC4eZkrBgWM2SndOOWDNtgUUko [lfs] PATH = {{GITEA_ROOT}}/tests/gitea-lfs-meta From 7e1a1bf57b5268aec79004dd7a1dd27fe814d54d Mon Sep 17 00:00:00 2001 From: a1012112796 <1012112796@qq.com> Date: Sat, 9 Sep 2023 15:32:38 +0000 Subject: [PATCH 19/26] make fmt Signed-off-by: a1012112796 <1012112796@qq.com> --- contrib/dev/dev.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/contrib/dev/dev.go b/contrib/dev/dev.go index f65118080823a..d190196f398fe 100644 --- a/contrib/dev/dev.go +++ b/contrib/dev/dev.go @@ -14,7 +14,6 @@ import ( "time" "code.gitea.io/gitea/cmd" - _ "code.gitea.io/gitea/models" "code.gitea.io/gitea/models/db" "code.gitea.io/gitea/models/unittest" user_model "code.gitea.io/gitea/models/user" @@ -26,6 +25,8 @@ import ( "code.gitea.io/gitea/routers/common" repo_service "code.gitea.io/gitea/services/repository" + _ "code.gitea.io/gitea/models" + "github.com/urfave/cli/v2" "gopkg.in/yaml.v3" ) @@ -321,7 +322,6 @@ func initDevUsersPasswds() { return user_model.UpdateUserCols(ctx, u, "passwd", "passwd_hash_algo", "salt") }) - if err != nil { log.Fatal("initDevUsersPasswds: %v", err) } @@ -350,7 +350,6 @@ func fixUsersTestData() { _, err := db.GetEngine(ctx).ID(u.ID).Cols(cols...).NoAutoTime().Update(u) return err }) - if err != nil { log.Fatal("fixUsersTestData: %v", err) } From 884bb85ce72634cec324f838093d4ff429c82917 Mon Sep 17 00:00:00 2001 From: a1012112796 <1012112796@qq.com> Date: Sat, 9 Sep 2023 15:58:00 +0000 Subject: [PATCH 20/26] wonder the changes Signed-off-by: a1012112796 <1012112796@qq.com> --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index b6204ddbe7630..f3c38737bf4a2 100644 --- a/Makefile +++ b/Makefile @@ -460,6 +460,8 @@ test-check: if [ -n "$$diff" ]; then \ echo "make test-backend has changed files in the source tree:"; \ echo "$${diff}"; \ + diff_full=$$(git diff) ; \ + echo "$${diff_full}"; \ echo "You should change the tests to create these files in a temporary directory."; \ echo "Do not simply add these files to .gitignore"; \ exit 1; \ From 0e1f330e65c1369c3bd99e54c93575e36456db06 Mon Sep 17 00:00:00 2001 From: a1012112796 <1012112796@qq.com> Date: Sat, 9 Sep 2023 16:32:10 +0000 Subject: [PATCH 21/26] Revert "wonder the changes" This reverts commit 884bb85ce72634cec324f838093d4ff429c82917. --- Makefile | 2 -- 1 file changed, 2 deletions(-) diff --git a/Makefile b/Makefile index 43d11cfec88f0..5ccc08b82a15e 100644 --- a/Makefile +++ b/Makefile @@ -465,8 +465,6 @@ test-check: if [ -n "$$diff" ]; then \ echo "make test-backend has changed files in the source tree:"; \ echo "$${diff}"; \ - diff_full=$$(git diff) ; \ - echo "$${diff_full}"; \ echo "You should change the tests to create these files in a temporary directory."; \ echo "Do not simply add these files to .gitignore"; \ exit 1; \ From 7b05c25862915ebf660776347753dd4cc4e96ab0 Mon Sep 17 00:00:00 2001 From: a1012112796 <1012112796@qq.com> Date: Sat, 9 Sep 2023 16:32:24 +0000 Subject: [PATCH 22/26] fix ci Signed-off-by: a1012112796 <1012112796@qq.com> --- models/fixtures/action_run.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/models/fixtures/action_run.yml b/models/fixtures/action_run.yml index 1bccccb184c08..f807373295fc9 100644 --- a/models/fixtures/action_run.yml +++ b/models/fixtures/action_run.yml @@ -6,6 +6,7 @@ workflow_id: artifact.yaml index: 187 trigger_user_id: 1 + schedule_id: 0 ref: refs/heads/master commit_sha: c2d72f548424103f01ee1dc02889c1e2bff816b0 is_fork_pull_request: false From ecf2a74018d50e60710a5fdefe84283bfa067713 Mon Sep 17 00:00:00 2001 From: a1012112796 <1012112796@qq.com> Date: Sun, 10 Sep 2023 04:41:52 +0000 Subject: [PATCH 23/26] simplify extern dunmper interface Signed-off-by: a1012112796 <1012112796@qq.com> --- models/actions/task.go | 47 ++++++++------------------- models/actions/task_test.go | 55 -------------------------------- models/db/engine.go | 14 ++++++-- models/git/lfs.go | 15 +++------ models/unittest/fixtures.go | 45 +++++++++++++++++++++----- models/unittest/fixtures_test.go | 34 ++++++++++++++++++++ 6 files changed, 101 insertions(+), 109 deletions(-) delete mode 100644 models/actions/task_test.go diff --git a/models/actions/task.go b/models/actions/task.go index 12d53a806bd95..eeb5e499f21d9 100644 --- a/models/actions/task.go +++ b/models/actions/task.go @@ -7,7 +7,7 @@ import ( "context" "crypto/subtle" "fmt" - "io" + "strings" "time" auth_model "code.gitea.io/gitea/models/auth" @@ -58,46 +58,27 @@ type ActionTask struct { Updated timeutil.TimeStamp `xorm:"updated index"` } -func (task *ActionTask) FixtureDumper(fd io.Writer) error { - fmt.Fprintf(fd, "-\n") - fmt.Fprintf(fd, " id: %d\n", task.ID) - fmt.Fprintf(fd, " job_id: %d\n", task.JobID) - fmt.Fprintf(fd, " attempt: %d\n", task.Attempt) - fmt.Fprintf(fd, " runner_id: %d\n", task.RunnerID) - fmt.Fprintf(fd, " status: %d\n", task.Status) - fmt.Fprintf(fd, " started: %d\n", task.Started) - fmt.Fprintf(fd, " stopped: %d\n", task.Stopped) - fmt.Fprintf(fd, " repo_id: %d\n", task.RepoID) - fmt.Fprintf(fd, " owner_id: %d\n", task.OwnerID) - fmt.Fprintf(fd, " commit_sha: %s\n", task.CommitSHA) - fmt.Fprintf(fd, " is_fork_pull_request: %v\n", task.IsForkPullRequest) - fmt.Fprintf(fd, " token_hash: %s\n", task.TokenHash) - fmt.Fprintf(fd, " token_salt: %s\n", task.TokenSalt) - fmt.Fprintf(fd, " token_last_eight: %s\n", task.TokenLastEight) - fmt.Fprintf(fd, " log_filename: %s\n", task.LogFilename) - fmt.Fprintf(fd, " log_in_storage: %v\n", task.LogInStorage) - fmt.Fprintf(fd, " log_length: %d\n", task.LogLength) - fmt.Fprintf(fd, " log_size: %d\n", task.LogSize) +func (task *ActionTask) FixtureFieldDumper(fieldName string) ([]byte, error) { + if fieldName != "LogIndexes" { + return nil, db.ErrFixtureFieldDumperContinue + } data, err := task.LogIndexes.ToDB() if err != nil { - return err + return nil, err } - if len(data) > 0 { - fmt.Fprintf(fd, " log_indexes: 0x") - for _, v := range data { - fmt.Fprintf(fd, "%02x", v) - } - fmt.Fprintf(fd, "\n") + if len(data) == 0 { + return nil, db.ErrFixtureFieldDumperSkip } - fmt.Fprintf(fd, " log_expired: %v\n", task.LogExpired) - fmt.Fprintf(fd, " created: %d\n", task.Created) - fmt.Fprintf(fd, " updated: %d\n", task.Updated) - fmt.Fprintf(fd, "\n") + builder := strings.Builder{} + fmt.Fprintf(&builder, "0x") + for _, v := range data { + fmt.Fprintf(&builder, "%02x", v) + } - return nil + return []byte(builder.String()), nil } var successfulTokenTaskCache *lru.Cache[string, any] diff --git a/models/actions/task_test.go b/models/actions/task_test.go deleted file mode 100644 index 5d2780a62f85d..0000000000000 --- a/models/actions/task_test.go +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright 2023 The Gitea Authors. All rights reserved. -// SPDX-License-Identifier: MIT - -package actions - -import ( - "strings" - "testing" - - "github.com/stretchr/testify/assert" -) - -func TestActionTask_FixtureDumper(t *testing.T) { - task := &ActionTask{ - Started: 12, - Stopped: 12, - LogInStorage: true, - LogIndexes: LogIndexes([]int64{1, 2, 3}), - CommitSHA: "aaaaaa", - TokenSalt: "123", - TokenHash: "123", - TokenLastEight: "123", - LogFilename: "123", - } - - result := strings.Builder{} - err := task.FixtureDumper(&result) - - assert.NoError(t, err) - assert.EqualValues(t, `- - id: 0 - job_id: 0 - attempt: 0 - runner_id: 0 - status: 0 - started: 12 - stopped: 12 - repo_id: 0 - owner_id: 0 - commit_sha: aaaaaa - is_fork_pull_request: false - token_hash: 123 - token_salt: 123 - token_last_eight: 123 - log_filename: 123 - log_in_storage: true - log_length: 0 - log_size: 0 - log_indexes: 0x020406 - log_expired: false - created: 0 - updated: 0 - -`, result.String()) -} diff --git a/models/db/engine.go b/models/db/engine.go index ea17cdbb02245..eac56f8cb7cd8 100755 --- a/models/db/engine.go +++ b/models/db/engine.go @@ -7,6 +7,7 @@ package db import ( "context" "database/sql" + "errors" "fmt" "io" "reflect" @@ -316,7 +317,14 @@ func AllTablesForEach(hanle func(info *schemas.Table, bean any) error) error { return nil } -// FixtureDumper custom interface to generate a fixture file -type FixtureDumper interface { - FixtureDumper(fd io.Writer) error +type FixtureFieldDumperResult int64 + +// FixtureFieldDumper custom interface to generate a fixture file +// return `ErrFixtureFieldDumperContinue` or `ErrFixtureFieldDumperSkip` for special results +type FixtureFieldDumper interface { + FixtureFieldDumper(fieldName string) ([]byte, error) } + +var ErrFixtureFieldDumperContinue = errors.New("should continue handle with default dumper") + +var ErrFixtureFieldDumperSkip = errors.New("should skip this field") diff --git a/models/git/lfs.go b/models/git/lfs.go index 48babd5698752..dcf53836d8cef 100644 --- a/models/git/lfs.go +++ b/models/git/lfs.go @@ -6,7 +6,6 @@ package git import ( "context" "fmt" - "io" "code.gitea.io/gitea/models/db" "code.gitea.io/gitea/models/perm" @@ -118,16 +117,12 @@ type LFSMetaObject struct { UpdatedUnix timeutil.TimeStamp `xorm:"INDEX updated"` } -func (l *LFSMetaObject) FixtureDumper(fd io.Writer) error { - fmt.Fprintf(fd, "-\n") - fmt.Fprintf(fd, " id: %d\n", l.ID) - fmt.Fprintf(fd, " oid: %s\n", l.Pointer.Oid) - fmt.Fprintf(fd, " size: %d\n", l.Pointer.Size) - fmt.Fprintf(fd, " repository_id: %d\n", l.RepositoryID) - fmt.Fprintf(fd, " created_unix: %d\n", l.CreatedUnix) - fmt.Fprintf(fd, "\n") +func (task *LFSMetaObject) FixtureFieldDumper(fieldName string) ([]byte, error) { + if fieldName == "UpdatedUnix" { + return nil, db.ErrFixtureFieldDumperSkip + } - return nil + return nil, db.ErrFixtureFieldDumperContinue } func init() { diff --git a/models/unittest/fixtures.go b/models/unittest/fixtures.go index ead52d50f9759..a9d64a0b129cf 100644 --- a/models/unittest/fixtures.go +++ b/models/unittest/fixtures.go @@ -103,10 +103,6 @@ func DumpAllFixtures(dir string) error { } return db.GetEngine(db.DefaultContext).Iterate(bean, func(idx int, data interface{}) error { - if dumper, ok := data.(db.FixtureDumper); ok { - return dumper.FixtureDumper(fd) - } - return DefaultFixtureDumper(data, fd) }) }) @@ -181,11 +177,12 @@ func isFieldPrivate(field reflect.StructField) bool { return field.PkgPath != "" } -func defaultFixtureDumperVerbs(tableName string, actualValue reflect.Value, typeOfactualValue reflect.Type, fd io.Writer, mapper names.Mapper) error { +func defaultFixtureDumperVerbs(tableName string, actualValue reflect.Value, typeOfactualValue reflect.Type, fd io.Writer, mapper names.Mapper, fieldDumper db.FixtureFieldDumper) error { for i := 0; i < actualValue.NumField(); i++ { field := actualValue.Field(i) - fieldName := mapper.Obj2Table(actualValue.Type().Field(i).Name) + fieldNameReal := actualValue.Type().Field(i).Name + fieldName := mapper.Obj2Table(fieldNameReal) fieldType := typeOfactualValue.Field(i) if isFieldPrivate(fieldType) { continue @@ -199,6 +196,36 @@ func defaultFixtureDumperVerbs(tableName string, actualValue reflect.Value, type continue } + if fieldDumper != nil { + value, err := fieldDumper.FixtureFieldDumper(fieldNameReal) + if err == nil { + _, err = fd.Write([]byte(fmt.Sprintf(" %s: ", xormTags.GetFieldName(fieldName)))) + if err != nil { + return err + } + + _, err = fd.Write(value) + if err != nil { + return err + } + + _, err = fd.Write([]byte("\n")) + if err != nil { + return err + } + + continue + } + + if err == db.ErrFixtureFieldDumperSkip { + continue + } + + if err != db.ErrFixtureFieldDumperContinue { + return err + } + } + fieldValue := field.Interface() isText := xormTags.HasTag("TEXT") isJSON := xormTags.HasTag("JSON") @@ -231,7 +258,7 @@ func defaultFixtureDumperVerbs(tableName string, actualValue reflect.Value, type } typeOfactualValue2 := actualValue2.Type() - err = defaultFixtureDumperVerbs(tableName, actualValue2, typeOfactualValue2, fd, mapper) + err = defaultFixtureDumperVerbs(tableName, actualValue2, typeOfactualValue2, fd, mapper, fieldDumper) if err != nil { return err } @@ -343,6 +370,8 @@ func DefaultFixtureDumper(data any, fd io.Writer) error { return errors.New("expected a pointer") } + fieldDumper, _ := data.(db.FixtureFieldDumper) + actualValue := reflectedValue.Elem() typeOfactualValue := actualValue.Type() mapper := names.GonicMapper{} @@ -352,7 +381,7 @@ func DefaultFixtureDumper(data any, fd io.Writer) error { return err } - err = defaultFixtureDumperVerbs(typeOfactualValue.Name(), actualValue, typeOfactualValue, fd, mapper) + err = defaultFixtureDumperVerbs(typeOfactualValue.Name(), actualValue, typeOfactualValue, fd, mapper, fieldDumper) if err != nil { return err } diff --git a/models/unittest/fixtures_test.go b/models/unittest/fixtures_test.go index 8ae103ba76bf7..4a87b0dad180c 100644 --- a/models/unittest/fixtures_test.go +++ b/models/unittest/fixtures_test.go @@ -7,6 +7,7 @@ import ( "bytes" "testing" + "code.gitea.io/gitea/models/db" "github.com/stretchr/testify/assert" "gopkg.in/yaml.v3" ) @@ -27,6 +28,24 @@ func (c *testSubConversion) ToDB() ([]byte, error) { return []byte("testSubConversion"), nil } +type TestModule2 struct { + A int64 + B int64 + C int64 +} + +func (m *TestModule2) FixtureFieldDumper(fieldName string) ([]byte, error) { + if fieldName == "A" { + return nil, db.ErrFixtureFieldDumperContinue + } + + if fieldName == "B" { + return nil, db.ErrFixtureFieldDumperSkip + } + + return []byte("hello world"), nil +} + func TestDefaultFixtureDumper(t *testing.T) { type TestModelSub struct { A int64 @@ -107,4 +126,19 @@ func TestDefaultFixtureDumper(t *testing.T) { err = yaml.Unmarshal(buffer.Bytes(), &result) assert.EqualValues(t, "hello \" ' gitea", result[0]["description"]) assert.NoError(t, err) + + m2 := &TestModule2{ + A: 12, + B: 34, + C: 17, + } + + buffer = bytes.NewBuffer(nil) + err = DefaultFixtureDumper(m2, buffer) + assert.NoError(t, err) + assert.EqualValues(t, `- + a: 12 + c: hello world + +`, buffer.String()) } From ca01f6afe4c7a2b37993e522254f67056a20f871 Mon Sep 17 00:00:00 2001 From: a1012112796 <1012112796@qq.com> Date: Sun, 10 Sep 2023 07:58:38 +0000 Subject: [PATCH 24/26] make fmt Signed-off-by: a1012112796 <1012112796@qq.com> --- models/unittest/fixtures_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/models/unittest/fixtures_test.go b/models/unittest/fixtures_test.go index 4a87b0dad180c..3c77dcedeb57d 100644 --- a/models/unittest/fixtures_test.go +++ b/models/unittest/fixtures_test.go @@ -8,6 +8,7 @@ import ( "testing" "code.gitea.io/gitea/models/db" + "github.com/stretchr/testify/assert" "gopkg.in/yaml.v3" ) From 19449e64cdd760dcf42c10defc950206aaab175b Mon Sep 17 00:00:00 2001 From: a1012112796 <1012112796@qq.com> Date: Thu, 14 Sep 2023 03:24:56 +0000 Subject: [PATCH 25/26] regenerate new data Signed-off-by: a1012112796 <1012112796@qq.com> --- contrib/dev/dev.go | 6 +++--- models/fixtures/review.yml | 6 ++++-- models/fixtures/system_setting.yml | 4 ++-- models/fixtures/user.yml | 2 +- .../{user3 => org3}/repo3.git/hooks/proc-receive.d/gitea | 0 .../{user3 => org3}/repo5.git/hooks/proc-receive.d/gitea | 0 6 files changed, 10 insertions(+), 8 deletions(-) rename tests/gitea-repositories-meta/{user3 => org3}/repo3.git/hooks/proc-receive.d/gitea (100%) rename tests/gitea-repositories-meta/{user3 => org3}/repo5.git/hooks/proc-receive.d/gitea (100%) diff --git a/contrib/dev/dev.go b/contrib/dev/dev.go index d190196f398fe..4ed7fc9d2ee56 100644 --- a/contrib/dev/dev.go +++ b/contrib/dev/dev.go @@ -196,9 +196,9 @@ func fixGitReops() { neededReops := []string{ "privated_org/private_repo_on_private_org.git", "privated_org/public_repo_on_private_org.git", - "user3/repo5.git", - "user3/repo3.git", - "user3/action_test.git", + "org3/repo5.git", + "org3/repo3.git", + "org3/action_test.git", "user13/repo11.git", "user27/template1.git", "user27/repo49.git", diff --git a/models/fixtures/review.yml b/models/fixtures/review.yml index e21d4a7729e4d..49a54667a2121 100644 --- a/models/fixtures/review.yml +++ b/models/fixtures/review.yml @@ -202,8 +202,10 @@ reviewer_team_id: 0 original_author_id: 0 issue_id: 11 - content: "singular review from org6 and final review for this pr" - updated_unix: 946684831 + content: 'singular review from org6 and final review for this pr' + official: false + stale: false + dismissed: false created_unix: 946684831 updated_unix: 946684831 diff --git a/models/fixtures/system_setting.yml b/models/fixtures/system_setting.yml index 1eae02327709f..01dbc5fcac55c 100644 --- a/models/fixtures/system_setting.yml +++ b/models/fixtures/system_setting.yml @@ -1,6 +1,6 @@ - id: 1 - setting_key: 'picture.disable_gravatar' + setting_key: picture.disable_gravatar setting_value: 'false' version: 1 created: 1653533198 @@ -8,7 +8,7 @@ - id: 2 - setting_key: 'picture.enable_federated_avatar' + setting_key: picture.enable_federated_avatar setting_value: 'false' version: 1 created: 1653533198 diff --git a/models/fixtures/user.yml b/models/fixtures/user.yml index 4ee034f6ba695..af97ba7579365 100644 --- a/models/fixtures/user.yml +++ b/models/fixtures/user.yml @@ -86,7 +86,7 @@ id: 3 lower_name: org3 name: org3 - full_name: ' <<<< >> >> > >> > >>> >> ' + full_name: <<<< >> >> > >> > >>> >> email: org3@example.com keep_email_private: false email_notifications_preference: onmention diff --git a/tests/gitea-repositories-meta/user3/repo3.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/org3/repo3.git/hooks/proc-receive.d/gitea similarity index 100% rename from tests/gitea-repositories-meta/user3/repo3.git/hooks/proc-receive.d/gitea rename to tests/gitea-repositories-meta/org3/repo3.git/hooks/proc-receive.d/gitea diff --git a/tests/gitea-repositories-meta/user3/repo5.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/org3/repo5.git/hooks/proc-receive.d/gitea similarity index 100% rename from tests/gitea-repositories-meta/user3/repo5.git/hooks/proc-receive.d/gitea rename to tests/gitea-repositories-meta/org3/repo5.git/hooks/proc-receive.d/gitea From 256c2ee872d497bfaf007efd84e96a5c60b1a1b9 Mon Sep 17 00:00:00 2001 From: a1012112796 <1012112796@qq.com> Date: Thu, 14 Sep 2023 03:31:16 +0000 Subject: [PATCH 26/26] remove `proc-receive.d` also Signed-off-by: a1012112796 <1012112796@qq.com> --- contrib/dev/dev.go | 1 + models/fixtures/user.yml | 2 +- .../private_repo_on_limited_org.git/hooks/proc-receive.d/gitea | 0 .../public_repo_on_limited_org.git/hooks/proc-receive.d/gitea | 0 .../org26/repo_external_tracker.git/hooks/proc-receive.d/gitea | 0 .../repo_external_tracker_alpha.git/hooks/proc-receive.d/gitea | 0 .../hooks/proc-receive.d/gitea | 0 .../org3/repo3.git/hooks/proc-receive.d/gitea | 0 .../org3/repo5.git/hooks/proc-receive.d/gitea | 0 .../private_repo_on_private_org.git/hooks/proc-receive.d/gitea | 0 .../public_repo_on_private_org.git/hooks/proc-receive.d/gitea | 0 .../user12/repo10.git/hooks/proc-receive.d/gitea | 0 .../user13/repo11.git/hooks/proc-receive.d/gitea | 0 .../user2/commits_search_test.git/hooks/proc-receive.d/gitea | 0 .../user2/commitsonpr.git/hooks/proc-receive.d/gitea | 0 .../user2/git_hooks_test.git/hooks/proc-receive.d/gitea | 0 .../user2/glob.git/hooks/proc-receive.d/gitea | 0 .../user2/lfs.git/hooks/proc-receive.d/gitea | 0 .../user2/readme-test.git/hooks/proc-receive.d/gitea | 0 .../user2/repo-release.git/hooks/proc-receive.d/gitea | 0 .../user2/repo1.git/hooks/proc-receive.d/gitea | 0 .../user2/repo15.git/hooks/proc-receive.d/gitea | 0 .../user2/repo16.git/hooks/proc-receive.d/gitea | 0 .../user2/repo2.git/hooks/proc-receive.d/gitea | 0 .../user2/repo20.git/hooks/proc-receive.d/gitea | 0 .../user2/utf8.git/hooks/proc-receive.d/gitea | 0 .../user27/repo49.git/hooks/proc-receive.d/gitea | 0 .../user27/template1.git/hooks/proc-receive.d/gitea | 0 .../user30/renderer.git/hooks/proc-receive.d/gitea | 0 .../user5/repo4.git/hooks/proc-receive.d/gitea | 0 30 files changed, 2 insertions(+), 1 deletion(-) delete mode 100755 tests/gitea-repositories-meta/limited_org/private_repo_on_limited_org.git/hooks/proc-receive.d/gitea delete mode 100755 tests/gitea-repositories-meta/limited_org/public_repo_on_limited_org.git/hooks/proc-receive.d/gitea delete mode 100755 tests/gitea-repositories-meta/org26/repo_external_tracker.git/hooks/proc-receive.d/gitea delete mode 100755 tests/gitea-repositories-meta/org26/repo_external_tracker_alpha.git/hooks/proc-receive.d/gitea delete mode 100755 tests/gitea-repositories-meta/org26/repo_external_tracker_numeric.git/hooks/proc-receive.d/gitea delete mode 100755 tests/gitea-repositories-meta/org3/repo3.git/hooks/proc-receive.d/gitea delete mode 100755 tests/gitea-repositories-meta/org3/repo5.git/hooks/proc-receive.d/gitea delete mode 100755 tests/gitea-repositories-meta/privated_org/private_repo_on_private_org.git/hooks/proc-receive.d/gitea delete mode 100755 tests/gitea-repositories-meta/privated_org/public_repo_on_private_org.git/hooks/proc-receive.d/gitea delete mode 100755 tests/gitea-repositories-meta/user12/repo10.git/hooks/proc-receive.d/gitea delete mode 100755 tests/gitea-repositories-meta/user13/repo11.git/hooks/proc-receive.d/gitea delete mode 100755 tests/gitea-repositories-meta/user2/commits_search_test.git/hooks/proc-receive.d/gitea delete mode 100755 tests/gitea-repositories-meta/user2/commitsonpr.git/hooks/proc-receive.d/gitea delete mode 100755 tests/gitea-repositories-meta/user2/git_hooks_test.git/hooks/proc-receive.d/gitea delete mode 100755 tests/gitea-repositories-meta/user2/glob.git/hooks/proc-receive.d/gitea delete mode 100755 tests/gitea-repositories-meta/user2/lfs.git/hooks/proc-receive.d/gitea delete mode 100755 tests/gitea-repositories-meta/user2/readme-test.git/hooks/proc-receive.d/gitea delete mode 100755 tests/gitea-repositories-meta/user2/repo-release.git/hooks/proc-receive.d/gitea delete mode 100755 tests/gitea-repositories-meta/user2/repo1.git/hooks/proc-receive.d/gitea delete mode 100755 tests/gitea-repositories-meta/user2/repo15.git/hooks/proc-receive.d/gitea delete mode 100755 tests/gitea-repositories-meta/user2/repo16.git/hooks/proc-receive.d/gitea delete mode 100755 tests/gitea-repositories-meta/user2/repo2.git/hooks/proc-receive.d/gitea delete mode 100755 tests/gitea-repositories-meta/user2/repo20.git/hooks/proc-receive.d/gitea delete mode 100755 tests/gitea-repositories-meta/user2/utf8.git/hooks/proc-receive.d/gitea delete mode 100755 tests/gitea-repositories-meta/user27/repo49.git/hooks/proc-receive.d/gitea delete mode 100755 tests/gitea-repositories-meta/user27/template1.git/hooks/proc-receive.d/gitea delete mode 100755 tests/gitea-repositories-meta/user30/renderer.git/hooks/proc-receive.d/gitea delete mode 100755 tests/gitea-repositories-meta/user5/repo4.git/hooks/proc-receive.d/gitea diff --git a/contrib/dev/dev.go b/contrib/dev/dev.go index 4ed7fc9d2ee56..eade33c39bda8 100644 --- a/contrib/dev/dev.go +++ b/contrib/dev/dev.go @@ -247,6 +247,7 @@ func fixGitReops() { // proc-receive is not needed in test code now _ = util.Remove(path.Join(dir, "hooks", "proc-receive")) + _ = util.RemoveAll(path.Join(dir, "hooks", "proc-receive.d")) for _, fix := range allFixs { err := os.MkdirAll(path.Join(dir, fix.Path), os.ModePerm) diff --git a/models/fixtures/user.yml b/models/fixtures/user.yml index af97ba7579365..e0dfa3186cb08 100644 --- a/models/fixtures/user.yml +++ b/models/fixtures/user.yml @@ -86,7 +86,7 @@ id: 3 lower_name: org3 name: org3 - full_name: <<<< >> >> > >> > >>> >> + full_name: <<<< >> >> > >> > >>> >> email: org3@example.com keep_email_private: false email_notifications_preference: onmention diff --git a/tests/gitea-repositories-meta/limited_org/private_repo_on_limited_org.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/limited_org/private_repo_on_limited_org.git/hooks/proc-receive.d/gitea deleted file mode 100755 index e69de29bb2d1d..0000000000000 diff --git a/tests/gitea-repositories-meta/limited_org/public_repo_on_limited_org.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/limited_org/public_repo_on_limited_org.git/hooks/proc-receive.d/gitea deleted file mode 100755 index e69de29bb2d1d..0000000000000 diff --git a/tests/gitea-repositories-meta/org26/repo_external_tracker.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/org26/repo_external_tracker.git/hooks/proc-receive.d/gitea deleted file mode 100755 index e69de29bb2d1d..0000000000000 diff --git a/tests/gitea-repositories-meta/org26/repo_external_tracker_alpha.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/org26/repo_external_tracker_alpha.git/hooks/proc-receive.d/gitea deleted file mode 100755 index e69de29bb2d1d..0000000000000 diff --git a/tests/gitea-repositories-meta/org26/repo_external_tracker_numeric.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/org26/repo_external_tracker_numeric.git/hooks/proc-receive.d/gitea deleted file mode 100755 index e69de29bb2d1d..0000000000000 diff --git a/tests/gitea-repositories-meta/org3/repo3.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/org3/repo3.git/hooks/proc-receive.d/gitea deleted file mode 100755 index e69de29bb2d1d..0000000000000 diff --git a/tests/gitea-repositories-meta/org3/repo5.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/org3/repo5.git/hooks/proc-receive.d/gitea deleted file mode 100755 index e69de29bb2d1d..0000000000000 diff --git a/tests/gitea-repositories-meta/privated_org/private_repo_on_private_org.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/privated_org/private_repo_on_private_org.git/hooks/proc-receive.d/gitea deleted file mode 100755 index e69de29bb2d1d..0000000000000 diff --git a/tests/gitea-repositories-meta/privated_org/public_repo_on_private_org.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/privated_org/public_repo_on_private_org.git/hooks/proc-receive.d/gitea deleted file mode 100755 index e69de29bb2d1d..0000000000000 diff --git a/tests/gitea-repositories-meta/user12/repo10.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/user12/repo10.git/hooks/proc-receive.d/gitea deleted file mode 100755 index e69de29bb2d1d..0000000000000 diff --git a/tests/gitea-repositories-meta/user13/repo11.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/user13/repo11.git/hooks/proc-receive.d/gitea deleted file mode 100755 index e69de29bb2d1d..0000000000000 diff --git a/tests/gitea-repositories-meta/user2/commits_search_test.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/user2/commits_search_test.git/hooks/proc-receive.d/gitea deleted file mode 100755 index e69de29bb2d1d..0000000000000 diff --git a/tests/gitea-repositories-meta/user2/commitsonpr.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/user2/commitsonpr.git/hooks/proc-receive.d/gitea deleted file mode 100755 index e69de29bb2d1d..0000000000000 diff --git a/tests/gitea-repositories-meta/user2/git_hooks_test.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/user2/git_hooks_test.git/hooks/proc-receive.d/gitea deleted file mode 100755 index e69de29bb2d1d..0000000000000 diff --git a/tests/gitea-repositories-meta/user2/glob.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/user2/glob.git/hooks/proc-receive.d/gitea deleted file mode 100755 index e69de29bb2d1d..0000000000000 diff --git a/tests/gitea-repositories-meta/user2/lfs.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/user2/lfs.git/hooks/proc-receive.d/gitea deleted file mode 100755 index e69de29bb2d1d..0000000000000 diff --git a/tests/gitea-repositories-meta/user2/readme-test.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/user2/readme-test.git/hooks/proc-receive.d/gitea deleted file mode 100755 index e69de29bb2d1d..0000000000000 diff --git a/tests/gitea-repositories-meta/user2/repo-release.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/user2/repo-release.git/hooks/proc-receive.d/gitea deleted file mode 100755 index e69de29bb2d1d..0000000000000 diff --git a/tests/gitea-repositories-meta/user2/repo1.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/user2/repo1.git/hooks/proc-receive.d/gitea deleted file mode 100755 index e69de29bb2d1d..0000000000000 diff --git a/tests/gitea-repositories-meta/user2/repo15.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/user2/repo15.git/hooks/proc-receive.d/gitea deleted file mode 100755 index e69de29bb2d1d..0000000000000 diff --git a/tests/gitea-repositories-meta/user2/repo16.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/user2/repo16.git/hooks/proc-receive.d/gitea deleted file mode 100755 index e69de29bb2d1d..0000000000000 diff --git a/tests/gitea-repositories-meta/user2/repo2.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/user2/repo2.git/hooks/proc-receive.d/gitea deleted file mode 100755 index e69de29bb2d1d..0000000000000 diff --git a/tests/gitea-repositories-meta/user2/repo20.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/user2/repo20.git/hooks/proc-receive.d/gitea deleted file mode 100755 index e69de29bb2d1d..0000000000000 diff --git a/tests/gitea-repositories-meta/user2/utf8.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/user2/utf8.git/hooks/proc-receive.d/gitea deleted file mode 100755 index e69de29bb2d1d..0000000000000 diff --git a/tests/gitea-repositories-meta/user27/repo49.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/user27/repo49.git/hooks/proc-receive.d/gitea deleted file mode 100755 index e69de29bb2d1d..0000000000000 diff --git a/tests/gitea-repositories-meta/user27/template1.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/user27/template1.git/hooks/proc-receive.d/gitea deleted file mode 100755 index e69de29bb2d1d..0000000000000 diff --git a/tests/gitea-repositories-meta/user30/renderer.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/user30/renderer.git/hooks/proc-receive.d/gitea deleted file mode 100755 index e69de29bb2d1d..0000000000000 diff --git a/tests/gitea-repositories-meta/user5/repo4.git/hooks/proc-receive.d/gitea b/tests/gitea-repositories-meta/user5/repo4.git/hooks/proc-receive.d/gitea deleted file mode 100755 index e69de29bb2d1d..0000000000000