Remove outdated TODO comments in survey.go
Cleaned up obsolete TODO comments related to assignee and reviewer selection logic in the MetadataSurvey function.
This commit is contained in:
parent
a8053d6e93
commit
968a912a07
1 changed files with 0 additions and 4 deletions
|
|
@ -209,7 +209,6 @@ func MetadataSurvey(p Prompt, io *iostreams.IOStreams, baseRepo ghrepo.Interface
|
|||
// Populate the list of selectable assignees and their default selections.
|
||||
// This logic maps the default assignees from `state` to the corresponding actors or users
|
||||
// so that the correct display names are preselected in the prompt.
|
||||
// TODO: KW21 This will need to go away since we're going to dynamically load assignees via search.
|
||||
var assignees []string
|
||||
var assigneesDefault []string
|
||||
if state.ActorAssignees {
|
||||
|
|
@ -267,9 +266,6 @@ func MetadataSurvey(p Prompt, io *iostreams.IOStreams, baseRepo ghrepo.Interface
|
|||
fmt.Fprintln(io.ErrOut, "warning: no available reviewers")
|
||||
}
|
||||
}
|
||||
// TODO: KW21 This will need to change to use MultiSelectWithSearch once it's implemented.
|
||||
// MultiSelectWithSearch will return the selected strings directly instead of indices,
|
||||
// so the logic here will need to be updated accordingly.
|
||||
if isChosen("Assignees") {
|
||||
if len(assignees) > 0 {
|
||||
selected, err := p.MultiSelect("Assignees", assigneesDefault, assignees)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue