Skip to content

Commit 9c8d4d7

Browse files
authored
Merge pull request #8 from bollenn/copy_description
Add copy of description
2 parents 90086a2 + 8dd6e03 commit 9c8d4d7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

gitlab/labels.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,9 @@ func (srv *Labels) CopyLabels(from, to interface{}) error {
117117
var errs []string
118118
for _, label := range labels {
119119
if _, _, err := srv.CreateLabel(to, &gogitlab.CreateLabelOptions{
120-
Name: &label.Name,
121-
Color: &label.Color,
120+
Name: &label.Name,
121+
Color: &label.Color,
122+
Description: &label.Description,
122123
}); err != nil {
123124
errs = append(errs, fmt.Sprintf("'%s' failed to create: %v", label.Name, err))
124125
}

0 commit comments

Comments
 (0)