Commit Graph
1183 Commits
Author SHA1 Message Date
Vincent Jacques 87dbb94cee Fix doc (#224) 2014-03-02 21:01:34 -08:00
Vincent Jacques 8bd6a4059e Fix tests for Python 3 2014-03-02 20:57:05 -08:00
Vincent Jacques 6f178f6f08 Merge branch 'pr224' 2014-03-02 20:48:28 -08:00
Vincent Jacques 07c026742c Restore coverage for several previous PRs 2014-03-02 20:48:13 -08:00
Vincent Jacques ec810e29f2 Merge branch 'develop' 2014-03-02 19:55:43 -08:00
Vincent Jacques d754301dce Readme 2014-03-02 19:54:29 -08:00
Thialfihar 6ef3a0220f Fix add_attribute insertion logic
The code didn't work if it couldn't find a property in the file
that is lexicographically greater than the new attribute.
It now accepts _identity as an "end point" to insert before, and
empty lines in _initAttributes() and _useAttributes(), as they mark
the end of the method.

Also add "float" as a possible type, mainly for the "score" attribute
in search results.
2014-02-08 21:06:43 +01:00
Thialfihar 59e92f89bd Add decoded_content property to ContentFile
The only encoding currently supported is base64, but that's ok, since
v3 of the GitHub API only mentions base64.
2014-02-08 21:06:43 +01: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
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 f69c3edb84 Adapt doc generation to v1/v2 2014-01-26 12:13:11 -08:00
Vincent Jacques b7e58c74d1 Merge pull request #221 from clouserw/patch-1
fix typos
2014-01-13 17:02:33 -08:00
Wil Clouser 36084e6488 one more typo 2014-01-13 16:48:59 -08:00
Wil Clouser 9ecb3a8fb7 fix typos 2014-01-13 16:47:56 -08:00
Vincent Jacques 8a8505cf30 Add reference of import twitter 2013-12-23 19:56:16 -08:00
Vincent Jacques 937c7fccf5 Publish version 1.23.0 2013-12-23 19:51:36 -08: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 eeaf893e9e Remove Python 2.5 which seems broken on Travis
https://travis-ci.org/jacquev6/PyGithub/jobs/15501387
2013-12-15 18:00:49 -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 3d85e29207 Merge branch 'develop' 2013-11-17 13:45:12 -08:00
Vincent Jacques e3ab7a6432 Update readme for #203 2013-11-17 10:51:58 -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 58136aff40 Push to master to reset statistics 2013-11-10 17:19:17 -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