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

Function formatLinkedIssueListWithTitle

pkg/cmd/issue/view/view.go:373–375  ·  view source on GitHub ↗

formatLinkedIssueListWithTitle formats a comma-separated list of linked issue references with each title appended after the reference.

(issues []api.LinkedIssue)

Source from the content-addressed store, hash-verified

371// formatLinkedIssueListWithTitle formats a comma-separated list of linked
372// issue references with each title appended after the reference.
373func formatLinkedIssueListWithTitle(issues []api.LinkedIssue) string {
374 return joinLinkedIssues(issues, true)
375}
376
377func joinLinkedIssues(issues []api.LinkedIssue, withTitle bool) string {
378 if len(issues) == 0 {

Callers 1

printHumanIssuePreviewFunction · 0.85

Calls 1

joinLinkedIssuesFunction · 0.85

Tested by

no test coverage detected