With changes announced in https://github.blog/changelog/2025-08-08-upcoming-changes-to-github-events-api-payloads/ it seems there is now inconsistency between the payload returned in the events API and in the payload of the GitHub webhooks.
In this issue #3665, the deprecation notes have been added. These are fully valid as the events API payload no longer contains these fields but as the same struct is used to unmarshal the webhook payloads it is now inconsistent because webhook payload still contains the fields deprecated on the event API.
This part of code
|
type WebHookPayload = PushEvent |
says that the structures are the same but in fact that's no longer true.
Are there any plans to split the implementation for events API and webhooks?
With changes announced in https://github.blog/changelog/2025-08-08-upcoming-changes-to-github-events-api-payloads/ it seems there is now inconsistency between the payload returned in the events API and in the payload of the GitHub webhooks.
In this issue #3665, the deprecation notes have been added. These are fully valid as the events API payload no longer contains these fields but as the same struct is used to unmarshal the webhook payloads it is now inconsistent because webhook payload still contains the fields deprecated on the event API.
This part of code
go-github/github/repos_hooks.go
Line 26 in 06ab3a2
Are there any plans to split the implementation for events API and webhooks?