MCPcopy
hub / github.com/cli/cli / previewPR

Function previewPR

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

Source from the content-addressed store, hash-verified

1152}
1153
1154func 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
1161func handlePush(opts CreateOptions, ctx CreateContext) error {
1162 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