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

Function joinLinkedIssues

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

Source from the content-addressed store, hash-verified

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