(opts *CreateOptions)
| 1084 | } |
| 1085 | |
| 1086 | func getRemotes(opts *CreateOptions) (ghContext.Remotes, error) { |
| 1087 | // TODO: consider obtaining remotes from GitClient instead |
| 1088 | remotes, err := opts.Remotes() |
| 1089 | if err != nil { |
| 1090 | // When a repo override value is given, ignore errors when fetching git remotes |
| 1091 | // to support using this command outside of git repos. |
| 1092 | if opts.RepoOverride == "" { |
| 1093 | return nil, err |
| 1094 | } |
| 1095 | } |
| 1096 | return remotes, nil |
| 1097 | } |
| 1098 | |
| 1099 | func submitPR(opts CreateOptions, ctx CreateContext, state shared.IssueMetadataState, projectV1Support gh.ProjectsV1Support, uploader *attachments.Uploader) error { |
| 1100 | client := ctx.Client |
no test coverage detected