From 391e6616d5abb75cc4d148bb671b15c2f4f28c70 Mon Sep 17 00:00:00 2001 From: Kynan Ware <47394200+BagToad@users.noreply.github.com> Date: Tue, 24 Mar 2026 23:28:26 -0600 Subject: [PATCH] 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> --- pkg/cmd/pr/shared/survey.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/cmd/pr/shared/survey.go b/pkg/cmd/pr/shared/survey.go index c219a13cf..05b41d79b 100644 --- a/pkg/cmd/pr/shared/survey.go +++ b/pkg/cmd/pr/shared/survey.go @@ -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",