From 4666763d4dfc5623ee2b2423a759de50aad151b7 Mon Sep 17 00:00:00 2001 From: amine Date: Thu, 24 Oct 2019 21:08:31 +0200 Subject: bridge/gitlab: use gitlab.Labels pointer instead of string slice --- bridge/gitlab/export.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bridge/gitlab') diff --git a/bridge/gitlab/export.go b/bridge/gitlab/export.go index 7cbbf903..251d720a 100644 --- a/bridge/gitlab/export.go +++ b/bridge/gitlab/export.go @@ -494,10 +494,11 @@ func updateGitlabIssueTitle(ctx context.Context, gc *gitlab.Client, repositoryID func updateGitlabIssueLabels(ctx context.Context, gc *gitlab.Client, repositoryID string, issueID int, labels []string) error { ctx, cancel := context.WithTimeout(ctx, defaultTimeout) defer cancel() + gitlabLabels := gitlab.Labels(labels) _, _, err := gc.Issues.UpdateIssue( repositoryID, issueID, &gitlab.UpdateIssueOptions{ - Labels: labels, + Labels: &gitlabLabels, }, gitlab.WithContext(ctx), ) -- cgit