mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-118305 github: try to fix GH:E specific bug
This commit is contained in:
@@ -520,8 +520,15 @@ public class GithubApiUtil {
|
||||
List<GithubRepo> repos = new ArrayList<GithubRepo>();
|
||||
|
||||
repos.addAll(getUserRepos(auth));
|
||||
repos.addAll(getMembershipRepos(auth));
|
||||
repos.addAll(getWatchedRepos(auth));
|
||||
|
||||
// We already can return something useful from getUserRepos, so let's ignore errors.
|
||||
// One of this may not exist in GitHub enterprise
|
||||
try {
|
||||
repos.addAll(getMembershipRepos(auth));
|
||||
} catch (GithubStatusCodeException ignore) {}
|
||||
try {
|
||||
repos.addAll(getWatchedRepos(auth));
|
||||
} catch (GithubStatusCodeException ignore) {}
|
||||
|
||||
return repos;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user