github3.py icon indicating copy to clipboard operation
github3.py copied to clipboard

Support for X-GitHub-Api-Version HTTP header

Open cknowles-moz opened this issue 3 years ago • 3 comments

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/

cknowles-moz avatar Nov 29 '22 10:11 cknowles-moz

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

sigmavirus24 avatar Nov 29 '22 12:11 sigmavirus24

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

alfawal avatar Mar 02 '23 15:03 alfawal

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

anz-ableton avatar Mar 02 '23 16:03 anz-ableton