-
Notifications
You must be signed in to change notification settings - Fork 239
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
[Schema Inaccuracy] <webhook-pull-request-closed lack some properties> #2967
Comments
👋 from PRs FR this week. We are not entirely sure what the true issue is here and what the ask is for this task. cc @github/c2c-actions-first-responder as you were pinged on a similiar issue here: https://github.com/github/ecosystem-events/issues/2672 Wondering if you have found anything meaningful for actionable work here? |
@Lukeghenco , the issue is: Either the definition of components -> schemas -> pull_request -> properties -> base -> properties -> repo -> properties is wrong, it lacks above mentioned properties, as components -> schemas -> webhook-pull-request-closed -> properties -> pull_request refers to #/components/schemas/pull-request, but the real webhook payload contains those properties mentioned above. Or the definition of components -> schemas -> webhook-pull-request-closed -> properties -> pull_request is wrong. If the pull_request under webhook-pull-request-closed is different with #/components/schemas/pull-request, please don't refer to it, but use a dedicate definition for webhook only. |
Hi @Lukeghenco Just wanting to elaborate what @windqin is referencing with an example for the schema in question. I see that for
|
I've gone ahead and thrown this on the Pull Request board to take care of! |
A fix for this has been deployed |
Schema Inaccuracy
In https://github.com/github/rest-api-description/blob/main/descriptions/ghec/ghec.2022-11-28.json commit 6510f7e, webhook-pull-request-closed -> properties -> pull_request -> allOf[0] refers to #/components/schemas/pull-request, but this schema pull-request -> base -> repo lack some properties:
The current schema tries to use allOf under
pull_request
to define them, but they are under pull_request -> base -> repo, so the allOf[1] does not work.Expected
Define the above properties under #/components/schemas/pull-request -> properties -> base -> properties -> repo -> properties
Reproduction Steps
In GHEC repo settings -> Webhooks -> Manage webhook, setup a webhook with "Pull requests" selected, close a pull request, then check the "Recent Deliveries" in the webhook setting page, you can see the webhook event pull_request.closed payload contains those properties under pull_request -> base -> repo.
The text was updated successfully, but these errors were encountered: