Commit Graph
912 Commits
Author SHA1 Message Date
Adrian Petrescu e6520adb48 Adding since, until parameters to Repository.getCommits() 2013-08-06 21:14:39 -04:00
Ed Jackson 211e4633ee Minor enhancements to rate limiting information
If rate limiting information hasn't been retrieved already, it will be checked
rather than just assuming 5000 requests remaining of 5000.

Add an additional attribute `rate_limiting_resettime` to reflect github's new
X-RateLimit-Reset header. This integer value is a unix timestamp.

RateLimiting unit test updated accordingly.
2013-08-06 10:42:57 -05:00
davidbrai cb03b9e7d1 bugfix: returning real list instead of generator
Changed reversed(content) to content[::-1] in order to return
a real list and not a generator.
The code in PaginatedListBase.__grow does an iteration over
newElements when using `+=` and then returns them.
When using a generator, newElements would be empty when they are returned.
2013-08-03 16:49:10 +03:00
davidbrai 271f3f301e bug fix: empty nextUrl if no next/prev
Fixes a bug introduced in the previous commits.
Now testing a case where no lastUrl is returned.
Also fixing a regression where nextUrl wasn't erased properly.
2013-08-02 18:59:11 +03:00
davidbrai da6bd8c827 remove print #oops 2013-08-02 18:28:48 +03:00
davidbrai ef4cf44ebd support reverse iteration in PaginatedList
This uses the 'last' and 'prev' links in the HTTP headers.
The usage is repo.get_issues().reversed
2013-08-02 18:20:39 +03:00
Mark Roddy 304d387114 Handle github api response that isn't valid json 2013-07-19 20:24:50 -04:00
Vincent Jacques 7c49e48305 Fix links to ref in :calls: sections 2013-07-16 23:46:23 +02:00
Vincent Jacques 8484260dc5 Fix our doc to match URLs described in Github API v3 ref doc 2013-07-16 10:32:57 +02:00
Vincent Jacques 06a3d87098 Change source file header format 2013-07-13 19:03:53 +02:00
Vincent Jacques 56309b90f2 Run the script added in previous commit 2013-07-13 11:10:00 +02:00
Vincent Jacques 837dff5677 Restore coverage 2013-07-07 17:44:47 +02:00
Vincent Jacques 792970e524 pep8 2013-07-07 17:30:24 +02:00
Stuart Glaser 5b2954e471 Populates Issue's repository from URL when not in response. 2013-06-29 03:43:12 -07:00
Vincent Jacques 88db904484 Add a (redoundant) test for pull #176 2013-06-19 12:35:25 +02:00
davidbrai 8d22935180 bugfix: using custom per_page in repo.get_comments 2013-06-19 00:36:03 +03:00
Vincent Jacques d0002b7a3c Fix pep8 and copyrights 2013-06-18 22:35:46 +02:00
Vincent Jacques 6306f798fd Add test for pull request #174 2013-06-18 22:12:15 +02:00
Mark Roddy 5e6adc580d handle 302 responses in get_dir_contents requests 2013-06-18 18:13:33 +02:00
Vincent Jacques f62f384bc6 Implement GET /users (issue #173) 2013-06-18 17:58:29 +02:00
martinqt ab674dfcbc PullRequestMergeStatus docstring 2013-06-04 15:35:09 +02:00
martinqt dd13f2b4bc Don't think this anchor is needed 2013-06-04 15:33:13 +02:00
martinqt a56b10579d Fix Event url 2013-06-04 15:32:17 +02:00
martinqt 8d236e9157 Event docstring 2013-06-04 15:31:00 +02:00
martinqt 5ce5f5c684 Label docstring 2013-06-04 15:29:35 +02:00
martinqt 21cf9b15b5 Milestone docstring 2013-06-02 18:50:34 +02:00
martinqt 970bc6146c Update Notification 2013-06-02 14:45:00 +02:00
martinqt 78f6f763cb Organization docstring 2013-06-02 14:43:47 +02:00
martinqt 573b327193 PullRequest docstring 2013-06-02 12:38:07 +02:00
martinqt 0c15af9dec PullRequestComment docstring 2013-06-02 12:36:21 +02:00
martinqt d615ead964 RepositoryKey docstring 2013-06-02 12:33:01 +02:00
martinqt bad19c06a4 Repository docstring 2013-06-02 12:32:43 +02:00
martinqt 712c86c07b Tag docstring 2013-06-02 12:30:50 +02:00
martinqt 6c37eeddbe Team docstring 2013-06-02 12:28:37 +02:00
martinqt 97abc24e26 UserKey docstring 2013-06-02 12:27:49 +02:00
martinqt 7a643e9fef Update branch (with anchor) 2013-06-01 13:31:37 +02:00
martinqt 7cc0afc61a Change doc sentance 2013-06-01 13:29:32 +02:00
martinqt e824a0bd36 Replace doc url 2013-06-01 13:04:55 +03:00
Vincent Jacques c93e4b8ff4 Add tests for html_url for Issue and PullComment (#170)
I just modified the ReplayData manually and added a "get" in the tests.
2013-05-31 13:48:02 +02:00
Michael Stead 1f98067e95 Add html_url attribute to comments.
html_url attributes were missing from IssueComment and PullRequestComment.
Added to both as per the GitHub API.
2013-05-27 14:13:14 -03:00
Srijan Choudhary 161097b23c Updates api reference url in docstrings for repository keys 2013-05-19 02:35:04 +05:30
Vincent Jacques db2a9db721 Add two new types of exceptions (issue #152) 2013-05-17 14:27:17 +02:00
Vincent Jacques 79365fe4bc De-activate our only intergration test, to pass on Travis-CI 2013-05-17 14:09:36 +02:00
Vincent Jacques 7f74a92b55 AuthenticatedUser.get_user_issues and Organization.get_issues (issue #166) 2013-05-17 13:52:49 +02:00
Vincent Jacques 1c4aec6891 Add parameters to AuthenticatedUser.get_issues (issue #166) 2013-05-17 13:42:43 +02:00
Vincent Jacques 319ff29d25 Merge branch 'develop' 2013-04-25 20:14:31 +02:00
Vincent Jacques aa7df884c4 Small fixes in doc 2013-04-25 15:27:26 +02:00
Vincent Jacques 97af2b6da2 Fix pagination with secret-key authentication (issue #158) 2013-04-25 14:31:51 +02:00
Vincent Jacques 10a567f62e Fix tests for #161 2013-04-25 09:51:37 +02:00
Jonathan J Hunt a8e5a16ba5 Fixed pep8 2013-04-24 12:30:39 -07:00