aboutsummaryrefslogtreecommitdiffstats
path: root/bridge
diff options
context:
space:
mode:
Diffstat (limited to 'bridge')
-rw-r--r--bridge/gitlab/import.go10
1 files changed, 7 insertions, 3 deletions
diff --git a/bridge/gitlab/import.go b/bridge/gitlab/import.go
index 8aeab1ce..897d65de 100644
--- a/bridge/gitlab/import.go
+++ b/bridge/gitlab/import.go
@@ -138,7 +138,11 @@ func (gi *gitlabImporter) ensureIssue(repo *cache.RepoCache, issue *gitlab.Issue
}
// if bug was never imported
- cleanText, err := text.Cleanup(issue.Description)
+ cleanTitle, err := text.Cleanup(issue.Title)
+ if err != nil {
+ return nil, err
+ }
+ cleanDesc, err := text.Cleanup(issue.Description)
if err != nil {
return nil, err
}
@@ -147,8 +151,8 @@ func (gi *gitlabImporter) ensureIssue(repo *cache.RepoCache, issue *gitlab.Issue
b, _, err = repo.NewBugRaw(
author,
issue.CreatedAt.Unix(),
- issue.Title,
- cleanText,
+ cleanTitle,
+ cleanDesc,
nil,
map[string]string{
core.MetaKeyOrigin: target,