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

Method DisplayName

api/queries_issue.go:287–289  ·  view source on GitHub ↗

DisplayName returns a user-friendly name via actorDisplayName.

()

Source from the content-addressed store, hash-verified

285
286// DisplayName returns a user-friendly name via actorDisplayName.
287func (a Author) DisplayName() string {
288 return actorDisplayName("", a.Login, a.Name)
289}
290
291func (author Author) MarshalJSON() ([]byte, error) {
292 if author.ID == "" {

Callers

nothing calls this directly

Calls 1

actorDisplayNameFunction · 0.85

Tested by

no test coverage detected