diff options
author | Michael Muré <batolettre@gmail.com> | 2018-09-17 14:36:51 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2018-09-17 14:36:51 +0200 |
commit | 5eaf9e83e7cd56b8bb4915193d13adfb60575b21 (patch) | |
tree | 52fe0727ea445cf3d7fbfa64e916b09f6009f0ef /commands/label add.go | |
parent | 2965b70f4f462b3532bb380c5206e2d940f68c65 (diff) | |
download | git-bug-5eaf9e83e7cd56b8bb4915193d13adfb60575b21.tar.gz |
commands: add a "label rm" command to remove labels from a bug
Diffstat (limited to 'commands/label add.go')
-rw-r--r-- | commands/label add.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/commands/label add.go b/commands/label add.go index c7a37be8..fccbfaa3 100644 --- a/commands/label add.go +++ b/commands/label add.go @@ -28,14 +28,15 @@ func runLabelAdd(cmd *cobra.Command, args []string) error { } changes, err := b.ChangeLabels(add, nil) - if err != nil { - return err - } for _, change := range changes { fmt.Println(change) } + if err != nil { + return err + } + return b.Commit() } |