Skip to content

Commit 0258dc4

Browse files
committed
🐛 Replace newlines with double spaces in target descriptions
1 parent 98a2102 commit 0258dc4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,7 @@ func upsertGitHubRepo(repo map[string]interface{}, mirrorConfigUsed MirrorDefini
250250
path := githubNameFromGitlabPath(repo["fullPath"].(string), mirrorConfigUsed)
251251

252252
description := fmt.Sprintf("%.250s (mirror)", repo["description"])
253+
description = strings.ReplaceAll(description, "\n", " ")
253254

254255
checkUrl := fmt.Sprintf("https://github.com/%s/%s", githubOrg, path)
255256
resp, err := http.Get(checkUrl)

0 commit comments

Comments
 (0)