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

Method ExportData

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

Source from the content-addressed store, hash-verified

300}
301
302func (p ProjectMutationQuery) ExportData(_ []string) map[string]any {
303 return map[string]any{
304 "number": p.Number,
305 "url": p.URL,
306 "shortDescription": p.ShortDescription,
307 "public": p.Public,
308 "closed": p.Closed,
309 "title": p.Title,
310 "id": p.ID,
311 "readme": p.Readme,
312 "items": map[string]any{
313 "totalCount": p.Items.TotalCount,
314 },
315 "fields": map[string]any{
316 "totalCount": p.Fields.TotalCount,
317 },
318 "owner": map[string]any{
319 "type": p.OwnerType(),
320 "login": p.OwnerLogin(),
321 },
322 }
323}
324
325func (p ProjectMutationQuery) OwnerType() string {
326 return p.Owner.TypeName

Callers

nothing calls this directly

Calls 2

OwnerTypeMethod · 0.95
OwnerLoginMethod · 0.95

Tested by

no test coverage detected