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

Function NewLabels

internal/database/issue_label.go:99–102  ·  view source on GitHub ↗

NewLabels creates new label(s) for a repository.

(labels ...*Label)

Source from the content-addressed store, hash-verified

97
98// NewLabels creates new label(s) for a repository.
99func NewLabels(labels ...*Label) error {
100 _, err := x.Insert(labels)
101 return err
102}
103
104var _ errutil.NotFound = (*ErrLabelNotExist)(nil)
105

Callers 3

InitializeLabelsFunction · 0.92
NewLabelFunction · 0.92
CreateLabelFunction · 0.92

Calls 1

InsertMethod · 0.80

Tested by

no test coverage detected