(opts CreateOptions, openURL string)
| 1234 | } |
| 1235 | |
| 1236 | func previewPR(opts CreateOptions, openURL string) error { |
| 1237 | if opts.IO.IsStdinTTY() && opts.IO.IsStdoutTTY() { |
| 1238 | fmt.Fprintf(opts.IO.ErrOut, "Opening %s in your browser.\n", text.DisplayURL(openURL)) |
| 1239 | } |
| 1240 | return opts.Browser.Browse(openURL) |
| 1241 | } |
| 1242 | |
| 1243 | func handlePush(opts CreateOptions, ctx CreateContext) error { |
| 1244 | refs := ctx.PRRefs |
no test coverage detected