docbrown/app/services/github
Diogo Osório a5e7b1cf60
Rely on error types to determine when a repo should be removed on the RepoSyncWorker (#10131)
* Registers the Github AcocuntSuspended & RepositoryUnavailable errors

Adds the above-mentioned errors to the list of known errors raised by
Octokit as to make possible for the rest of the application to
specifically trap those.

* Makes the RepoSyncWorker error handling rely on types

The current implementation attempted to parse the error message to
determine if the error reported by Github's API can/should be handled,
this commit changes the implementation so that the exception type is
used instead.
2020-09-01 15:01:23 -04:00
..
client.rb Refactor GitHub::Client to extract Github::OauthClient for users (#7848) 2020-05-18 14:23:55 +02:00
errors.rb Rely on error types to determine when a repo should be removed on the RepoSyncWorker (#10131) 2020-09-01 15:01:23 -04:00
oauth_client.rb Rubocop: Enable and fix Style/OptionalBooleanParameter cop (#9711) 2020-08-10 19:35:55 +02:00