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

Method ExportData

pkg/cmd/project/shared/queries/queries.go:341–350  ·  view source on GitHub ↗
(_ []string)

Source from the content-addressed store, hash-verified

339}
340
341func (p Projects) ExportData(_ []string) map[string]interface{} {
342 v := make([]map[string]interface{}, len(p.Nodes))
343 for i := range p.Nodes {
344 v[i] = p.Nodes[i].ExportData(nil)
345 }
346 return map[string]interface{}{
347 "projects": v,
348 "totalCount": p.TotalCount,
349 }
350}
351
352// ProjectItem is a ProjectV2Item GraphQL object https://docs.github.com/en/graphql/reference/objects#projectv2item.
353type ProjectItem struct {

Callers 1

TestJSONProjectsFunction · 0.95

Calls 1

ExportDataMethod · 0.65

Tested by 1

TestJSONProjectsFunction · 0.76