summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2019-10-15 11:28:40 +0800
committerzeripath <art27@cantab.net>2019-10-15 04:28:40 +0100
commit34fb9d68a5567423ddde736ff42f9780f4048366 (patch)
tree62eb0924d133a10d004b70895ad1b8267feb6dd2 /modules
parentebe8ff782fd56378e9946b716fd7e95babf67411 (diff)
downloadgitea-34fb9d68a5567423ddde736ff42f9780f4048366.tar.gz
gitea-34fb9d68a5567423ddde736ff42f9780f4048366.zip
Move AddTestPullRequestTask to pull service package from models (#8324)
* move AddTestPullRequestTask to pull service package from models * fix fmt
Diffstat (limited to 'modules')
-rw-r--r--modules/repofiles/update.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/repofiles/update.go b/modules/repofiles/update.go
index 1a1fe6c389..8a1e51730b 100644
--- a/modules/repofiles/update.go
+++ b/modules/repofiles/update.go
@@ -19,6 +19,7 @@ import (
"code.gitea.io/gitea/modules/log"
"code.gitea.io/gitea/modules/setting"
"code.gitea.io/gitea/modules/structs"
+ pull_service "code.gitea.io/gitea/services/pull"
stdcharset "golang.org/x/net/html/charset"
"golang.org/x/text/transform"
@@ -498,7 +499,7 @@ func PushUpdate(repo *models.Repository, branch string, opts models.PushUpdateOp
log.Trace("TriggerTask '%s/%s' by %s", repo.Name, branch, pusher.Name)
- go models.AddTestPullRequestTask(pusher, repo.ID, branch, true)
+ go pull_service.AddTestPullRequestTask(pusher, repo.ID, branch, true)
if opts.RefFullName == git.BranchPrefix+repo.DefaultBranch {
models.UpdateRepoIndexer(repo)