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