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

Method Update

internal/database/pull.go:608–611  ·  view source on GitHub ↗

Update updates all fields of pull request.

()

Source from the content-addressed store, hash-verified

606
607// Update updates all fields of pull request.
608func (pr *PullRequest) Update() error {
609 _, err := x.Id(pr.ID).AllCols().Update(pr)
610 return err
611}
612
613// Update updates specific fields of pull request.
614func (pr *PullRequest) UpdateCols(cols ...string) error {

Callers 1

UpdatePatchMethod · 0.95

Calls 1

UpdateMethod · 0.65

Tested by

no test coverage detected