Skip to content

Commit 391e661

Browse files
BagToadCopilot
andcommitted
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>
1 parent bff468b commit 391e661

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/cmd/pr/shared/survey.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ func MetadataSurvey(p Prompt, io *iostreams.IOStreams, baseRepo ghrepo.Interface
263263
}{}
264264

265265
if isChosen("Reviewers") {
266-
if reviewerSearchFunc != nil {
266+
if useReviewerSearch {
267267
selectedReviewers, err := p.MultiSelectWithSearch(
268268
"Reviewers",
269269
"Search reviewers",

0 commit comments

Comments
 (0)