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
Add Webhook Deliveries #2508
Add Webhook Deliveries #2508
Conversation
Codecov ReportPatch coverage:
❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more. Additional details and impacted files@@ Coverage Diff @@
## master #2508 +/- ##
==========================================
- Coverage 98.33% 98.32% -0.01%
==========================================
Files 130 131 +1
Lines 12978 13140 +162
==========================================
+ Hits 12762 12920 +158
- Misses 216 220 +4
☔ View full report in Codecov by Sentry. |
Can we write inline type annotation instead of seprated pyi for new file? |
cab4757
to
934681e
Compare
@trim21 This ended up being a bit more difficult trying to bridge the gap from existing .pyi structure. I believe I was able to get this implemented correctly, but had to make some updates to other .pyi file dependancies to pass linting across all python versions. Apologies if folks were getting emailed about all the CI builds while testing, I eventually realized I was getting the same mypy linting errors locally and was able to continue validation without triggering the CI |
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.
Excellent pull request, can we extend the tests please? I think the replay data are already sufficient, just more assertions.
@EnricoMi Added assertions for all attributes in Organization and Repository as well as adding the same replay/test workflow to |
08c0f35
to
acb8a62
Compare
5765c0b
to
a2428df
Compare
a2428df
to
16ffa39
Compare
@jmgreg31 sorry for the delay. We have reworked some related code, which broke your pull request. I have resolved the issues and changed |
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.
LGTM!
github/PaginatedList.py
Outdated
@@ -88,7 +90,7 @@ def __finished(self, index): | |||
return self.__stop is not None and index >= self.__stop | |||
|
|||
|
|||
class PaginatedList(PaginatedListBase): | |||
class PaginatedList(PaginatedListBase, Generic[T]): |
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 generic is not actually used in this pr?
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.
resolved
Webhook Deliveries
Add support for Organization and Repository Webhook Deliveries
Summary of Changes
get_hook_delivery
andget_hook_deliveries
HookDelivery
model wheregithub.HookDelivery.HookDelivery
is a subclass ofgithub.HookDelivery.HookDeliverySummary
for DRY implementationResolves #2507