Events and payloads

At the point of WebHook configuration in GitHub, you can specify which events you want to receive requests from GitHub. WebHook requests data is termed payloads in GitHub. It is smarter to subscribe to only the events for the data that is needed so as to limit the HTTP requests sent to the application server from GitHub. By default, even a WebHook created on GitHub is subscribed to the push event. Event subscriptions can be modified through the GitHub web or API.

Some of the available events that can be subscribed to on GitHub are explained in the following table:

Event

Description

push

This is the default event and is raised when there is a Git push to a repository. This also includes editing tags or branches ...

Get C# and .NET Core Test Driven Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.