Commit Graph
51 Commits
Author SHA1 Message Date
Tyler Treat 0ddfaaca01 Implement support for getting repo by id
This allows the Github class to retrieve repos by either their full name
or id. If the user passes in an id for a repo which doesn't exist or in which
they don't have sufficient permissions, an UnknownObjectException will
be raised. This addresses issue #245.
2014-04-22 21:12:22 -05:00
Vincent Jacques 9f2ac570f8 Fix urlencoding for search (see #237)
Parameters are encoded in Requester => simply remove urllib.quote
Path needs to be encoded => change to urllib.quote_plus as in #237
2014-03-16 10:47:31 -07:00
C. R. Oldham 972a91e4cc Change quote to quote_plus and avoid double-escaping some problematic characters. 2014-03-06 11:16:11 -07:00
Vincent Jacques 87dbb94cee Fix doc (#224) 2014-03-02 21:01:34 -08:00
Vincent Jacques 07c026742c Restore coverage for several previous PRs 2014-03-02 20:48:13 -08:00
Thialfihar 3afae930a7 Add code search
Code search results are content resources with an embedded repository.
The "content" and "encoding" attributes aren't returned and require
completion.
2014-02-08 21:06:43 +01:00
Thialfihar b1524e290c Add issue search
Qualifiers can be added via keyword args in order to keep the method
uncluttered. Qualifiers could also be given in the query string
directly.
2014-02-08 21:06:43 +01:00
Thialfihar b1e60eb95b Add user search
Qualifiers can be added via keyword args in order to keep the method
uncluttered. Qualifiers could also be given in the query string
directly.
2014-02-08 21:06:43 +01:00
Thialfihar b5faac0144 Add repository search
Qualifiers can be added via keyword args in order to keep the method
uncluttered. Qualifiers could also be given in the query string
directly.
2014-02-08 21:06:42 +01:00
Steve Brown 282278d19c Add initial version of getemojis 2013-12-01 23:19:58 +00:00
Vincent Jacques f78311ab48 Github.get_hook (#196) 2013-09-11 23:24:28 +02:00
Vincent Jacques 4e8f36ba39 Small updates of doc 2013-09-06 17:24:06 +02:00
Vincent Jacques c0dae31a97 Add many missing attributes 2013-09-06 17:14:59 +02:00
Vincent Jacques 8f4a309c0e Github.get_rate_limit 2013-09-06 11:38:20 +02:00
Vincent Jacques c819580ce8 Get status of Github API (#188) 2013-09-06 11:01:33 +02:00
Vincent Jacques f2feb81dae Add default parameters to greatly reduce code redoundancy 2013-09-06 11:01:32 +02:00
Vincent Jacques dc610dfaac Small fixes and todos 2013-09-06 10:51:50 +02:00
Vincent Jacques 3fe9edf087 Implement object persistence
This follows my proposal for #193.
Largely inspired by AKFish's work.
2013-09-04 23:28:44 +02:00
Vincent Jacques 64cf539c83 #193: Add a param to Requester.requestXxx for request headers 2013-08-23 11:31:01 +02:00
Vincent Jacques 8a2624e3a1 Merge branch 'topic/RememberHeaders' into develop (#192)
Conflicts:
	github/Issue.py
	github/MainClass.py
	github/PaginatedList.py
	github/Repository.py
	github/Requester.py
2013-08-22 10:30:14 +02:00
Vincent Jacques 5c475c7683 First review of #192 (pep8, headers... nothing important)
./manage.sh check
./manage.sh fix_headers
2013-08-22 10:12:38 +02:00
Vincent Jacques 1c993d3a5f Github.get_repos (to get all public repositories) 2013-08-21 22:28:15 +02:00
Vincent Jacques 2dec13c974 Run compare_to_api_ref_doc.py 2013-08-21 16:14:13 +02:00
Vincent Jacques 20107078d2 Fix copyrights (#181 #182 #184 #186 #187) 2013-08-21 16:08:02 +02:00
AKFish 912bec79d2 Update copyright information 2013-08-21 17:45:01 +08:00
AKFish 3c1d17cd64 Update Repository.py 2013-08-21 17:13:03 +08:00
AKFish ef912af6b7 Update Organization.py 2013-08-21 17:01:13 +08:00
AKFish ba6800ada4 Update NamedUser.py 2013-08-21 16:57:10 +08:00
AKFish dc8173a532 Update Gist*.py 2013-08-21 15:39:34 +08:00
AKFish 28a49b94d8 Update AuthenticatedUser.py 2013-08-21 15:06:21 +08:00
AKFish ac1585ee13 Update HookDescription.py. 2013-08-21 13:59:08 +08:00
AKFish 0879cbb6ff Update GitignoreTemplate.py 2013-08-21 13:23:21 +08: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
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 f62f384bc6 Implement GET /users (issue #173) 2013-06-18 17:58:29 +02:00
Vincent Jacques aa7df884c4 Small fixes in doc 2013-04-25 15:27:26 +02:00
Jonathan J Hunt f7b3e9956d Added default user agent. 2013-04-24 12:28:02 -07:00
Vincent Jacques db5560bd65 Add a script to check copyrights with git log. And fix copyrights. 2013-03-29 16:54:15 +01:00
Vincent Jacques a397fac6db Fix doc for raw_data (issue #144) 2013-03-21 21:56:51 +01:00
Vincent Jacques 109495175e Fix doc of properties of class Github 2013-03-21 21:45:43 +01:00
Vincent Jacques da6bbdb694 Merge branch 'topic/Notifications' into develop 2013-03-19 23:14:29 +01:00
Vincent Jacques 040f024cf4 Fix doc 2013-03-19 22:31:10 +01:00
Vincent Jacques edcf40bc7f Move get_notification(s) to AuthenticatedUser (pull #148) 2013-03-19 22:07:29 +01:00
Vincent Jacques 23d668f11b Remove debug print (pull #148) 2013-03-19 21:26:28 +01:00
Peter Golm 50a243671f Merge remote-tracking branch 'origin/develop' into NotificationAPI 2013-03-16 17:35:08 +01:00
Vincent Jacques 3af543a1fe Add a way to create an object from raw data (Issue #144) 2013-03-14 12:32:46 +01:00
Vincent Jacques e25a6a49d1 Add Github.per_page to tweak PaginatedList (Issue #145) 2013-03-14 12:01:41 +01:00