-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
feat: Add support to use ETag for conditional requests against the Github API #6505
base: main
Are you sure you want to change the base?
Conversation
…thub API Signed-off-by: andrewhibbert <[email protected]>
…thub API Signed-off-by: andrewhibbert <[email protected]>
…thub API Signed-off-by: andrewhibbert <[email protected]>
…thub API Signed-off-by: andrewhibbert <[email protected]>
…thub API Signed-off-by: andrewhibbert <[email protected]>
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 feature looks super nice! Thanks for the improvement 😄
Could you enable the etag feature in one of the github e2e test cases to keep it covered with e2e tests? I don't think that we need to add another fully e2e test case but just update one of the already existing to include this feature.
We'd need that you open a PR to docs adding this new parameter to the scaler docs 🙏
…thub API Signed-off-by: andrewhibbert <[email protected]>
Thanks. I have opened a PR in the docs repo and changed one of the e2e testcase to have |
/run-e2e github |
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.
Great stuff, thanks! Let's just fix the semgrep and we shoud be good to merge
…thub API Signed-off-by: andrewhibbert <[email protected]>
Adds functionality to use conditional requests with the Github API by adding etag to request headers. If the response has not changed a 304 response is returned, which does not count against the primary rate limit.
Checklist
Fixes #6503
Relates to kedacore/keda-docs#1532