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

Function createDraftIssueArgs

pkg/cmd/project/item-create/item_create.go:112–120  ·  view source on GitHub ↗
(config createItemConfig)

Source from the content-addressed store, hash-verified

110}
111
112func createDraftIssueArgs(config createItemConfig) (*createProjectDraftItemMutation, map[string]any) {
113 return &createProjectDraftItemMutation{}, map[string]any{
114 "input": githubv4.AddProjectV2DraftIssueInput{
115 Body: new(githubv4.String(config.opts.body)),
116 ProjectID: githubv4.ID(config.opts.projectID),
117 Title: githubv4.String(config.opts.title),
118 },
119 }
120}
121
122func printResults(config createItemConfig, item queries.ProjectItem) error {
123 if !config.io.IsStdoutTTY() {

Callers 1

runCreateItemFunction · 0.85

Calls 2

IDMethod · 0.65
StringMethod · 0.65

Tested by

no test coverage detected