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

Function joinLinkedIssues

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

Source from the content-addressed store, hash-verified

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