Commit Graph
685 Commits
Author SHA1 Message Date
Daniel Pocock cd8fe788e4 Allow access to preview versions of the server-side API 2015-02-03 11:56:13 +01:00
Vincent Jacques aadc286839 Work-around Issue278 2014-10-07 18:45:30 -07:00
Vincent Jacques b402e5ddd5 Merge commit 'pull/275/head' 2014-09-28 13:45:52 -07:00
Tomas Radej cff1a422c2 Capitalization of the 2FA OTP request header 2014-09-24 11:49:55 +02:00
Andrew Scheller 959bc27f2d documentation typos 2014-05-27 09:44:35 +01:00
Vincent Jacques abca7a026e pep8
This is strange, maybe Cygwin's version is stricter.
No time to investigate.
2014-05-04 12:54:05 -07:00
Vincent Jacques ca0132f6c7 Merge branch 'pr247' into develop 2014-05-04 12:46:16 -07:00
Vincent Jacques 12900865ed Prepare merge of #247
- refactor Gists tests
- re-add Gist.user to not break client code (value as been None for a while, but let's not remove the attribute)
2014-05-04 12:45:44 -07:00
Vincent Jacques 580528876a Acknowledge some lack of test coverage 2014-05-04 12:18:00 -07:00
Dale Jung 233d9d6759 v3 changes gist.user to gist.owner 2014-04-24 11:05:24 -04:00
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
Vincent Jacques 836b1f6b84 Merge branch 'fix_search_quoting' of https://github.com/cro/PyGithub into pr/237 2014-03-16 10:07:28 -07:00
Vincent Jacques e79dd520e3 Fix ContentFile.decoded_content for Python 3.0 to 3.2 2014-03-16 10:01:47 -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 8bd6a4059e Fix tests for Python 3 2014-03-02 20:57:05 -08:00
Vincent Jacques 07c026742c Restore coverage for several previous PRs 2014-03-02 20:48:13 -08: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 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