diff options
Diffstat (limited to 'bug/operations/label_change.go')
-rw-r--r-- | bug/operations/label_change.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bug/operations/label_change.go b/bug/operations/label_change.go index 85bae595..8f608dbc 100644 --- a/bug/operations/label_change.go +++ b/bug/operations/label_change.go @@ -9,16 +9,16 @@ import ( "github.com/MichaelMure/git-bug/bug" ) -// LabelChangeOperation will add or remove a set of labels - var _ bug.Operation = LabelChangeOperation{} +// LabelChangeOperation define a Bug operation to add or remove labels type LabelChangeOperation struct { bug.OpBase Added []bug.Label Removed []bug.Label } +// Apply apply the operation func (op LabelChangeOperation) Apply(snapshot bug.Snapshot) bug.Snapshot { // Add in the set AddLoop: @@ -59,7 +59,7 @@ func NewLabelChangeOperation(author bug.Person, added, removed []bug.Label) Labe } } -// Convenience function to apply the operation +// ChangeLabels is a convenience function to apply the operation func ChangeLabels(out io.Writer, b *bug.Bug, author bug.Person, add, remove []string) error { var added, removed []bug.Label |