sigmavirus24 / github3.py

Hi, I'm a library for interacting with GItHub's REST API in a convenient and ergonomic way. I work on Python 3.6+.
https://github3.readthedocs.io
BSD 3-Clause "New" or "Revised" License
1.21k stars 402 forks source link

Support for X-GitHub-Api-Version HTTP header #1121

Open cknowles-moz opened 1 year ago

cknowles-moz commented 1 year ago

GitHub recently announced the REST API versioning [1], and that they plan breaking changes to the API. In order to avoid this, they created the X-GitHub-Api-Version header to allow us to fix ourselves in time. Would be good to have this supported in this library.

[1] https://github.blog/2022-11-28-to-infinity-and-beyond-enabling-the-future-of-githubs-rest-api-with-api-versioning/

sigmavirus24 commented 1 year ago

Yup, it sure would be good. Happy to review a pull request that adds this

alfawal commented 1 year ago

@anz-ableton Can you please open a PR in this parent repository?

anz-ableton commented 1 year ago

@alfawal 👍 There's the PR: https://github.com/sigmavirus24/github3.py/pull/1132