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

Method LoginOrSlug

api/queries_pr_review.go:149–154  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

147const userTypeName = "User"
148
149func (r RequestedReviewer) LoginOrSlug() string {
150 if r.TypeName == teamTypeName {
151 return fmt.Sprintf("%s/%s", r.Organization.Login, r.Slug)
152 }
153 return r.Login
154}
155
156// DisplayName returns a user-friendly name for the reviewer via actorDisplayName.
157// Teams are handled separately as "org/slug".

Callers 2

LoginsMethod · 0.80
ExportDataMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected