MCPcopy Index your code
hub / github.com/cli/cli / DisplayName

Method DisplayName

api/queries_pr_review.go:157–162  ·  view source on GitHub ↗

DisplayName returns a user-friendly name for the reviewer via actorDisplayName. Teams are handled separately as "org/slug".

()

Source from the content-addressed store, hash-verified

155// DisplayName returns a user-friendly name for the reviewer via actorDisplayName.
156// Teams are handled separately as "org/slug".
157func (r RequestedReviewer) DisplayName() string {
158 if r.TypeName == teamTypeName {
159 return fmt.Sprintf("%s/%s", r.Organization.Login, r.Slug)
160 }
161 return actorDisplayName(r.TypeName, r.Login, r.Name)
162}
163
164func (r ReviewRequests) Logins() []string {
165 logins := make([]string, len(r.Nodes))

Callers

nothing calls this directly

Calls 1

actorDisplayNameFunction · 0.85

Tested by

no test coverage detected