Commit Graph
2 Commits
Author SHA1 Message Date
Kyle EvansandGitHub cad70599a6 Refactor the fork service slightly to take ForkRepoOptions (#16744)
* Refactor the fork service slightly to take ForkRepoOptions

This reduces the number of places we need to change if we want to add other
options during fork time.

Signed-off-by: Kyle Evans <[email protected]>

* Fix integrations and tests after ForkRepository refactor

Signed-off-by: Kyle Evans <[email protected]>

* Update OldRepo -> BaseRepo

Signed-off-by: Kyle Evans <[email protected]>

* gofmt pass

Signed-off-by: Kyle Evans <[email protected]>
2021-08-28 16:37:14 +08:00
Lunny XiaoandGitHub b465d0d787 Move create/fork repository from models to modules/repository (#9489)
* Move create/fork repository from models to modules/repository

* fix wrong reference

* fix test

* fix test

* fix lint

* Fix DBContext

* remove duplicated TestMain

* fix lint

* fix conflicts
2020-01-12 20:11:17 +08:00