Repository navigation
feat!: Add Status filter to ListHookDeliveries - #4730
Open
dion-gionet wants to merge 1 commit into
Open
dion-gionet wants to merge 1 commit into
dion-gionet wants to merge 1 commit into
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #4730 +/- ##
=======================================
Coverage 98.64% 98.64%
=======================================
Files 204 204
Lines 19162 19162
=======================================
Hits 18902 18902
Misses 260 260 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #4729.
BREAKING CHANGE:
AppsService.ListHookDeliveries,OrganizationsService.ListHookDeliveriesandRepositoriesService.ListHookDeliveries(and theirItervariants) now take*ListHookDeliveriesOptionsinstead of*ListCursorOptions.This PR:
ListHookDeliveriesOptions, which embedsListCursorOptionsand addsStatus(successorfailure), as documented for the three list deliveries endpoints.gen-iterators.goignore the embeddedListCursorOptionsfor methods inuseCursorPagination, so the generated iterators keep paging withcursorinstead of switching toafter.status.Validation:
script/fmt.sh,script/test.shandscript/lint.sh. Also checked against a real GitHub App:Status: "failure"returned only the 4xx/5xx deliveries,Status: "success"only the 2xx ones.