Skip to content

Commit dd7e44e

Browse files
BagToadCopilot
andcommitted
Check state.ActorReviewers in MetadataSurvey reviewer search gate
Gate search-based reviewer selection on both state.ActorReviewers and the search function being available, consistent with the ActorAssignees pattern used for assignees. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 8f62e81 commit dd7e44e

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
@@ -183,7 +183,7 @@ func MetadataSurvey(p Prompt, io *iostreams.IOStreams, baseRepo ghrepo.Interface
183183
// Retrieve and process data for survey prompts based on the extra fields selected.
184184
// When search-based reviewer selection is available, skip the expensive assignable-users
185185
// and teams fetch since reviewers are found dynamically via the search function.
186-
useReviewerSearch := reviewerSearchFunc != nil
186+
useReviewerSearch := state.ActorReviewers && reviewerSearchFunc != nil
187187
metadataInput := api.RepoMetadataInput{
188188
Reviewers: isChosen("Reviewers") && !useReviewerSearch,
189189
TeamReviewers: isChosen("Reviewers") && !useReviewerSearch,

0 commit comments

Comments
 (0)