Changelog

5.3.0

  • Add support passing extra_headers when making requests (PR #192)

  • Add a getstatus() method for APIs that do not return content. (PR #194)

5.2.1

  • Fix cgi and importlib_resources deprecations. (PR #185)

  • Add support for Python 3.11 and drop EOL Python 3.6 (PR #184)

5.2.0

  • Make the minimum version of PyJWT be v2.4.0.

5.1.0

5.0.1

5.0.0

4.2.0

  • gidgethub.abc.GitHubAPI.post() now accepts content_type parameter. If supplied, the content_type value will be used in the request headers, and the raw form of the data will be passed to the request. If not supplied, by default the data will be parsed as JSON, and the “application/json” content type will be used. (Issue #115).

4.1.1

4.1.0

4.0.0

3.3.0

3.2.0

3.1.0

3.0.0

2.5.0

  • Tighten type hints for parameters that have a default of None but were not typed as typing.Optional.

  • Tweak code to not change semantics but reach 100% coverage.

  • Provide a human-readable string representation of gidgethub.sansio.RateLimit.

  • Use the message data as the error message if the errors object was not returned.

  • Add the data keyword argument to gidgethub.abc.GitHubAPI.delete().

2.4.1

  • Tighten up protections against caching ineligible responses.

2.4.0

2.3.0

  • Add support for application/x-www-form-urlencoded webhook event payloads. (This also allows for API calls to return this content type, although GitHub currently does not do that.)

  • Introduce gidgethub.routing to help route webhook events to registered asynchronous callbacks.

  • Add type hints.

  • Add a cache argument to gidgethub.abc.GitHubAPI.

2.2.0

  • Introduce gidgethub.tornado to support Tornado (thanks to Matthias Bussonnier and A. Jesse Jiryu Davis for the PR reviews).

2.1.0

  • The default value for the data argument of gidgethub.abc.GitHubAPI.put() was changed from "" to b"".

  • All type hints were removed (due to mypy not supporting yield in an async function, they were not being tested as being valid).

2.0.0

  • Renamed gidgethub.abc.GitHubAPI._sleep() to sleep() to make the method public.

  • Renamed the “test” extra to “tests” and added the “dev” extra.

  • Introduced the gidgethub.RateLimitExceeded exception.

  • Methods on gidgethub.abc.GitHubAPI no longer automatically sleep when it’s possible that the call will exceed the user’s rate limit (it’s now up to the user to prevent from going over the rate limit).

  • Made the [treq] install extra depend on Twisted[tls].

1.2.0

1.1.0

  • Introduced gidgethub.treq (thanks to Cory Benfield).

1.0.0

Initial release.