Skip to content

Unable to get list of users to assign them to a pull request #7908

@christophegehin

Description

@christophegehin

Extension version: 0.118.2
VSCode Version: 1.104.2
OS: Windows 11 / WSL
Repository Clone Configuration (single repository/fork of an upstream repository): single repository
GitHub Product (GitHub.com/GitHub Enterprise version x.x.x): GitHub Enterprise version 3.15.4

I'm using VSCode with WSL. So the extension is running under WSL.

The extension is failing filling the list of reviewers.

Steps to reproduce :
Install the extension
Configure github authentication against a github enterprise-server
Generate a pull request
Clic on then button to refresh list of reviewers
=>No reviewers available for this repository

I've enable trace log and get :
2025-10-01 14:24:56.233 [debug] [GitHubRepository+0] Using cached metadata teamunix/test_tof
2025-10-01 14:24:56.233 [debug] [VariableSubstitution] ${owner} -> teamunix
2025-10-01 14:24:56.233 [debug] [VariableSubstitution] ${repository} -> test_tof
2025-10-01 14:24:56.233 [debug] [VariableSubstitution] ${user} -> ${user}
2025-10-01 14:24:56.233 [debug] [FolderRepositoryManager+0] Fetch pull request category repo:teamunix/test_tof is:open author:copilot-swe-agent[bot] involves:${user} - enter
2025-10-01 14:24:56.234 [debug] [GitHubRepository+0] Using cached metadata teamunix/test_tof
2025-10-01 14:24:56.234 [debug] [RateLimit] Extension rate limit remaining: 140, /search/issues
2025-10-01 14:24:56.357 [error] [FolderRepositoryManager+0] Fetching pull request with query failed: HttpError: Validation Failed: {"message":"The listed users cannot be searched either because the users do not exist or you do not have permission to view the users.","resource":"Search","field":"q","code":"invalid"} - https://docs.github.com/enterprise-server@3.15/v3/search/

I tried with github cli and get that output :
gh api -H "Accept: application/vnd.github+json" -H "X-GitHub-Api-Version: 2022-11-28" --hostname HOSTNAME /search/users?q=Q
{
"total_count": 0,
"incomplete_results": false,
"items": []
}

Can you confirm if that gh call is equivalent of the http call made by the extension ?

Doest that mean my userid needs to have access to list all users of the enterprise ?

Regards

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugcandidateIssue identified as probable candidate for fixing in the next release

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions