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
ETag not supported to make conditional requests through API? #536
Comments
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I also would very much like this to be implemented in PyGithub. |
+1 If this lib can keep tracking the ETag and sending Example on https://docs.github.com/en/rest/reference/activity
|
I think that this can be achieved (to greater and lesser degrees) by making it easy for users to leverage In fact, I have a draft branch implementing a second approach to this: master...michaelwooley:PyGithub:michaelwooley/add-custom-session . Basically, this allows someone to pass in a custom This colab notebook demos my progress so far. I'm encountering issues with insuring that the headers are handled correctly, though. In particular:
If there is still interest in this, I could add further tests and open up an MR. |
Fixes #9 PyGithub w/ requests-cache not working: PyGithub/PyGithub#536 (comment)
Fixes #9 PyGithub w/ requests-cache not working: PyGithub/PyGithub#536 (comment)
Fixes #9 PyGithub w/ requests-cache not working: PyGithub/PyGithub#536 (comment)
I notice that the GitHubObject has an
eTag
attribute, but I don't see the ability to pass this in to any of the different api calls. Am I missing something or is this a missing feature? I notice it's mentioned in the v2 API docs.The text was updated successfully, but these errors were encountered: