| 110 | } |
| 111 | |
| 112 | func closeArgs(config closeConfig) (*updateProjectMutation, map[string]interface{}) { |
| 113 | closed := !config.opts.reopen |
| 114 | return &updateProjectMutation{}, map[string]interface{}{ |
| 115 | "input": githubv4.UpdateProjectV2Input{ |
| 116 | ProjectID: githubv4.ID(config.opts.projectID), |
| 117 | Closed: githubv4.NewBoolean(githubv4.Boolean(closed)), |
| 118 | }, |
| 119 | "firstItems": githubv4.Int(0), |
| 120 | "afterItems": (*githubv4.String)(nil), |
| 121 | "firstFields": githubv4.Int(0), |
| 122 | "afterFields": (*githubv4.String)(nil), |
| 123 | } |
| 124 | } |
| 125 | |
| 126 | func printResults(config closeConfig, project queries.ProjectMutationQuery) error { |
| 127 | if !config.io.IsStdoutTTY() { |