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

Function repoInfo

pkg/cmd/repo/list/list.go:236–247  ·  view source on GitHub ↗
(r api.Repository)

Source from the content-addressed store, hash-verified

234}
235
236func 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
249func visibilityLabel(repo api.Repository) string {
250 if repo.Visibility != "" {

Callers 1

listRunFunction · 0.70

Calls 2

JoinMethod · 0.80
visibilityLabelFunction · 0.70

Tested by

no test coverage detected