MCPcopy Index your code
hub / github.com/gogs/gogs / AddToTaskQueue

Method AddToTaskQueue

internal/database/pull.go:702–709  ·  view source on GitHub ↗

AddToTaskQueue adds itself to pull request test task queue.

()

Source from the content-addressed store, hash-verified

700
701// AddToTaskQueue adds itself to pull request test task queue.
702func (pr *PullRequest) AddToTaskQueue() {
703 go PullRequestQueue.AddFunc(pr.ID, func() {
704 pr.Status = PullRequestStatusChecking
705 if err := pr.UpdateCols("status"); err != nil {
706 log.Error("AddToTaskQueue.UpdateCols[%d].(add to queue): %v", pr.ID, err)
707 }
708 })
709}
710
711type PullRequestList []*PullRequest
712

Callers 3

addHeadRepoTasksFunction · 0.80
AddTestPullRequestTaskFunction · 0.80
NewCommentFunction · 0.80

Calls 3

UpdateColsMethod · 0.95
AddFuncMethod · 0.80
ErrorMethod · 0.45

Tested by

no test coverage detected