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