1// Package operations contains the various bug operations. A bug operation is
2// an atomic edit operation of a bug state. These operations are applied
3// sequentially to compile the current state of the bug.
4package operations
5
6import (
7 "github.com/MichaelMure/git-bug/bug"
8)
9
10// Package initialisation used to register operation's type for (de)serialization
11func init() {
12 bug.Register(bug.CreateOp, CreateOperation{})
13 bug.Register(bug.SetTitleOp, SetTitleOperation{})
14 bug.Register(bug.AddCommentOp, AddCommentOperation{})
15 bug.Register(bug.SetStatusOp, SetStatusOperation{})
16 bug.Register(bug.LabelChangeOp, LabelChangeOperation{})
17}