Skip to content

Commit 968a912

Browse files
committed
Remove outdated TODO comments in survey.go
Cleaned up obsolete TODO comments related to assignee and reviewer selection logic in the MetadataSurvey function.
1 parent a8053d6 commit 968a912

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

pkg/cmd/pr/shared/survey.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,6 @@ func MetadataSurvey(p Prompt, io *iostreams.IOStreams, baseRepo ghrepo.Interface
209209
// Populate the list of selectable assignees and their default selections.
210210
// This logic maps the default assignees from `state` to the corresponding actors or users
211211
// so that the correct display names are preselected in the prompt.
212-
// TODO: KW21 This will need to go away since we're going to dynamically load assignees via search.
213212
var assignees []string
214213
var assigneesDefault []string
215214
if state.ActorAssignees {
@@ -267,9 +266,6 @@ func MetadataSurvey(p Prompt, io *iostreams.IOStreams, baseRepo ghrepo.Interface
267266
fmt.Fprintln(io.ErrOut, "warning: no available reviewers")
268267
}
269268
}
270-
// TODO: KW21 This will need to change to use MultiSelectWithSearch once it's implemented.
271-
// MultiSelectWithSearch will return the selected strings directly instead of indices,
272-
// so the logic here will need to be updated accordingly.
273269
if isChosen("Assignees") {
274270
if len(assignees) > 0 {
275271
selected, err := p.MultiSelect("Assignees", assigneesDefault, assignees)

0 commit comments

Comments
 (0)