From 1f1ae571393440c0260a00f98b4ebcfd162c7970 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Thu, 18 Nov 2021 14:47:57 +0800 Subject: [PATCH] Move task from modules to services (#17680) --- routers/init.go | 2 +- routers/web/repo/migrate.go | 2 +- {modules => services}/task/migrate.go | 0 {modules => services}/task/task.go | 0 4 files changed, 2 insertions(+), 2 deletions(-) rename {modules => services}/task/migrate.go (100%) rename {modules => services}/task/task.go (100%) diff --git a/routers/init.go b/routers/init.go index 762508cee5..58c7384092 100644 --- a/routers/init.go +++ b/routers/init.go @@ -29,7 +29,6 @@ import ( "code.gitea.io/gitea/modules/ssh" "code.gitea.io/gitea/modules/storage" "code.gitea.io/gitea/modules/svg" - "code.gitea.io/gitea/modules/task" "code.gitea.io/gitea/modules/translation" "code.gitea.io/gitea/modules/web" apiv1 "code.gitea.io/gitea/routers/api/v1" @@ -45,6 +44,7 @@ import ( mirror_service "code.gitea.io/gitea/services/mirror" pull_service "code.gitea.io/gitea/services/pull" repo_service "code.gitea.io/gitea/services/repository" + "code.gitea.io/gitea/services/task" "code.gitea.io/gitea/services/webhook" "gitea.com/go-chi/session" diff --git a/routers/web/repo/migrate.go b/routers/web/repo/migrate.go index f91c344e94..5cfc334042 100644 --- a/routers/web/repo/migrate.go +++ b/routers/web/repo/migrate.go @@ -17,11 +17,11 @@ import ( "code.gitea.io/gitea/modules/log" "code.gitea.io/gitea/modules/setting" "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/task" "code.gitea.io/gitea/modules/util" "code.gitea.io/gitea/modules/web" "code.gitea.io/gitea/services/forms" "code.gitea.io/gitea/services/migrations" + "code.gitea.io/gitea/services/task" ) const ( diff --git a/modules/task/migrate.go b/services/task/migrate.go similarity index 100% rename from modules/task/migrate.go rename to services/task/migrate.go diff --git a/modules/task/task.go b/services/task/task.go similarity index 100% rename from modules/task/task.go rename to services/task/task.go