Skip to content

Incorrect example payload for push webhooks #18485

@timrogers

Description

@timrogers

Code of Conduct

What article on docs.github.com is affected?

https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#push

What part(s) of the article would you like to see updated?

The example event payload for push events has a base_ref property (refs/heads/main in the example). This property doesn't seem to exist when I have push triggers in my workflows.

Additional information

This issue was reported by @LayZeeDK.

Metadata

Metadata

Assignees

No one assigned

    Labels

    contentThis issue or pull request belongs to the Docs Content teamwaiting for reviewIssue/PR is waiting for a writer's reviewwebhooksContent related to webhooks

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions