(opts *CreateOptions)
| 1021 | } |
| 1022 | |
| 1023 | func getRemotes(opts *CreateOptions) (ghContext.Remotes, error) { |
| 1024 | // TODO: consider obtaining remotes from GitClient instead |
| 1025 | remotes, err := opts.Remotes() |
| 1026 | if err != nil { |
| 1027 | // When a repo override value is given, ignore errors when fetching git remotes |
| 1028 | // to support using this command outside of git repos. |
| 1029 | if opts.RepoOverride == "" { |
| 1030 | return nil, err |
| 1031 | } |
| 1032 | } |
| 1033 | return remotes, nil |
| 1034 | } |
| 1035 | |
| 1036 | func submitPR(opts CreateOptions, ctx CreateContext, state shared.IssueMetadataState, projectV1Support gh.ProjectsV1Support) error { |
| 1037 | client := ctx.Client |
no test coverage detected