Commit Graph
666 Commits
Author SHA1 Message Date
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
Thialfihar 9a51a61e3f Make PaginatedList support the search wrapper JSON
For /search resources the resulting JSON contains 'total_count' and
'items'. The latter is the list PaginatedList expects, so just
transparently use that list. Everything else works just like other
lists.

Also change __grow()'s visibility to allow PaginatedList to use it
in order to peek at 'total_count', making it available as a property.
2014-02-08 16:45:59 +01:00
Vincent Jacques 4dfc3dec5f Merge branch 'develop' 2013-12-23 19:40:04 -08:00
Vincent Jacques 8c9da4d7f3 Merge branch 'pr220' into develop 2013-12-23 19:38:53 -08:00
Vincent Jacques f74c95a944 Integrate #220 (fix tests and pep8) 2013-12-23 19:38:39 -08:00
Vincent Jacques 411262d289 Merge branch 'develop' 2013-12-23 19:32:28 -08:00
Vincent Jacques fefb13d721 Merge pull request #218 from farrd/master
Can now specify assignee as a string
2013-12-23 19:27:00 -08:00
Vincent Jacques 6767e75c52 Fix #216: handle 'Link' header
Headers with capitals are returned by http.client (replacing httplib in Python 3)
2013-12-23 19:25:11 -08:00
Cameron White 36352598ae Added onetime_password to create_authorization
github.AuthenticatedUser.create_authorization has been modified to
support two-factor authentication. When two-factor authentication
is enabled create_authorization will throw an TwoFactorException.
The onetime password can be then be passed to create_authorization
on a subsequent call.
2013-12-19 04:05:26 -08:00
David Farr 031471d685 meeting coding conventions 2013-12-16 17:00:52 -08:00
David Farr ce3fb533e0 adding the tests for issue 214 2013-12-16 16:24:24 -08:00
David Farr 10bbfc1def Now accepts strings for assignee.
When calling pygithub for calls associated with assignees you can now simply pass a string instead of a NamedUser object. This applies to the following methods:
- issue.edit()
- repo.create_issue()
- repo.get_issues()
- repo.has_in_assignees()
- repo.has_in_collaborators()
- repo.remove_from_collaborators()
- repo.add_to_collaborators()
2013-12-16 11:15:17 -08:00
Vincent Jacques 66edeb601f Publish version 1.22.0 2013-12-15 18:11:19 -08:00
Vincent Jacques a367980ce6 Merge branch 'pr213' into develop 2013-12-15 17:44:12 -08:00
Vincent Jacques 68b1ae2ee7 Merge branch 'pr212' into develop 2013-12-15 17:44:03 -08:00
poulp de8932976f Add /user/teams (GET) 2013-12-07 22:00:09 +01:00
Cameron White 212b304371 Added 'stargazers_count' property to Repository 2013-12-04 11:20:10 -08:00
Steve Brown 282278d19c Add initial version of getemojis 2013-12-01 23:19:58 +00:00
Vincent Jacques 3ff7e4843e Publish version 1.21.0 2013-11-17 14:07:01 -08:00
Vincent Jacques ebe6f01151 Fix tests for Python 2.5 and 2.6 2013-11-17 10:19:40 -08:00
Vincent Jacques c6671c6466 Finish .../stats/... (#203) 2013-11-17 10:16:59 -08:00
Vincent Jacques 1eba8a3f05 Fix copyright headers 2013-11-17 09:25:28 -08:00
Vincent Jacques a4910ac922 First step of implementation of Repository.get_stats_xxx (#203) 2013-11-10 18:09:48 -08:00
Vincent Jacques b082414ad0 Fix doc 2013-11-10 18:04:35 -08:00
Vincent Jacques 1a22a22135 Fix tests broken by previous commit 2013-11-10 17:32:28 -08:00
Vincent Jacques 6c37e68901 Add 'author' to 'Repository.get_commits' (#204) 2013-11-10 16:52:46 -08:00
Vincent Jacques d626f21484 Implement equality comparison of CompletableGithubObject (#201) 2013-11-10 16:28:52 -08:00
Vincent Jacques 5692c1ebb2 Acknowledge lack of test coverage in the old Download API 2013-11-10 15:57:08 -08:00
Vincent Jacques 22f366b540 Accept strings as well as Label objects (#202)
This should be more generic, but it's a wig work to do it
everywhere. Let's keep that in mind for V2.
2013-11-10 15:45:33 -08:00
Vincent Jacques 51fa637514 Remove tests for deleted methods! 2013-10-20 19:17:38 -07:00
Vincent Jacques c83b0ef7d5 Remove Repository.create_download and NamedUser.create_gist 2013-10-20 19:09:30 -07:00
Vincent Jacques 5093cc255a Fix public/private in Repository.edit (#199) 2013-10-20 19:03:35 -07:00
Vincent Jacques d445be9a7f Fix (?) Travis for Python 2.5 and 2.6 2013-09-12 11:53:30 +02:00
Vincent Jacques 072bf24277 Raise exception only when user *accesses* an attribute with a bad value (#195) 2013-09-12 11:45:29 +02:00
Vincent Jacques 2ee7aff8e6 Factorize 2013-09-12 10:16:57 +02:00
Vincent Jacques 597e123029 Factorize the creation of attributes (preparation for #195) 2013-09-12 09:27:25 +02:00
Vincent Jacques 4a5009741a Use ValuedAttribute and NotSet.value (preparation for #195) 2013-09-12 00:40:27 +02:00
Vincent Jacques f78311ab48 Github.get_hook (#196) 2013-09-11 23:24:28 +02:00
Vincent Jacques 8a83de380b Make Rate.reset an UTC datetime 2013-09-06 17:32:00 +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 d102f358be Homogenize AllTests.py 2013-09-06 14:21:42 +02:00
Vincent Jacques a6b4165d6c ./manage.sh fix_headers 2013-09-06 11:39:12 +02:00
Vincent Jacques 8f4a309c0e Github.get_rate_limit 2013-09-06 11:38:20 +02:00
Vincent Jacques a9b9765254 Acknowledge branch coverage lack 2013-09-06 11:17:09 +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