gitea/services/migrations
singuliere 49cab2b01f
migrations: add test for importing pull requests in gitea uploader ()
* logs: add the buffer logger to inspect logs during testing

Signed-off-by: Loïc Dachary <loic@dachary.org>

* migrations: add test for importing pull requests in gitea uploader

Signed-off-by: Loïc Dachary <loic@dachary.org>

* for each git.OpenRepositoryCtx, call Close

* Content is expected to return the content of the log

* test for errors before defer

Co-authored-by: Loïc Dachary <loic@dachary.org>
Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
..
codebase.go format with gofumpt ()
codebase_test.go Add migrate from Codebase ()
dump.go Delete old git.NewCommand() and use it as git.NewCommandContext() ()
error.go format with gofumpt ()
git.go format with gofumpt ()
gitbucket.go format with gofumpt ()
gitea_downloader.go format with gofumpt ()
gitea_downloader_test.go Move migrations into services and base into modules/migration ()
gitea_uploader.go migrations: add test for importing pull requests in gitea uploader ()
gitea_uploader_test.go migrations: add test for importing pull requests in gitea uploader ()
github.go format with gofumpt ()
github_test.go refactoring nits ()
gitlab.go GitLab reviews may not have the updated_at field set ()
gitlab_test.go GitLab reviews may not have the updated_at field set ()
gogs.go format with gofumpt ()
gogs_test.go refactoring nits ()
http_client.go Use `hostmatcher` to replace `matchlist`, improve security ()
main_test.go GitLab reviews may not have the updated_at field set ()
migrate.go format with gofumpt ()
migrate_test.go Move user related model into models/user ()
onedev.go format with gofumpt ()
onedev_test.go Move migrations into services and base into modules/migration ()
restore.go Validate migration files ()
update.go Move more model into models/user ()