aboutsummaryrefslogtreecommitdiffstats
path: root/operations/operations.go
blob: 020b81516a41ad20af265d37aa955086c39904cb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Package operations contains the various bug operations. A bug operation is
// an atomic edit operation of a bug state. These operations are applied
// sequentially to compile the current state of the bug.
package operations

import (
	"github.com/MichaelMure/git-bug/bug"
)

// Package initialisation used to register operation's type for (de)serialization
func init() {
	bug.Register(bug.CreateOp, CreateOperation{})
	bug.Register(bug.SetTitleOp, SetTitleOperation{})
	bug.Register(bug.AddCommentOp, AddCommentOperation{})
	bug.Register(bug.SetStatusOp, SetStatusOperation{})
	bug.Register(bug.LabelChangeOp, LabelChangeOperation{})
}