Skip to content

repo-updater: fallback onto users repos endpoint when org fails

Administrator requested to merge org-selector-fallback into master

Created by: kzh

This addresses #4764. org:<org name> in repositoryQuery is special cased to hit the org repos API directly. This is to avoid reaching the 1000 search results limit. However, org:<username> is also valid input. This PR tries the user repos API (users/:user/repos) if the org repos (orgs/:org/repos) endpoint fails.

Side: user:<username> should also be special cased to hit this users endpoint in a followup PR.

Merge request reports

Loading