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

Function CommentableInteractiveCreateIfNoneSurvey

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

Source from the content-addressed store, hash-verified

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

Callers 1

NewCmdCommentFunction · 0.92

Calls 1

ConfirmMethod · 0.65

Tested by

no test coverage detected