From 4aa31b3f0fd3824f7d4224c722c11089d2e056d0 Mon Sep 17 00:00:00 2001 From: Benjamin Levesque <14175665+benjlevesque@users.noreply.github.com> Date: Fri, 26 May 2023 14:50:20 +0200 Subject: [PATCH] fix: apply latin matching filter to more fields --- pkg/cmd/pr/shared/survey.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/cmd/pr/shared/survey.go b/pkg/cmd/pr/shared/survey.go index 8582373b0..4ee93e3db 100644 --- a/pkg/cmd/pr/shared/survey.go +++ b/pkg/cmd/pr/shared/survey.go @@ -7,6 +7,7 @@ import ( "github.com/AlecAivazis/survey/v2" "github.com/cli/cli/v2/api" "github.com/cli/cli/v2/internal/ghrepo" + "github.com/cli/cli/v2/internal/prompter" "github.com/cli/cli/v2/pkg/iostreams" "github.com/cli/cli/v2/pkg/prompt" ) @@ -223,6 +224,7 @@ func MetadataSurvey(io *iostreams.IOStreams, baseRepo ghrepo.Interface, fetcher Message: "Reviewers", Options: reviewers, Default: state.Reviewers, + Filter: prompter.LatinMatchingFilter, }, }) } else { @@ -237,6 +239,7 @@ func MetadataSurvey(io *iostreams.IOStreams, baseRepo ghrepo.Interface, fetcher Message: "Assignees", Options: assignees, Default: state.Assignees, + Filter: prompter.LatinMatchingFilter, }, }) } else { @@ -251,6 +254,7 @@ func MetadataSurvey(io *iostreams.IOStreams, baseRepo ghrepo.Interface, fetcher Message: "Labels", Options: labels, Default: state.Labels, + Filter: prompter.LatinMatchingFilter, }, }) } else { @@ -265,6 +269,7 @@ func MetadataSurvey(io *iostreams.IOStreams, baseRepo ghrepo.Interface, fetcher Message: "Projects", Options: projects, Default: state.Projects, + Filter: prompter.LatinMatchingFilter, }, }) } else {