summaryrefslogtreecommitdiffstats
path: root/routers/repo
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2019-12-07 10:44:10 +0800
committertechknowlogick <techknowlogick@gitea.io>2019-12-06 21:44:10 -0500
commit82e0383d2104f454af5b3e0e768f0497113f3b13 (patch)
tree0bb945b408668867e24db2429cc7099d57eaa6f6 /routers/repo
parent1583c48e3a89fcb9aeb81a57295982ee64d5859f (diff)
downloadgitea-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/repo')
-rw-r--r--routers/repo/issue.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/routers/repo/issue.go b/routers/repo/issue.go
index cabb9e63c1..66e87e714f 100644
--- a/routers/repo/issue.go
+++ b/routers/repo/issue.go
@@ -28,6 +28,7 @@ import (
"code.gitea.io/gitea/modules/util"
comment_service "code.gitea.io/gitea/services/comments"
issue_service "code.gitea.io/gitea/services/issue"
+ pull_service "code.gitea.io/gitea/services/pull"
"github.com/unknwon/com"
)
@@ -1272,7 +1273,7 @@ func NewComment(ctx *context.Context, form auth.CreateCommentForm) {
return
}
- issue.PullRequest.AddToTaskQueue()
+ pull_service.AddToTaskQueue(issue.PullRequest)
}
}