MCPcopy Create free account
hub / github.com/gogs/gogs / UpdateCols

Method UpdateCols

internal/database/pull.go:614–617  ·  view source on GitHub ↗

Update updates specific fields of pull request.

(cols ...string)

Source from the content-addressed store, hash-verified

612
613// Update updates specific fields of pull request.
614func (pr *PullRequest) UpdateCols(cols ...string) error {
615 _, err := x.Id(pr.ID).Cols(cols...).Update(pr)
616 return err
617}
618
619// UpdatePatch generates and saves a new patch.
620func (pr *PullRequest) UpdatePatch() (err error) {

Callers 2

AddToTaskQueueMethod · 0.95
checkAndUpdateStatusMethod · 0.95

Calls 1

UpdateMethod · 0.65

Tested by

no test coverage detected