aboutsummaryrefslogtreecommitdiffstats
path: root/operations/label_change.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2018-09-12 16:57:04 +0200
committerMichael Muré <batolettre@gmail.com>2018-09-12 16:57:46 +0200
commit60fcfcdcb0e89741528cfc99a94a48f204d48e6b (patch)
tree48189b7f85e10b1bdf6a4b897ac0b966c4cec23c /operations/label_change.go
parent3605887345792d2f981f971c6c4a2cb7f86a343e (diff)
downloadgit-bug-60fcfcdcb0e89741528cfc99a94a48f204d48e6b.tar.gz
bug: change the OperationPack serialization format for Json
See https://github.com/MichaelMure/git-bug/issues/5 for the details of this choice
Diffstat (limited to 'operations/label_change.go')
-rw-r--r--operations/label_change.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/operations/label_change.go b/operations/label_change.go
index 551b8be0..26e7e94c 100644
--- a/operations/label_change.go
+++ b/operations/label_change.go
@@ -14,8 +14,8 @@ 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
+ Added []bug.Label `json:"added"`
+ Removed []bug.Label `json:"removed"`
}
// Apply apply the operation