Commit Graph

12 Commits

Author SHA1 Message Date
Rémy Coutable e484a06472 Retrieve PR comments only when we know there are any
The Pull Request resource doesn't include the `comments` field, while
the Issue resource does. And since we're looping through all issues
anyway, we can freely check if the issue is a PR and has comments and in
this case only fetch comments for it.

That means if you have 1000 PRs but only 200 with comments, you will do
200 API requests instead of 1000. :notbad:

Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-09-26 19:17:00 +02:00
Douglas Barbosa Alexandre 0e191b4ccd Allow users to disable SSL verification if not connecting to github.com 2017-08-07 14:11:38 -03:00
Douglas Barbosa Alexandre cb08cb2218 Extrac common timeout to a constant on Github::Client 2017-08-07 13:06:13 -03:00
Douglas Barbosa Alexandre 6f642e3f7b Fix small typoe on Github::Client#root_endpoint 2017-08-07 13:06:13 -03:00
Douglas Barbosa Alexandre a7363d4a54 Move GitHub root endpoint methods to Github::Client 2017-08-07 13:06:12 -03:00
Douglas Barbosa Alexandre 30794972f4 Set timeout options to the Github::Client 2017-04-24 21:21:58 -03:00
Douglas Barbosa Alexandre 275f00ee88 Refactoring Github::RateLimit 2017-04-24 19:49:17 -03:00
Douglas Barbosa Alexandre 782aab1319 Pass a options hash to Github::Client 2017-04-24 16:17:52 -03:00
Douglas Barbosa Alexandre a32adb82dc Remove sensitive information 2017-04-24 16:17:52 -03:00
Douglas Barbosa Alexandre 00912ed963 Refactoring Github response 2017-04-24 16:17:52 -03:00
Douglas Barbosa Alexandre 104144f373 Refactoring client to not parse response body automatically 2017-04-24 16:17:52 -03:00
Douglas Barbosa Alexandre fc42f3dffa Add basic client for the GitHub API 2017-04-24 16:17:52 -03:00