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

Function CommentableInteractiveCreateIfNoneSurvey

pkg/cmd/pr/shared/commentable.go:426–430  ·  view source on GitHub ↗
(p Prompt)

Source from the content-addressed store, hash-verified

424}
425
426func CommentableInteractiveCreateIfNoneSurvey(p Prompt) func() (bool, error) {
427 return func() (bool, error) {
428 return p.Confirm("No comments found. Create one?", true)
429 }
430}
431
432func CommentableEditSurvey(cf func() (gh.Config, error), io *iostreams.IOStreams) func(string) (string, error) {
433 return func(initialValue string) (string, error) {

Callers 1

NewCmdCommentFunction · 0.92

Calls 1

ConfirmMethod · 0.65

Tested by

no test coverage detected