(opts CreateOptions, openURL string)
| 1152 | } |
| 1153 | |
| 1154 | func previewPR(opts CreateOptions, openURL string) error { |
| 1155 | if opts.IO.IsStdinTTY() && opts.IO.IsStdoutTTY() { |
| 1156 | fmt.Fprintf(opts.IO.ErrOut, "Opening %s in your browser.\n", text.DisplayURL(openURL)) |
| 1157 | } |
| 1158 | return opts.Browser.Browse(openURL) |
| 1159 | } |
| 1160 | |
| 1161 | func handlePush(opts CreateOptions, ctx CreateContext) error { |
| 1162 | refs := ctx.PRRefs |
no test coverage detected