mirror of
https://github.com/go-gitea/gitea
synced 2025-07-03 09:07:19 +00:00
Move some pull request functions from models to services (#9266)
* Move some pull request functions from models to services * Fix test
This commit is contained in:
committed by
techknowlogick
parent
1583c48e3a
commit
82e0383d21
@ -64,7 +64,7 @@ func addHeadRepoTasks(prs []*models.PullRequest) {
|
||||
continue
|
||||
}
|
||||
|
||||
pr.AddToTaskQueue()
|
||||
AddToTaskQueue(pr)
|
||||
}
|
||||
}
|
||||
|
||||
@ -103,6 +103,6 @@ func AddTestPullRequestTask(doer *models.User, repoID int64, branch string, isSy
|
||||
return
|
||||
}
|
||||
for _, pr := range prs {
|
||||
pr.AddToTaskQueue()
|
||||
AddToTaskQueue(pr)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user