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

Function formatLinkedIssueRef

pkg/cmd/issue/view/view.go:361–363  ·  view source on GitHub ↗

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

(issue *api.LinkedIssue)

Source from the content-addressed store, hash-verified

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

Callers 3

printRawIssuePreviewFunction · 0.85
printHumanIssuePreviewFunction · 0.85
joinLinkedIssuesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected