fix(survey): use useReviewerSearch consistently in prompt path
The reviewer prompt branch checked reviewerSearchFunc != nil directly instead of useReviewerSearch, making the fetch and prompt decisions inconsistent. This mirrors how the assignee path already uses useAssigneeSearch at both the fetch and prompt gates. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
parent
bff468bafe
commit
391e6616d5
1 changed files with 1 additions and 1 deletions
|
|
@ -263,7 +263,7 @@ func MetadataSurvey(p Prompt, io *iostreams.IOStreams, baseRepo ghrepo.Interface
|
|||
}{}
|
||||
|
||||
if isChosen("Reviewers") {
|
||||
if reviewerSearchFunc != nil {
|
||||
if useReviewerSearch {
|
||||
selectedReviewers, err := p.MultiSelectWithSearch(
|
||||
"Reviewers",
|
||||
"Search reviewers",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue