()
| 147 | const userTypeName = "User" |
| 148 | |
| 149 | func (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". |
no outgoing calls
no test coverage detected