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

Function previewPR

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

Source from the content-addressed store, hash-verified

1235}
1236
1237func previewPR(opts CreateOptions, openURL string) error {
1238 if opts.IO.IsStdinTTY() && opts.IO.IsStdoutTTY() {
1239 fmt.Fprintf(opts.IO.ErrOut, "Opening %s in your browser.\n", text.DisplayURL(openURL))
1240 }
1241 return opts.Browser.Browse(openURL)
1242}
1243
1244func handlePush(opts CreateOptions, ctx CreateContext) error {
1245 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