MCPcopy
hub / github.com/cli/cli / joinLinkedIssues

Function joinLinkedIssues

pkg/cmd/issue/view/view.go:372–384  ·  view source on GitHub ↗
(issues []api.LinkedIssue, withTitle bool)

Source from the content-addressed store, hash-verified

370}
371
372func joinLinkedIssues(issues []api.LinkedIssue, withTitle bool) string {
373 if len(issues) == 0 {
374 return ""
375 }
376 parts := make([]string, len(issues))
377 for i, issue := range issues {
378 parts[i] = formatLinkedIssueRef(&issue)
379 if withTitle {
380 parts[i] += " " + issue.Title
381 }
382 }
383 return strings.Join(parts, ", ")
384}
385
386func issueStateTitleWithColor(cs *iostreams.ColorScheme, issue *api.Issue) string {
387 colorFunc := cs.ColorFromString(prShared.ColorForIssueState(*issue))

Callers 2

formatLinkedIssueRefsFunction · 0.85

Calls 2

formatLinkedIssueRefFunction · 0.85
JoinMethod · 0.80

Tested by

no test coverage detected