Only support assignee searchfunc on GitHub.com

This commit is contained in:
Kynan Ware 2026-01-11 19:47:39 -07:00
parent 07dfdf97ae
commit ad8c770013

View file

@ -295,7 +295,9 @@ func editRun(opts *EditOptions) error {
// Wire up search functions for assignees and reviewers.
// TODO: Wire up reviewer search func.
editable.AssigneeSearchFunc = assigneeSearchFunc(apiClient, repo, &editable, pr.ID)
if issueFeatures.ActorIsAssignable {
editable.AssigneeSearchFunc = assigneeSearchFunc(apiClient, repo, &editable, pr.ID)
}
opts.IO.StartProgressIndicator()
err = opts.Fetcher.EditableOptionsFetch(apiClient, repo, &editable, opts.Detector.ProjectsV1())