(r api.Repository)
| 234 | } |
| 235 | |
| 236 | func repoInfo(r api.Repository) string { |
| 237 | tags := []string{visibilityLabel(r)} |
| 238 | |
| 239 | if r.IsFork { |
| 240 | tags = append(tags, "fork") |
| 241 | } |
| 242 | if r.IsArchived { |
| 243 | tags = append(tags, "archived") |
| 244 | } |
| 245 | |
| 246 | return strings.Join(tags, ", ") |
| 247 | } |
| 248 | |
| 249 | func visibilityLabel(repo api.Repository) string { |
| 250 | if repo.Visibility != "" { |
no test coverage detected