| 120 | } |
| 121 | |
| 122 | func copyArgs(config copyConfig) (*copyProjectMutation, map[string]interface{}) { |
| 123 | return ©ProjectMutation{}, map[string]interface{}{ |
| 124 | "input": githubv4.CopyProjectV2Input{ |
| 125 | OwnerID: githubv4.ID(config.opts.ownerID), |
| 126 | ProjectID: githubv4.ID(config.opts.projectID), |
| 127 | Title: githubv4.String(config.opts.title), |
| 128 | IncludeDraftIssues: githubv4.NewBoolean(githubv4.Boolean(config.opts.includeDraftIssues)), |
| 129 | }, |
| 130 | "firstItems": githubv4.Int(0), |
| 131 | "afterItems": (*githubv4.String)(nil), |
| 132 | "firstFields": githubv4.Int(0), |
| 133 | "afterFields": (*githubv4.String)(nil), |
| 134 | } |
| 135 | } |
| 136 | |
| 137 | func printResults(config copyConfig, project queries.ProjectMutationQuery) error { |
| 138 | if !config.io.IsStdoutTTY() { |