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

Method DisplayName

api/queries_pr_review.go:158–163  ·  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

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

Callers

nothing calls this directly

Calls 1

actorDisplayNameFunction · 0.85

Tested by

no test coverage detected