MCPcopy Create free account
hub / github.com/cli/cli / joinLinkedIssues

Function joinLinkedIssues

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

Source from the content-addressed store, hash-verified

375}
376
377func joinLinkedIssues(issues []api.LinkedIssue, withTitle bool) string {
378 if len(issues) == 0 {
379 return ""
380 }
381 parts := make([]string, len(issues))
382 for i, issue := range issues {
383 parts[i] = formatLinkedIssueRef(&issue)
384 if withTitle {
385 parts[i] += " " + issue.Title
386 }
387 }
388 return strings.Join(parts, ", ")
389}
390
391func issueStateTitleWithColor(cs *iostreams.ColorScheme, issue *api.Issue) string {
392 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