Add a capability for whether a HostingService can list remote repos.
Review Request #5923 — Created June 2, 2014 and submitted — Latest diff uploaded
This adds
HostingService.supports_list_remote_repositories
, which is
used for determining ifget_remote_repositories()
and
get_remote_repository()
can be called. This defaults to false, but
GitHub enables it.The API exposes this on
HostingServiceResource
, and
HostingServiceAccountResource
uses it to determine whether to show a
'remote_repositories' link.
Unit tests pass.
Tested manually by looking at the API results for GitHub services/accounts
and non-GitHub services/accounts.