Commit Graph

40 Commits

Author SHA1 Message Date
Kyle Hornberg 958198b20e Style: yapf 2019-04-16 20:25:09 -05:00
Kyle Hornberg e5a2c6ab89 Style: flake8 2019-04-16 15:50:07 -05:00
Kyle Hornberg c590f27169 Bug Fix: Properly verify and check required nested parameters 2019-04-16 15:50:07 -05:00
Kyle Hornberg be18953374 Fix style 2019-04-15 15:17:31 -05:00
Kyle Hornberg ff6203be27 Feature: Use route data
Data is updated from @octokit/routes -> npm -> octokitpy-routes -> pypi
2019-01-02 14:51:58 -06:00
Kyle Hornberg 708eb26746 Style: Moved docstring to bottom of file 2019-01-02 14:51:41 -06:00
Kyle Hornberg f172d25fb7 Bug Fix: Correctly validate object/dictionary parameters 2018-10-05 09:59:44 -05:00
Kyle Hornberg 75a6a14bc7 Test: Fix UnboundLocalError 2018-10-04 11:54:41 -05:00
Kyle Hornberg 2e38455aab Style: yapf 2018-10-04 11:47:46 -05:00
Kyle Hornberg 3d8c2f3bb0 Feature: Change to using @octokit/routes json
The json file is automatically created GitHub's documentation. The file
is not yet automatically updated here.

Also fix an object inheritance bug concerning headers.
2018-10-04 11:01:46 -05:00
Kyle Hornberg bab54c5336 Style: flake8, linkcheck 2018-09-04 08:44:39 -05:00
Kyle Hornberg abe94458ed Feature: Add pagination 2018-08-29 10:46:08 -05:00
Kyle Hornberg 4a3334f90c Bug Fix: Send boolean defaults 2018-06-01 15:28:53 -05:00
Kyle Hornberg 27dc4bc361 Bug Fix: Can use app auth 2018-06-01 13:34:58 -05:00
Kyle Hornberg a80ca34f06 Bug Fix: Return copy of self instead of self
If one had a single reference object, that object would be mutated
unknowningly.

Example:

repo = octokit.repos.repo(...)
repo.issues.create(...)

repo now is the response of the created issue not the getting of the
repo.
2018-03-12 15:10:10 -05:00
Kyle Hornberg 0266a2e503 Feature: Raise OctokitParameterError for parameter errors 2018-03-12 15:09:15 -05:00
Kyle Hornberg ebbfb0e4d4 Bug Fix: Correct type checking 2018-03-12 10:46:19 -05:00
Kyle Hornberg e659549b69 Enhancement: Do not break if response is not JSON
DELETEs do not return content
2018-03-09 13:51:47 -06:00
Kyle Hornberg 3e5b13a82c Style: yapf 2018-02-27 09:22:51 -06:00
Kyle Hornberg 37e983961f Enhancement: Allow chaining request and responses with shared url state 2018-02-27 09:07:41 -06:00
Kyle Hornberg 55d17c6725 Enhancement: method calls return self with response attributes 2018-02-26 13:34:49 -06:00
Kyle Hornberg f1e93c792b Feature: Add authentication as app -- Breaking Change!
Previously 'app' auth was actually authentication as an 'installation'.
This corrects that. Use auth="installation".
2018-02-22 15:47:49 -06:00
Kyle Hornberg 10933b7281 Test: Use string instead of json.dumps
json.dumps on Python 3.4 and 3.5 produces differnt signatures
2018-02-20 09:34:14 -06:00
Kyle Hornberg e9f8b654e6 Test: Use ChainMap to support python 3.4 2018-02-20 09:33:52 -06:00
Kyle Hornberg 88772f8799 Style: yapf 2018-02-09 13:16:19 -06:00
Kyle Hornberg 9a527ae9ae Bug Fix: Use the payload sent by the webhook
String to json.loads to json.dumps does not produce the same string
required for validation.
2018-02-09 13:10:47 -06:00
Kyle Hornberg f3609be9d8 Enhancement: Add authentication 2018-02-07 15:15:51 -06:00
Kyle Hornberg 829192e377 Enhancement: Send query string params 2018-02-07 12:06:58 -06:00
Kyle Hornberg cf730e7a05 Enhancement: Provide default headers
https://developer.github.com/v3/#current-version
https://developer.github.com/v3/#parameters
2018-02-07 12:06:58 -06:00
Kyle Hornberg 6f05bc4204 Enhancement: Option to return app id from webhook 2018-02-07 08:40:21 -06:00
Kyle Hornberg 44a7c1dc55 Enhancement: Verify user agents 2018-02-06 15:01:09 -06:00
Kyle Hornberg 3bc3ddca28 Enhancement: Check delivery guid 2018-02-06 14:40:24 -06:00
Kyle Hornberg f8515ab5be Feature: verify webhooks 2018-02-06 14:18:47 -06:00
Kyle Hornberg 81db4b1f18 Test: clean up 2018-02-06 14:09:18 -06:00
Kyle Hornberg 66b10f8074 Style: yapf 2018-02-06 12:43:52 -06:00
Kyle Hornberg 6bedd84678 Style: isort 2018-02-06 11:36:42 -06:00
Kyle Hornberg a707d38e25 Enhancement: Validate request body parameters and use defaults 2018-02-06 07:10:41 -06:00
Kyle Hornberg d97405c9a3 Test: Fix 2018-02-06 06:25:04 -06:00
Kyle Hornberg 039542b2e7 Enhancement: working clients 2018-02-05 16:36:27 -06:00
Kyle Hornberg 2239555697 Feature: An octokit is born 2018-02-05 14:43:08 -06:00