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

Method ExportData

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

Source from the content-addressed store, hash-verified

512}
513
514func (i DraftIssue) ExportData(_ []string) map[string]any {
515 v := map[string]any{
516 "title": i.Title,
517 "body": i.Body,
518 "type": "DraftIssue",
519 }
520 // Emulate omitempty.
521 if i.ID != "" {
522 v["id"] = i.ID
523 }
524 return v
525}
526
527type PullRequest struct {
528 Body string

Callers 1

Calls

no outgoing calls

Tested by 1