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

Function milestoneSurvey

pkg/cmd/pr/shared/editable.go:646–658  ·  view source on GitHub ↗
(p EditPrompter, title string, opts []string)

Source from the content-addressed store, hash-verified

644}
645
646func milestoneSurvey(p EditPrompter, title string, opts []string) (result string, err error) {
647 if len(opts) == 0 {
648 return "", nil
649 }
650 var selected int
651 selected, err = p.Select("Milestone", title, opts)
652 if err != nil {
653 return
654 }
655
656 result = opts[selected]
657 return
658}
659
660// AssigneeSearchFunc returns a search function for MultiSelectWithSearch that
661// dynamically fetches assignable actors for the given assignable (Issue/PR) node ID.

Callers 1

EditFieldsSurveyFunction · 0.85

Calls 1

SelectMethod · 0.65

Tested by

no test coverage detected