Update private repository detection logic for Gitlab and Github
Created by: erzhtor
Closes https://github.com/sourcegraph/sourcegraph/issues/27382
Description
This PR:
- Updates private repository detection logic for Github & Gitlab by using corresponding REST APIs
NOTE: it still sends repo names to check if the repo exists in Sourcegraph or not.
Before merging
-
Test on different code hosts (if applicable) -
GitHub -
Gitlab -
GitHub Enterprise -
Refined GitHub -
Phabricator -
Phabricator integration -
Bitbucket -
Bitbucket integration
-
-
Test on different browsers (if applicable) -
Chrome -
Firefox -
Safari
-
-
Add change log message to client/browser/CHANGELOG.md, under "Unreleased" section. (if applicable)