-
Notifications
You must be signed in to change notification settings - Fork 404
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow to set GitHub API version #1132
Allow to set GitHub API version #1132
Conversation
This adds a new set_api_version method the GitHub class that accepts an API version string as defined in [1]. The version is added to the session headers. Sessions headers remain unchanged if no version string was given. Addresses #1121. [1]: https://docs.github.com/en/rest/overview/api-versions?apiVersion=2022-11-28
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems like it would be better to add to __init__
as a parameter.
@sigmavirus24 Should the |
|
This replaces the setter method with a named parameter of __init__.
@sigmavirus24 I removed |
@sigmavirus24 Are there any plans for a new release? I'm just asking because the last tag is from March last year. |
I don't have the time right now but maybe @staticdev does? |
@anz-ableton I will find some time soon. |
@sigmavirus24 can you add user |
Resent the invite @staticdev |
This adds a new
set_api_version
method theGitHub
class that accepts an API version string as defined here. The version is added to the session headers. Sessions headers remain unchanged if no version string was given.Addresses #1121.