Add HostingService.get_remote_repository.
Review Request #5913 — Created May 31, 2014 and submitted
This allows fetching of an individual repository, with the given ID. The
IDs are specific to the HostingServices, and are provided when listing
repositories.GitHub's remote repository IDs have been updated to provide both the
owner and repository name as the ID, instead of the numeric ID. This is
required in order to actually fetch repository information.
Unit tests pass.
Tested manually with the upcoming web API additions, with both valid and
invalid repository IDs.
Description | From | Last Updated |
---|---|---|
Hmm. It might be nice to make _check_api_error preserve the code for HTTPErrors inside HostingServiceError so we can check against … |
david |
-
This is a review from Review Bot. Tool: Pyflakes Processed Files: reviewboard/hostingsvcs/github.py reviewboard/hostingsvcs/tests.py reviewboard/hostingsvcs/service.py Ignored Files:
- Change Summary:
-
HostingServiceError now preserves codes, and
api_get_remote_repository
checks for it instead of "Not Found". - Commit:
-
8cc7873841cbf4c067b44b09a43117dbecf7923293067536416acfbe9fdd9ace714281ec7a9d6460
-
This is a review from Review Bot. Tool: PEP8 Style Checker Processed Files: reviewboard/hostingsvcs/errors.py reviewboard/hostingsvcs/tests.py reviewboard/hostingsvcs/github.py reviewboard/hostingsvcs/service.py Ignored Files: