diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2019-12-07 10:44:10 +0800 |
---|---|---|
committer | techknowlogick <techknowlogick@gitea.io> | 2019-12-06 21:44:10 -0500 |
commit | 82e0383d2104f454af5b3e0e768f0497113f3b13 (patch) | |
tree | 0bb945b408668867e24db2429cc7099d57eaa6f6 /routers/init.go | |
parent | 1583c48e3a89fcb9aeb81a57295982ee64d5859f (diff) | |
download | gitea-82e0383d2104f454af5b3e0e768f0497113f3b13.tar.gz gitea-82e0383d2104f454af5b3e0e768f0497113f3b13.zip |
Move some pull request functions from models to services (#9266)
* Move some pull request functions from models to services
* Fix test
Diffstat (limited to 'routers/init.go')
-rw-r--r-- | routers/init.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/routers/init.go b/routers/init.go index e161143f47..447c168852 100644 --- a/routers/init.go +++ b/routers/init.go @@ -26,6 +26,7 @@ import ( "code.gitea.io/gitea/modules/webhook" "code.gitea.io/gitea/services/mailer" mirror_service "code.gitea.io/gitea/services/mirror" + pull_service "code.gitea.io/gitea/services/pull" "gitea.com/macaron/macaron" ) @@ -104,7 +105,7 @@ func GlobalInit() { models.InitRepoIndexer() mirror_service.InitSyncMirrors() webhook.InitDeliverHooks() - models.InitTestPullRequests() + pull_service.Init() if err := task.Init(); err != nil { log.Fatal("Failed to initialize task scheduler: %v", err) } |