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

Function formatLinkedIssueRef

pkg/cmd/issue/view/view.go:364–366  ·  view source on GitHub ↗

formatLinkedIssueRef formats an issue reference as owner/repo#N.

(issue *api.LinkedIssue)

Source from the content-addressed store, hash-verified

362
363// formatLinkedIssueRef formats an issue reference as owner/repo#N.
364func formatLinkedIssueRef(issue *api.LinkedIssue) string {
365 return fmt.Sprintf("%s#%d", issue.Repository.NameWithOwner, issue.Number)
366}
367
368// formatLinkedIssueRefs formats a comma-separated list of linked issue
369// references without titles.

Callers 3

printRawIssuePreviewFunction · 0.85
printHumanIssuePreviewFunction · 0.85
joinLinkedIssuesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected