MCPcopy Create free account
hub / github.com/cli/cli / previewPR

Function previewPR

pkg/cmd/pr/create/create.go:1236–1241  ·  view source on GitHub ↗
(opts CreateOptions, openURL string)

Source from the content-addressed store, hash-verified

1234}
1235
1236func 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
1243func handlePush(opts CreateOptions, ctx CreateContext) error {
1244 refs := ctx.PRRefs

Callers 1

createRunFunction · 0.85

Calls 4

DisplayURLFunction · 0.92
IsStdinTTYMethod · 0.80
IsStdoutTTYMethod · 0.80
BrowseMethod · 0.65

Tested by

no test coverage detected