Skip to content

Inconsistency between events API and webhook payload #3872

@jizi

Description

@jizi

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions