Skip to main content
Publicamos actualizaciones para la documentación con frecuencia y es posible que aún se esté traduciendo esta página. Para obtener la información más reciente, consulta la documentación en inglés.

Eventos y cargas de webhook

Aprende sobre cuándo se produce cada evento de webhook y qué contiene la carga.

Las cuentas empresariales están disponibles con GitHub Enterprise Cloud y GitHub Enterprise Server. Para más información, vea "Acerca de las cuentas empresariales" en la documentación de GitHub Enterprise Cloud.

Los webhooks configurados en cuentas de empresa u organizaciones que forman parte de una cuenta de empresa incluirán un objeto de cuenta enterprise.

Cuando configuras un webhook, puedes utilizar la IU o la API para elegir qué eventos te enviarán cargas útiles. El suscribirte únicamente a los eventos específicos que pretendes gestionar limita la cantidad de solicitudes HTTP a tu servidor. También puedes suscribirte a todos los eventos futuros y actuales. Predeterminadamente, los webhooks solo se suscriben al evento de carga. Puedes cambiar la lista de eventos a los que te suscribiste en cualquier momento.

Puedes crear webhooks que se suscriban a los eventos listados en esta página. Cada evento de webhook incluye una descripción de las propiedades de dicho webhook y un ejemplo de carga útil. Para obtener más información, vea «Crear webhooks».

Propuiedades comunes del objeto de la carga útil del webhook

Cada carga útil del evento del webhook contiene propiedades únicas de dicho evento. Puedes encontrar estas propiedades únicas en las secciones individuales de tipo de evento.

ClaveTipoDescripción
actionstringLa mayoría de las cargas de webhook contienen una propiedad action que contiene la actividad específica que ha desencadenado el evento.
senderobjectUsuario que ha desencadenado el evento. Esta propiedad se incluye en cada carga útil del webhook.
repositoryobjectrepository donde se ha producido el evento. Las cargas de webhook contienen la propiedad repository cuando el evento se produce desde una actividad en un repositorio.
organizationobjectLas cargas de webhook contienen el objeto organization cuando el webhook está configurado para una organización o el evento se produce desde la actividad de un repositorio que pertenece a una organización. installation

Las propiedades únicas de un evento de webhook son las mismas que encontrará en la propiedad payload al usar Events API. Una excepción es el evento push. Las propiedades únicas de la carga de webhook de eventos push y la propiedad payload de Events API difieren. La carga útil del webhook contiene información más detallada.

Nota: Las cargas se limitan a 25 MB. Si tu evento genera una carga útil mayor, el webhook no se lanzará. Esto puede pasar, por ejemplo, en un evento create si se insertan muchas ramas o etiquetas al mismo tiempo. Te sugerimos monitorear el tamaño de tu carga útil para garantizar la entrega.

Encabezados de entrega

Las cargas útiles HTTP POST que se entregan al punto de conexión de la dirección URL configurada del webhook contendrán varios encabezados especiales.

  • X-GitHub-Event: nombre del evento que desencadenó la entrega.
  • X-GitHub-Delivery: un GUIDpara identificar la entrega.
  • X-Hub-Signature: este encabezado se envía si el webhook está configurado con secret. Este es el resumen hexadecimal de HMAC del cuerpo de la solicitud y se genera mediante la función de hash SHA-1 y secret como keyde HMAC. X-Hub-Signature se proporciona para compatibilidad con las integraciones existentes y, en su lugar, se recomienda usar X-Hub-Signature-256, que es más seguro.
  • X-Hub-Signature-256: este encabezado se envía si el webhook está configurado con secret. Este es el resumen hexadecimal de HMAC para el cuerpo de la solicitud y se genera mediante la función de hash SHA-256 y secret como key de HMAC.

Además, User-Agent para las solicitudes tendrá el prefijo GitHub-Hookshot/.

Ejemplo de entrega

> POST /payload HTTP/2

> Host: localhost:4567
> X-GitHub-Delivery: 72d3162e-cc78-11e3-81ab-4c9367dc0958
> X-Hub-Signature: sha1=7d38cdd689735b008b3c702edd92eea23791c5f6
> X-Hub-Signature-256: sha256=d57c68ca6f92289e6987922ff26938930f6e66a2d161ef06abdf1859230aa23c
> User-Agent: GitHub-Hookshot/044aadd
> Content-Type: application/json
> Content-Length: 6615
> X-GitHub-Event: issues

> {
>   "action": "opened",
>   "issue": {
>     "url": "https://api.github.com/repos/octocat/Hello-World/issues/1347",
>     "number": 1347,
>     ...
>   },
>   "repository" : {
>     "id": 1296269,
>     "full_name": "octocat/Hello-World",
>     "owner": {
>       "login": "octocat",
>       "id": 1,
>       ...
>     },
>     ...
>   },
>   "sender": {
>     "login": "octocat",
>     "id": 1,
>     ...
>   }
> }

branch_protection_rule

This event occurs when there is activity relating to branch protection rules. For more information, see "About protected branches." For information about the APIs to manage branch protection rules, see the GraphQL documentation or "Branch protection" in the REST API documentation.

To subscribe to this event, a GitHub App must have at least read-level access for the "Administration" repository permission

Disponibilidad para branch_protection_rule

  • Repositorios
  • Las organizaciones
  • Aplicaciones de GitHub

Objeto de carga útil del webhook para branch_protection_rule

A branch protection rule was created.

Encabezados
Nombre, Tipo, Descripción
Parámetros del cuerpo
Nombre, Tipo, Descripción
action string Requerido

Value: created

enterprise object

An enterprise on GitHub.

installation object

The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.

organization object

A GitHub organization.

repository object Requerido

A repository on GitHub.

rule object Requerido

The branch protection rule. Includes a name and all the branch protection settings applied to branches that match the name. Binary settings are boolean. Multi-level configurations are one of off, non_admins, or everyone. Actor and build lists are arrays of strings.

sender object Requerido

A GitHub user.

check_run

This event occurs when there is activity relating to a check run. For information about check runs, see "Getting started with the Checks API." For information about the APIs to manage check runs, see the GraphQL API documentation or "Check Runs" in the REST API documentation.

For activity relating to check suites, use the check-suite event.

To subscribe to this event, a GitHub App must have at least read-level access for the "Checks" repository permission. To receive the rerequested and requested_action event types, the app must have at least write-level access for the "Checks" permission. GitHub Apps with write-level access for the "Checks" permission are automatically subscribed to this webhook event.

Repository and organization webhooks only receive payloads for the created and completed event types in repositories.

Note: The API only looks for pushes in the repository where the check run was created. Pushes to a branch in a forked repository are not detected and return an empty pull_requests array and a null value for head_branch.

Disponibilidad para check_run

  • Repositorios
  • Las organizaciones
  • Aplicaciones de GitHub

Objeto de carga útil del webhook para check_run

A check run was completed, and a conclusion is available.

Encabezados
Nombre, Tipo, Descripción
Parámetros del cuerpo
Nombre, Tipo, Descripción
action string

Value: completed

check_run object Requerido

A check performed on the code of a given code change

installation object

The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.

organization object

A GitHub organization.

repository object Requerido

A repository on GitHub.

sender object Requerido

A GitHub user.

check_suite

This event occurs when there is activity relating to a check suite. For information about check suites, see "Getting started with the Checks API." For information about the APIs to manage check suites, see the GraphQL API documentation or "Check Suites" in the REST API documentation.

For activity relating to check runs, use the check_run event.

To subscribe to this event, a GitHub App must have at least read-level access for the "Checks" permission. To receive the requested and rerequested event types, the app must have at lease write-level access for the "Checks" permission. GitHub Apps with write-level access for the "Checks" permission are automatically subscribed to this webhook event.

Repository and organization webhooks only receive payloads for the completed event types in repositories.

Note: The API only looks for pushes in the repository where the check suite was created. Pushes to a branch in a forked repository are not detected and return an empty pull_requests array and a null value for head_branch.

Disponibilidad para check_suite

  • Repositorios
  • Las organizaciones
  • Aplicaciones de GitHub

Objeto de carga útil del webhook para check_suite

All check runs in a check suite have completed, and a conclusion is available.

Encabezados
Nombre, Tipo, Descripción
Parámetros del cuerpo
Nombre, Tipo, Descripción
action string Requerido

Value: completed

actions_meta object or null
check_suite object Requerido
enterprise object

An enterprise on GitHub.

installation object

The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.

organization object

A GitHub organization.

repository object Requerido

A repository on GitHub.

sender object Requerido

A GitHub user.

code_scanning_alert

This event occurs when there is activity relating to code scanning alerts in a repository. For more information, see "About code scanning" and "About code scanning alerts." For information about the API to manage code scanning, see "Code scanning" in the REST API documentation.

To subscribe to this event, a GitHub App must have at least read-level access for the "Code scanning alerts" repository permission.

Disponibilidad para code_scanning_alert

  • Repositorios
  • Las organizaciones
  • Aplicaciones de GitHub

Objeto de carga útil del webhook para code_scanning_alert

A previously created code scanning alert appeared in another branch. This can happen when a branch is merged into or created from a branch with a pre-existing code scanning alert.

Encabezados
Nombre, Tipo, Descripción
Parámetros del cuerpo
Nombre, Tipo, Descripción
action string Requerido

Value: appeared_in_branch

alert object Requerido

The code scanning alert involved in the event.

commit_oid string Requerido

The commit SHA of the code scanning alert. When the action is reopened_by_user or closed_by_user, the event was triggered by the sender and this value will be empty.

enterprise object

An enterprise on GitHub.

installation object

The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.

organization object

A GitHub organization.

ref string Requerido

The Git reference of the code scanning alert. When the action is reopened_by_user or closed_by_user, the event was triggered by the sender and this value will be empty.

repository object Requerido

A repository on GitHub.

sender object Requerido

A GitHub user.

commit_comment

This event occurs when there is activity relating to commit comments. For more information about commit comments, see "Commenting on a pull request." For information about the APIs to manage commit comments, see the GraphQL API documentation or "Commit comments" in the REST API documentation.

For activity relating to comments on pull request reviews, use the pull_request_review_comment event. For activity relating to issue comments, use the issue_comment event. For activity relating to discussion comments, use the discussion_comment event.

To subscribe to this event, a GitHub App must have at least read-level access for the "Contents" repository permission.

Disponibilidad para commit_comment

  • Repositorios
  • Las organizaciones
  • Aplicaciones de GitHub

Objeto de carga útil del webhook para commit_comment

Someone commented on a commit.

Encabezados
Nombre, Tipo, Descripción
Parámetros del cuerpo
Nombre, Tipo, Descripción
action string Requerido

The action performed. Can be created.

Value: created

comment object Requerido

The commit comment resource.

enterprise object

An enterprise on GitHub.

installation object

The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.

organization object

A GitHub organization.

repository object Requerido

A repository on GitHub.

sender object Requerido

A GitHub user.

create

This event occurs when a Git branch or tag is created.

To subscribe to this event, a GitHub App must have at least read-level access for the "Contents" repository permission.

Note: This event will not occur when more than three tags are created at once.

Disponibilidad para create

  • Repositorios
  • Las organizaciones
  • Aplicaciones de GitHub

Objeto de carga útil del webhook para create

Encabezados
Nombre, Tipo, Descripción
Parámetros del cuerpo
Nombre, Tipo, Descripción
description string or null Requerido

The repository's current description.

enterprise object

An enterprise on GitHub.

installation object

The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.

master_branch string Requerido

The name of the repository's default branch (usually main).

organization object

A GitHub organization.

pusher_type string Requerido

The pusher type for the event. Can be either user or a deploy key.

ref string Requerido

The git ref resource.

ref_type string Requerido

The type of Git ref object created in the repository.

Puede ser uno de los siguientes: tag, branch

repository object Requerido

A repository on GitHub.

sender object Requerido

A GitHub user.

delete

This event occurs when a Git branch or tag is deleted.

To subscribe to this event, a GitHub App must have at least read-level access for the "Contents" repository permission.

Note: This event will not occur when more than three tags are deleted at once.

Disponibilidad para delete

  • Repositorios
  • Las organizaciones
  • Aplicaciones de GitHub

Objeto de carga útil del webhook para delete

Encabezados
Nombre, Tipo, Descripción
Parámetros del cuerpo
Nombre, Tipo, Descripción
enterprise object

An enterprise on GitHub.

installation object

The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.

organization object

A GitHub organization.

pusher_type string Requerido

The pusher type for the event. Can be either user or a deploy key.

ref string Requerido

The git ref resource.

ref_type string Requerido

The type of Git ref object deleted in the repository.

Puede ser uno de los siguientes: tag, branch

repository object Requerido

A repository on GitHub.

sender object Requerido

A GitHub user.

dependabot_alert

This event occurs when there is activity relating to Dependabot alerts.

For more information about Dependabot alerts, see "About Dependabot alerts." For information about the API to manage Dependabot alerts, see "Dependabot alerts" in the REST API documentation.

To subscribe to this event, a GitHub App must have at least read-level access for the "Dependabot alerts" repository permission.

Note: Webhook events for Dependabot alerts are currently in beta and subject to change.

Disponibilidad para dependabot_alert

  • Repositorios
  • Las organizaciones
  • Aplicaciones de GitHub

Objeto de carga útil del webhook para dependabot_alert

A Dependabot alert was automatically closed.

Encabezados
Nombre, Tipo, Descripción
Parámetros del cuerpo
Nombre, Tipo, Descripción
action string Requerido

Value: auto_dismissed

alert object Requerido

A Dependabot alert.

installation object

The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.

organization object

A GitHub organization.

enterprise object

An enterprise on GitHub.

repository object Requerido

A repository on GitHub.

sender object Requerido

A GitHub user.

deploy_key

This event occurs when there is activity relating to deploy keys. For more information, see "Managing deploy keys." For information about the APIs to manage deploy keys, see the GraphQL API documentation or "Deploy keys" in the REST API documentation.

To subscribe to this event, a GitHub App must have at least read-level access for the "Deployments" repository permission.

Disponibilidad para deploy_key

  • Repositorios
  • Las organizaciones
  • Aplicaciones de GitHub

Objeto de carga útil del webhook para deploy_key

A deploy key was created.

Encabezados
Nombre, Tipo, Descripción
Parámetros del cuerpo
Nombre, Tipo, Descripción
action string Requerido

Value: created

enterprise object

An enterprise on GitHub.

installation object

The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.

key object Requerido

The deploy key resource.

organization object

A GitHub organization.

repository object Requerido

A repository on GitHub.

sender object Requerido

A GitHub user.

deployment

This event occurs when there is activity relating to deployments. For more information, see "About deployments." For information about the APIs to manage deployments, see the GraphQL API documentation or "Deployments" in the REST API documentation.

For activity relating to deployment status, use the deployment_status event.

To subscribe to this event, a GitHub App must have at least read-level access for the "Deployments" repository permission.

Disponibilidad para deployment

  • Repositorios
  • Las organizaciones
  • Aplicaciones de GitHub

Objeto de carga útil del webhook para deployment

A deployment was created.

Encabezados
Nombre, Tipo, Descripción
Parámetros del cuerpo
Nombre, Tipo, Descripción
action string Requerido

Value: created

deployment object Requerido
enterprise object

An enterprise on GitHub.

installation object

The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.

organization object

A GitHub organization.

repository object Requerido

A repository on GitHub.

sender object Requerido

A GitHub user.

workflow object or null Requerido
workflow_run object or null Requerido

deployment_protection_rule

This event occurs when there is activity relating to deployment protection rules. For more information, see "Using environments for deployment." For information about the API to manage deployment protection rules, see the REST API documentation.

To subscribe to this event, a GitHub App must have at least read-level access for the "Deployments" repository permission.

Disponibilidad para deployment_protection_rule

  • Aplicaciones de GitHub

Objeto de carga útil del webhook para deployment_protection_rule

A deployment protection rule was requested for an environment.

Encabezados
Nombre, Tipo, Descripción
Parámetros del cuerpo
Nombre, Tipo, Descripción
action string

Value: requested

environment string

The name of the environment that has the deployment protection rule.

event string

The event that triggered the deployment protection rule.

deployment_callback_url string

The URL to review the deployment protection rule.

deployment object

A request for a specific ref(branch,sha,tag) to be deployed

pull_requests array of objects
repository object

A repository on GitHub.

organization object

A GitHub organization.

installation object

The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.

sender object

A GitHub user.

deployment_status

This event occurs when there is activity relating to deployment statuses. For more information, see "About deployments." For information about the APIs to manage deployments, see the GraphQL API documentation or "Deployments" in the REST API documentation.

For activity relating to deployment creation, use the deployment event.

To subscribe to this event, a GitHub App must have at least read-level access for the "Deployments" repository permission.

Disponibilidad para deployment_status

  • Repositorios
  • Las organizaciones
  • Aplicaciones de GitHub

Objeto de carga útil del webhook para deployment_status

A new deployment status was created.

Encabezados
Nombre, Tipo, Descripción
Parámetros del cuerpo
Nombre, Tipo, Descripción
action string Requerido

Value: created

check_run object or null
deployment object Requerido
deployment_status object Requerido
enterprise object

An enterprise on GitHub.

installation object

The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.

organization object

A GitHub organization.

repository object Requerido

A repository on GitHub.

sender object Requerido

A GitHub user.

workflow object or null
workflow_run object or null

discussion

This event occurs when there is activity relating to a discussion. For more information about discussions, see "GitHub Discussions." For information about the API to manage discussions, see the GraphQL documentation.

For activity relating to a comment on a discussion, use the discussion_comment event.

To subscribe to this event, a GitHub App must have at least read-level access for the "Discussions" repository permission.

Note: Webhook events for GitHub Discussions are currently in beta and subject to change.

Disponibilidad para discussion

  • Repositorios
  • Las organizaciones
  • Aplicaciones de GitHub

Objeto de carga útil del webhook para discussion

A comment on the discussion was marked as the answer.

Encabezados
Nombre, Tipo, Descripción
Parámetros del cuerpo
Nombre, Tipo, Descripción
action string Requerido

Value: answered

answer object Requerido
discussion object Requerido

A Discussion in a repository.

enterprise object

An enterprise on GitHub.

installation object

The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.

organization object

A GitHub organization.

repository object Requerido

A repository on GitHub.

sender object Requerido

A GitHub user.

discussion_comment

This event occurs when there is activity relating to a comment on a discussion. For more information about discussions, see "GitHub Discussions." For information about the API to manage discussions, see the GraphQL documentation.

For activity relating to a discussion as opposed to comments on a discussion, use the discussion event.

To subscribe to this event, a GitHub App must have at least read-level access for the "Discussions" repository permission.

Note: Webhook events for GitHub Discussions are currently in beta and subject to change.

Disponibilidad para discussion_comment

  • Repositorios
  • Las organizaciones
  • Aplicaciones de GitHub

Objeto de carga útil del webhook para discussion_comment

A comment on a discussion was created.

Encabezados
Nombre, Tipo, Descripción
Parámetros del cuerpo
Nombre, Tipo, Descripción
action string Requerido

Value: created

comment object Requerido
discussion object Requerido

A Discussion in a repository.

enterprise object

An enterprise on GitHub.

installation object

The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.

organization object

A GitHub organization.

repository object Requerido

A repository on GitHub.

sender object Requerido

A GitHub user.

fork

This event occurs when someone forks a repository. For more information, see "Fork a repo." For information about the API to manage forks, see "Forks" in the REST API documentation.

To subscribe to this event, a GitHub App must have at least read-level access for the "Contents" repository permission.

Disponibilidad para fork

  • Empresas
  • Repositorios
  • Las organizaciones
  • Aplicaciones de GitHub

Objeto de carga útil del webhook para fork

Encabezados
Nombre, Tipo, Descripción
Parámetros del cuerpo
Nombre, Tipo, Descripción
enterprise object

An enterprise on GitHub.

forkee object Requerido

The created repository resource.

installation object

The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.

organization object

A GitHub organization.

repository object Requerido

A repository on GitHub.

sender object Requerido

A GitHub user.

github_app_authorization

This event occurs when a user revokes their authorization of a GitHub App. For more information, see "About apps." For information about the API to manage GitHub Apps, see the GraphQL API documentation or "Apps" in the REST API documentation.

A GitHub App receives this webhook by default and cannot unsubscribe from this event.

Anyone can revoke their authorization of a GitHub App from their GitHub account settings page. Revoking the authorization of a GitHub App does not uninstall the GitHub App. You should program your GitHub App so that when it receives this webhook, it stops calling the API on behalf of the person who revoked the token. If your GitHub App continues to use a revoked access token, it will receive the 401 Bad Credentials error. For details about user-to-server requests, which require GitHub App authorization, see "Identifying and authorizing users for GitHub Apps."

Disponibilidad para github_app_authorization

  • Aplicaciones de GitHub

Objeto de carga útil del webhook para github_app_authorization

Someone revoked their authorization of a GitHub App.

Encabezados
Nombre, Tipo, Descripción
Parámetros del cuerpo
Nombre, Tipo, Descripción
action string Requerido

Value: revoked

enterprise object

An enterprise on GitHub.

installation object

The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.

organization object

A GitHub organization.

repository object

A repository on GitHub.

sender object Requerido

A GitHub user.

gollum

This event occurs when someone creates or updates a wiki page. For more information, see "About wikis."

To subscribe to this event, a GitHub App must have at least read-level access for the "Contents" repository permission.

Disponibilidad para gollum

  • Repositorios
  • Las organizaciones
  • Aplicaciones de GitHub

Objeto de carga útil del webhook para gollum

Encabezados
Nombre, Tipo, Descripción
Parámetros del cuerpo
Nombre, Tipo, Descripción
enterprise object

An enterprise on GitHub.

installation object

The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.

organization object

A GitHub organization.

pages array of objects Requerido

The pages that were updated.

repository object Requerido

A repository on GitHub.

sender object Requerido

A GitHub user.

installation

This event occurs when there is activity relating to a GitHub App installation. All GitHub Apps receive this event by default. You cannot manually subscribe to this event.

For more information about GitHub Apps, see "About apps." For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or "Apps" in the REST API documentation.

Disponibilidad para installation

  • Aplicaciones de GitHub

Objeto de carga útil del webhook para installation

Someone installed a GitHub App on a user or organization account.

Encabezados
Nombre, Tipo, Descripción
Parámetros del cuerpo
Nombre, Tipo, Descripción
action string Requerido

Value: created

enterprise object

An enterprise on GitHub.

installation object Requerido

Installation

organization object

A GitHub organization.

repositories array of objects

An array of repository objects that the installation can access.

repository object

A repository on GitHub.

requester object or null
sender object Requerido

A GitHub user.

installation_repositories

This event occurs when there is activity relating to which repositories a GitHub App installation can access. All GitHub Apps receive this event by default. You cannot manually subscribe to this event.

For more information about GitHub Apps, see "About apps." For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or "Apps" in the REST API documentation.

Disponibilidad para installation_repositories

  • Aplicaciones de GitHub

Objeto de carga útil del webhook para installation_repositories

A GitHub App installation was granted access to one or more repositories.

Encabezados
Nombre, Tipo, Descripción
Parámetros del cuerpo
Nombre, Tipo, Descripción
action string Requerido

Value: added

enterprise object

An enterprise on GitHub.

installation object Requerido

Installation

organization object

A GitHub organization.

repositories_added array of objects Requerido

An array of repository objects, which were added to the installation.

repositories_removed array of objects Requerido

An array of repository objects, which were removed from the installation.

repository object

A repository on GitHub.

repository_selection string Requerido

Describe whether all repositories have been selected or there's a selection involved

Puede ser uno de los siguientes: all, selected

requester object or null Requerido
sender object Requerido

A GitHub user.

installation_target

This event occurs when there is activity relating to the user or organization account that a GitHub App is installed on. For more information, see "About apps." For information about the APIs to manage GitHub Apps, see the GraphQL API documentation or "Apps" in the REST API documentation.

Disponibilidad para installation_target

  • Aplicaciones de GitHub

Objeto de carga útil del webhook para installation_target

Somebody renamed the user or organization account that a GitHub App is installed on.

Encabezados
Nombre, Tipo, Descripción
Parámetros del cuerpo
Nombre, Tipo, Descripción
account object Requerido
action string Requerido
changes object Requerido
enterprise object

An enterprise on GitHub.

installation object Requerido

The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.

organization object

A GitHub organization.

repository object

A repository on GitHub.

sender object

A GitHub user.

target_type string Requerido

issue_comment

This event occurs when there is activity relating to a comment on an issue or pull request. For more information about issues and pull requests, see "About issues" and "About pull requests." For information about the APIs to manage issue comments, see the GraphQL documentation or "Issue comments" in the REST API documentation.

For activity relating to an issue as opposed to comments on an issue, use the issue event. For activity related to pull request reviews or pull request review comments, use the pull_request_review or pull_request_review_comment events. For more information about the different types of pull request comments, see "Working with comments."

To subscribe to this event, a GitHub App must have at least read-level access for the "Issues" or "Pull requests" repository permissions.

Disponibilidad para issue_comment

  • Repositorios
  • Las organizaciones
  • Aplicaciones de GitHub

Objeto de carga útil del webhook para issue_comment

A comment on an issue or pull request was created.

Encabezados
Nombre, Tipo, Descripción
Parámetros del cuerpo
Nombre, Tipo, Descripción
action string Requerido

Value: created

comment object Requerido

The comment itself.

enterprise object

An enterprise on GitHub.

installation object

The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.

issue object Requerido

The issue the comment belongs to.

organization object

A GitHub organization.

repository object Requerido

A repository on GitHub.

sender object Requerido

A GitHub user.

issues

This event occurs when there is activity relating to an issue. For more information about issues, see "About issues." For information about the APIs to manage issues, see the GraphQL documentation or "Issues" in the REST API documentation.

For activity relating to a comment on an issue, use the issue_comment event.

To subscribe to this event, a GitHub App must have at least read-level access for the "Issues" repository permission.

Disponibilidad para issues

  • Repositorios
  • Las organizaciones
  • Aplicaciones de GitHub

Objeto de carga útil del webhook para issues

An issue was assigned to a user.

Encabezados
Nombre, Tipo, Descripción
Parámetros del cuerpo
Nombre, Tipo, Descripción
action string Requerido

The action that was performed.

Value: assigned

assignee object or null
enterprise object

An enterprise on GitHub.

installation object

The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.

issue object Requerido

The issue itself.

organization object

A GitHub organization.

repository object Requerido

A repository on GitHub.

sender object Requerido

A GitHub user.

label

This event occurs when there is activity relating to labels. For more information, see "Managing labels." For information about the APIs to manage labels, see the GraphQL documentation or "Labels" in the REST API documentation.

If you want to receive an event when a label is added to or removed from an issue, pull request, or discussion, use the labeled or unlabeled action type for the issues, pull_request, or discussion events instead.

To subscribe to this event, a GitHub App must have at least read-level access for the "Metadata" repository permission.

Disponibilidad para label

  • Repositorios
  • Las organizaciones
  • Aplicaciones de GitHub

Objeto de carga útil del webhook para label

A label was created.

Encabezados
Nombre, Tipo, Descripción
Parámetros del cuerpo
Nombre, Tipo, Descripción
action string Requerido

Value: created

enterprise object

An enterprise on GitHub.

installation object

The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.

label object Requerido
organization object

A GitHub organization.

repository object Requerido

A repository on GitHub.

sender object

A GitHub user.

marketplace_purchase

This event occurs when there is activity relating to a GitHub Marketplace purchase. For more information, see "GitHub Marketplace." For information about the APIs to manage GitHub Marketplace listings, see the GraphQL documentation or "GitHub Marketplace" in the REST API documentation.

Disponibilidad para marketplace_purchase

  • Marketplace de GitHub

Objeto de carga útil del webhook para marketplace_purchase

Someone cancelled a GitHub Marketplace plan, and the last billing cycle has ended. The change will take effect on the account immediately.

Encabezados
Nombre, Tipo, Descripción
Parámetros del cuerpo
Nombre, Tipo, Descripción
action string Requerido

Value: cancelled

effective_date string Requerido
enterprise object

An enterprise on GitHub.

installation object

The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.

marketplace_purchase object Requerido
organization object

A GitHub organization.

previous_marketplace_purchase object
repository object

A repository on GitHub.

sender object Requerido

A GitHub user.

member

This event occurs when there is activity relating to collaborators in a repository. For more information, see "Adding outside collaborators to repositories in your organization." For more information about the API to manage repository collaborators, see the GraphQL API documentation or "Collaborators" in the REST API documentation.

To subscribe to this event, a GitHub App must have at least read-level access for the "Members" organization permission.

Disponibilidad para member

  • Empresas
  • Repositorios
  • Las organizaciones
  • Aplicaciones de GitHub

Objeto de carga útil del webhook para member

A GitHub user accepted an invitation to a repository.

Encabezados
Nombre, Tipo, Descripción
Parámetros del cuerpo
Nombre, Tipo, Descripción
action string Requerido

Value: added

changes object
enterprise object

An enterprise on GitHub.

installation object

The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.

member object or null Requerido
organization object

A GitHub organization.

repository object Requerido

A repository on GitHub.

sender object Requerido

A GitHub user.

membership

This event occurs when there is activity relating to team membership. For more information, see "About teams." For more information about the APIs to manage team memberships, see the GraphQL API documentation or "Team members" in the REST API documentation.

To subscribe to this event, a GitHub App must have at least read-level access for the "Members" organization permission.

Disponibilidad para membership

  • Las organizaciones
  • Empresas
  • Aplicaciones de GitHub

Objeto de carga útil del webhook para membership

An organization member was added to a team.

Encabezados
Nombre, Tipo, Descripción
Parámetros del cuerpo
Nombre, Tipo, Descripción
action string Requerido

Value: added

enterprise object

An enterprise on GitHub.

installation object

The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.

member object or null Requerido
organization object Requerido

A GitHub organization.

repository object

A repository on GitHub.

scope string Requerido

The scope of the membership. Currently, can only be team.

Value: team

sender object or null Requerido
team object Requerido

Groups of organization members that gives permissions on specified repositories.

merge_group

This event occurs when there is activity relating to a merge group in a merge queue. For more information, see "Managing a merge queue."

To subscribe to this event, a GitHub App must have at least read-level access for the "Merge queues" repository permission.

Note: The pull request merge queue feature is currently in public beta and subject to change.

Disponibilidad para merge_group

  • Aplicaciones de GitHub

Objeto de carga útil del webhook para merge_group

Status checks were requested for a merge group. This happens when a merge group is created or added to by the merge queue because a pull request was queued.

When you receive this event, you should perform checks on the head SHA and report status back using check runs or commit statuses.

Encabezados
Nombre, Tipo, Descripción
Parámetros del cuerpo
Nombre, Tipo, Descripción
action string Requerido

Value: checks_requested

installation object

The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.

merge_group object Requerido

A group of pull requests that the merge queue has grouped together to be merged.

organization object

A GitHub organization.

repository object

A repository on GitHub.

sender object

A GitHub user.

meta

This event occurs when there is activity relating to a webhook itself.

To subscribe to this event, a GitHub App must have at least read-level access for the "Meta" app permission.

Disponibilidad para meta

  • Marketplace de GitHub
  • Empresas
  • Repositorios
  • Las organizaciones
  • Aplicaciones de GitHub

Objeto de carga útil del webhook para meta

The webhook was deleted.

Encabezados
Nombre, Tipo, Descripción
Parámetros del cuerpo
Nombre, Tipo, Descripción
action string Requerido

Value: deleted

enterprise object

An enterprise on GitHub.

hook object Requerido

The modified webhook. This will contain different keys based on the type of webhook it is: repository, organization, business, app, or GitHub Marketplace.

hook_id integer Requerido

The id of the modified webhook.

installation object

The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.

organization object

A GitHub organization.

repository object

A repository on GitHub.

sender object

A GitHub user.

milestone

This event occurs when there is activity relating to milestones. For more information, see "About milestones." For information about the APIs to manage milestones, see the GraphQL documentation or "Milestones" in the REST API documentation.

If you want to receive an event when an issue or pull request is added to or removed from a milestone, use the milestoned or demilestoned action type for the issues or pull_request events instead.

To subscribe to this event, a GitHub App must have at least read-level access for the "Issues" or "Pull requests" repository permissions.

Disponibilidad para milestone

  • Repositorios
  • Las organizaciones
  • Aplicaciones de GitHub

Objeto de carga útil del webhook para milestone

A milestone was closed.

Encabezados
Nombre, Tipo, Descripción
Parámetros del cuerpo
Nombre, Tipo, Descripción
action string Requerido

Value: closed

enterprise object

An enterprise on GitHub.

installation object

The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.

milestone object Requerido

A collection of related issues and pull requests.

organization object

A GitHub organization.

repository object Requerido

A repository on GitHub.

sender object Requerido

A GitHub user.

org_block

This event occurs when organization owners or moderators block or unblock a non-member from collaborating on the organization's repositories. For more information, see "Blocking a user from your organization." For information about the APIs to manage blocked users, see the GraphQL documentation or "Blocking users" in the REST API documentation.

If you want to receive an event when members are added or removed from an organization, use the organization event instead.

To subscribe to this event, a GitHub App must have at least read-level access for the "Administration" organization permission.

Disponibilidad para org_block

  • Las organizaciones
  • Empresas
  • Aplicaciones de GitHub

Objeto de carga útil del webhook para org_block

A user was blocked from the organization.

Encabezados
Nombre, Tipo, Descripción
Parámetros del cuerpo
Nombre, Tipo, Descripción
action string Requerido

Value: blocked

blocked_user object or null Requerido
enterprise object

An enterprise on GitHub.

installation object

The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.

organization object Requerido

A GitHub organization.

repository object

A repository on GitHub.

sender object Requerido

A GitHub user.

organization

This event occurs when there is activity relating to an organization and its members. For more information, see "About organizations." For information about the APIs to manage organizations, see the GraphQL documentation or "Organizations" in the REST API documentation.

If you want to receive an event when a non-member is blocked or unblocked from an organization, use the org_block event instead.

To subscribe to this event, a GitHub App must have at least read-level access for the "Members" organization permission.

Disponibilidad para organization

  • Las organizaciones
  • Empresas
  • Aplicaciones de GitHub

Objeto de carga útil del webhook para organization

An organization was deleted.

Encabezados
Nombre, Tipo, Descripción
Parámetros del cuerpo
Nombre, Tipo, Descripción
action string Requerido

Value: deleted

enterprise object

An enterprise on GitHub.

installation object

The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.

membership object

The membership between the user and the organization. Not present when the action is member_invited.

organization object Requerido

A GitHub organization.

repository object

A repository on GitHub.

sender object Requerido

A GitHub user.

package

This event occurs when there is activity relating to GitHub Packages. For more information, see "Introduction to GitHub Packages." For information about the APIs to manage GitHub Packages, see the GraphQL API documentation or "Packages" in the REST API documentation.

To install this event on a GitHub App, the app must have at least read-level access for the "Packages" repository permission.

Disponibilidad para package

  • Repositorios
  • Las organizaciones
  • Aplicaciones de GitHub

Objeto de carga útil del webhook para package

A package was published to a registry.

Encabezados
Nombre, Tipo, Descripción
Parámetros del cuerpo
Nombre, Tipo, Descripción
action string Requerido

Value: published

enterprise object

An enterprise on GitHub.

installation object

The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.

organization object

A GitHub organization.

package object Requerido

Information about the package.

repository object

A repository on GitHub.

sender object Requerido

A GitHub user.

page_build

This event occurs when there is an attempted build of a GitHub Pages site. This event occurs regardless of whether the build is successful. For more information, see "Configuring a publishing source for your GitHub Pages site." For information about the API to manage GitHub Pages, see "Pages" in the REST API documentation.

To subscribe to this event, a GitHub App must have at least read-level access for the "Pages" repository permission.

Disponibilidad para page_build

  • Repositorios
  • Las organizaciones
  • Aplicaciones de GitHub

Objeto de carga útil del webhook para page_build

Encabezados
Nombre, Tipo, Descripción
Parámetros del cuerpo
Nombre, Tipo, Descripción
build object Requerido
enterprise object

An enterprise on GitHub.

id integer Requerido
installation object

The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.

organization object

A GitHub organization.

repository object Requerido

A repository on GitHub.

sender object Requerido

A GitHub user.

personal_access_token_request

This event occurs when there is activity relating to a request for a fine-grained personal access token to access resources that belong to a resource owner that requires approval for token access. For more information, see "Creating a personal access token."

To subscribe to this event, a GitHub App must have at least read-level access for the "Personal access token requests" organization permission.

Note: Fine-grained PATs are in public beta. Related APIs, events, and functionality are subject to change.

Disponibilidad para personal_access_token_request

  • Aplicaciones de GitHub

Objeto de carga útil del webhook para personal_access_token_request

A fine-grained personal access token request was approved.

Encabezados
Nombre, Tipo, Descripción
Parámetros del cuerpo
Nombre, Tipo, Descripción
action string Requerido

Value: approved

personal_access_token_request object Requerido

Details of a Personal Access Token Request.

organization object Requerido

A GitHub organization.

sender object Requerido

A GitHub user.

installation object Requerido

The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.

ping

This event occurs when you create a new webhook. The ping event is a confirmation from GitHub that you configured the webhook correctly.

Disponibilidad para ping

  • Repositorios
  • Las organizaciones
  • Aplicaciones de GitHub
  • Empresas
  • Marketplace de GitHub

Objeto de carga útil del webhook para ping

Encabezados
Nombre, Tipo, Descripción
Parámetros del cuerpo
Nombre, Tipo, Descripción
hook object

The webhook that is being pinged

hook_id integer

The ID of the webhook that triggered the ping.

organization object

A GitHub organization.

repository object

A repository on GitHub.

sender object

A GitHub user.

zen string

Random string of GitHub zen.

project_card

This event occurs when there is activity relating to a card on a classic project. For more information, see "About projects (classic)." For information about the API to manage classic projects, see the GraphQL API documentation or "Projects (classic)" in the REST API documentation.

For activity relating to a project or a column on a project, use the project and project_column event. For activity relating to Projects instead of Projects (classic), use the projects_v2 event instead.

To subscribe to this event, a GitHub App must have at least read-level access for the "Projects" repository or organization permission.

Disponibilidad para project_card

  • Repositorios
  • Las organizaciones
  • Aplicaciones de GitHub

Objeto de carga útil del webhook para project_card

A note in a classic project was converted to an issue.

Encabezados
Nombre, Tipo, Descripción
Parámetros del cuerpo
Nombre, Tipo, Descripción
action string Requerido

Value: converted

changes object Requerido
enterprise object

An enterprise on GitHub.

installation object

The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.

organization object

A GitHub organization.

project_card object Requerido
repository object

A repository on GitHub.

sender object Requerido

A GitHub user.

project

This event occurs when there is activity relating to a classic project. For more information, see "About projects (classic)." For information about the API to manage classic projects, see the GraphQL API documentation or "Projects (classic)" in the REST API documentation.

For activity relating to a card or column on a project, use the project_card and project_column event. For activity relating to Projects instead of Projects (classic), use the projects_v2 event instead.

To subscribe to this event, a GitHub App must have at least read-level access for the "Projects" repository or organization permission.

Disponibilidad para project

  • Repositorios
  • Las organizaciones
  • Aplicaciones de GitHub

Objeto de carga útil del webhook para project

A classic project was closed.

Encabezados
Nombre, Tipo, Descripción
Parámetros del cuerpo
Nombre, Tipo, Descripción
action string Requerido

Value: closed

enterprise object

An enterprise on GitHub.

installation object

The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.

organization object

A GitHub organization.

project object Requerido
repository object

A repository on GitHub.

sender object Requerido

A GitHub user.

project_column

This event occurs when there is activity relating to a column on a classic project. For more information, see "About projects (classic)." For information about the API to manage classic projects, see the GraphQL API documentation or "Projects (classic)" in the REST API documentation.

For activity relating to a project or a card on a project, use the project and project_card event. For activity relating to Projects instead of Projects (classic), use the projects_v2 event instead.

To subscribe to this event, a GitHub App must have at least read-level access for the "Projects" repository or organization permission.

Disponibilidad para project_column

  • Repositorios
  • Las organizaciones
  • Aplicaciones de GitHub

Objeto de carga útil del webhook para project_column

A column was added to a classic project.

Encabezados
Nombre, Tipo, Descripción
Parámetros del cuerpo
Nombre, Tipo, Descripción
action string Requerido

Value: created

enterprise object

An enterprise on GitHub.

installation object

The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.

organization object

A GitHub organization.

project_column object Requerido
repository object

A repository on GitHub.

sender object

A GitHub user.

projects_v2

This event occurs when there is activity relating to an organization-level project. For more information, see "About Projects." For information about the Projects API, see the GraphQL documentation.

For activity relating to a item on a project, use the projects_v2_item event. For activity relating to Projects (classic), use the project, project_card, and project_column` events instead.

To subscribe to this event, a GitHub App must have at least read-level access for the "Projects" organization permission.

Note: Webhook events for projects are currently in beta and subject to change. To share feedback about projects webhooks with GitHub, see the Projects webhook feedback discussion.

Disponibilidad para projects_v2

  • Las organizaciones

Objeto de carga útil del webhook para projects_v2

A project in the organization was closed.

Encabezados
Nombre, Tipo, Descripción
Parámetros del cuerpo
Nombre, Tipo, Descripción
action string Requerido

Value: closed

organization object Requerido

A GitHub organization.

projects_v2 object Requerido

A projects v2 project

sender object Requerido

A GitHub user.

projects_v2_item

This event occurs when there is activity relating to an item on an organization-level project. For more information, see "About Projects." For information about the Projects API, see the GraphQL documentation.

For activity relating to a project (instead of an item on a project), use the projects_v2 event. For activity relating to Projects (classic), use the project, project_card, and project_column events instead.

To subscribe to this event, a GitHub App must have at least read-level access for the "Projects" organization permission.

Note: Webhook events for projects are currently in beta and subject to change. To share feedback about projects webhooks with GitHub, see the Projects webhook feedback discussion.

Disponibilidad para projects_v2_item

  • Las organizaciones

Objeto de carga útil del webhook para projects_v2_item

An item on an organization project was archived. For more information, see "Archiving items from your project."

Encabezados
Nombre, Tipo, Descripción
Parámetros del cuerpo
Nombre, Tipo, Descripción
action string Requerido

Value: archived

changes object Requerido
installation object

The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.

organization object Requerido

A GitHub organization.

projects_v2_item object Requerido

An item belonging to a project

sender object Requerido

A GitHub user.

public

This event occurs when repository visibility changes from private to public. For more information, see "Setting repository visibility."

To subscribe to this event, a GitHub App must have at least read-level access for the "Metadata" repository permission.

Disponibilidad para public

  • Repositorios
  • Las organizaciones
  • Aplicaciones de GitHub

Objeto de carga útil del webhook para public

Encabezados
Nombre, Tipo, Descripción
Parámetros del cuerpo
Nombre, Tipo, Descripción
enterprise object

An enterprise on GitHub.

installation object

The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.

organization object

A GitHub organization.

repository object Requerido

A repository on GitHub.

sender object Requerido

A GitHub user.

pull_request

This event occurs when there is activity on a pull request. For more information, see "About pull requests." For information about the APIs to manage pull requests, see the GraphQL API documentation or "Pulls" in the REST API documentation.

For activity related to pull request reviews, pull request review comments, pull request comments, or pull request review threads, use the pull_request_review, pull_request_review_comment, issue_comment, or pull_request_review_thread events instead.

To subscribe to this event, a GitHub App must have at least read-level access for the "Pull requests" repository permission.

Disponibilidad para pull_request

  • Repositorios
  • Las organizaciones
  • Aplicaciones de GitHub

Objeto de carga útil del webhook para pull_request

A pull request was assigned to a user.

Encabezados
Nombre, Tipo, Descripción
Parámetros del cuerpo
Nombre, Tipo, Descripción
action string Requerido

Value: assigned

assignee object or null Requerido
enterprise object

An enterprise on GitHub.

installation object

The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.

number integer Requerido

The pull request number.

organization object

A GitHub organization.

pull_request object Requerido
repository object Requerido

A repository on GitHub.

sender object Requerido

A GitHub user.

pull_request_review_comment

This event occurs when there is activity relating to a pull request review comment. A pull request review comment is a comment on a pull request's diff. For more information, see "Commenting on a pull request." For information about the APIs to manage pull request review comments, see the GraphQL API documentation or "Pull request review comments" in the REST API documentation.

For activity related to pull request reviews, pull request comments, or pull request review threads, use the pull_request_review, issue_comment, or pull_request_review_thread events instead.

To subscribe to this event, a GitHub App must have at least read-level access for the "Pull requests" repository permission.

Disponibilidad para pull_request_review_comment

  • Repositorios
  • Las organizaciones
  • Aplicaciones de GitHub

Objeto de carga útil del webhook para pull_request_review_comment

A comment on a pull request diff was created.

Encabezados
Nombre, Tipo, Descripción
Parámetros del cuerpo
Nombre, Tipo, Descripción
action string Requerido

Value: created

comment object Requerido

The comment itself.

enterprise object

An enterprise on GitHub.

installation object

The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.

organization object

A GitHub organization.

pull_request object Requerido
repository object Requerido

A repository on GitHub.

sender object Requerido

A GitHub user.

pull_request_review

This event occurs when there is activity relating to a pull request review. A pull request review is a group of pull request review comments in addition to a body comment and a state. For more information, see "About pull request reviews." For information about the APIs to manage pull request reviews, see the GraphQL API documentation or "Pull request reviews" in the REST API documentation.

For activity related to pull request review comments, pull request comments, or pull request review threads, use the pull_request_review_comment, issue_comment, or pull_request_review_thread events instead.

To subscribe to this event, a GitHub App must have at least read-level access for the "Pull requests" repository permission.

Disponibilidad para pull_request_review

  • Repositorios
  • Las organizaciones
  • Aplicaciones de GitHub

Objeto de carga útil del webhook para pull_request_review

A review on a pull request was dismissed.

Encabezados
Nombre, Tipo, Descripción
Parámetros del cuerpo
Nombre, Tipo, Descripción
action string Requerido

Value: dismissed

enterprise object

An enterprise on GitHub.

installation object

The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.

organization object

A GitHub organization.

pull_request object Requerido
repository object Requerido

A repository on GitHub.

review object Requerido

The review that was affected.

sender object Requerido

A GitHub user.

pull_request_review_thread

This event occurs when there is activity relating to a comment thread on a pull request. For more information, see "About pull request reviews." For information about the APIs to manage pull request review comment threads, see the GraphQL API documentation or "Pull request reviews" in the REST API documentation.

For activity related to pull request review comments, pull request comments, or pull request reviews, use the pull_request_review_comment, issue_comment, or pull_request_review events instead.

To subscribe to this event, a GitHub App must have at least read-level access for the "Pull requests" repository permission.

Disponibilidad para pull_request_review_thread

  • Repositorios
  • Las organizaciones
  • Aplicaciones de GitHub

Objeto de carga útil del webhook para pull_request_review_thread

A comment thread on a pull request was marked as resolved.

Encabezados
Nombre, Tipo, Descripción
Parámetros del cuerpo
Nombre, Tipo, Descripción
action string Requerido

Value: resolved

enterprise object

An enterprise on GitHub.

installation object

The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.

organization object

A GitHub organization.

pull_request object Requerido
repository object Requerido

A repository on GitHub.

sender object

A GitHub user.

thread object Requerido

push

This event occurs when a commit or tag is pushed.

To subscribe to this event, a GitHub App must have at least read-level access for the "Contents" repository permission.

Note: An event will not be created when more than three tags are pushed at once.

Disponibilidad para push

  • Repositorios
  • Las organizaciones
  • Aplicaciones de GitHub

Objeto de carga útil del webhook para push

Encabezados
Nombre, Tipo, Descripción
Parámetros del cuerpo
Nombre, Tipo, Descripción
after string Requerido

The SHA of the most recent commit on ref after the push.

base_ref string or null Requerido
before string Requerido

The SHA of the most recent commit on ref before the push.

commits array of objects Requerido

An array of commit objects describing the pushed commits. (Pushed commits are all commits that are included in the compare between the before commit and the after commit.) The array includes a maximum of 20 commits. If necessary, you can use the Commits API to fetch additional commits. This limit is applied to timeline events only and isn't applied to webhook deliveries.

compare string Requerido

URL that shows the changes in this ref update, from the before commit to the after commit. For a newly created ref that is directly based on the default branch, this is the comparison between the head of the default branch and the after commit. Otherwise, this shows all commits until the after commit.

created boolean Requerido

Whether this push created the ref.

deleted boolean Requerido

Whether this push deleted the ref.

enterprise object

An enterprise on GitHub.

forced boolean Requerido

Whether this push was a force push of the ref.

head_commit object or null Requerido
installation object

The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.

organization object

A GitHub organization.

pusher object Requerido

Metaproperties for Git author/committer information.

ref string Requerido

The full git ref that was pushed. Example: refs/heads/main or refs/tags/v3.14.1.

repository object Requerido

A git repository

sender object

A GitHub user.

registry_package

This event occurs when there is activity relating to GitHub Packages. For more information, see "Introduction to GitHub Packages." For information about the APIs to manage GitHub Packages, see the GraphQL API documentation or "Packages" in the REST API documentation.

To install this event on a GitHub App, the app must have at least read-level access for the "Packages" repository permission.

Note: GitHub recommends that you use the newer package event instead.

Disponibilidad para registry_package

  • Repositorios
  • Las organizaciones
  • Aplicaciones de GitHub

Objeto de carga útil del webhook para registry_package

A package was published to a registry.

Encabezados
Nombre, Tipo, Descripción
Parámetros del cuerpo
Nombre, Tipo, Descripción
action string Requerido

Value: published

enterprise object

An enterprise on GitHub.

installation object

The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.

organization object

A GitHub organization.

registry_package object Requerido
repository object

A repository on GitHub.

sender object Requerido

A GitHub user.

release

This event occurs when there is activity relating to releases. For more information, see "About releases." For information about the APIs to manage releases, see the GraphQL API documentation or "Releases" in the REST API documentation.

To subscribe to this event, a GitHub App must have at least read-level access for the "Contents" repository permission.

Disponibilidad para release

  • Repositorios
  • Las organizaciones
  • Aplicaciones de GitHub

Objeto de carga útil del webhook para release

A draft was saved, or a release or pre-release was published without previously being saved as a draft.

Encabezados
Nombre, Tipo, Descripción
Parámetros del cuerpo
Nombre, Tipo, Descripción
action string Requerido

Value: created

enterprise object

An enterprise on GitHub.

installation object

The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.

organization object

A GitHub organization.

release object Requerido

The release object.

repository object Requerido

A repository on GitHub.

sender object Requerido

A GitHub user.

repository_advisory

This event occurs when there is activity relating to a repository security advisory. For more information about repository security advisories, see "About GitHub Security Advisories for repositories."

To subscribe to this event, a GitHub App must have at least read-level access for the "Repository security advisories" permission.

Disponibilidad para repository_advisory

  • Repositorios
  • Las organizaciones
  • Aplicaciones de GitHub

Objeto de carga útil del webhook para repository_advisory

A repository security advisory was published.

Encabezados
Nombre, Tipo, Descripción
Parámetros del cuerpo
Nombre, Tipo, Descripción
action string Requerido

Value: published

enterprise object

An enterprise on GitHub.

installation object

The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.

organization object

A GitHub organization.

repository object Requerido

A repository on GitHub.

repository_advisory object Requerido

A repository security advisory.

sender object

A GitHub user.

repository

This event occurs when there is activity relating to repositories. For more information, see "About repositories." For information about the APIs to manage repositories, see the GraphQL documentation or "Repositories" in the REST API documentation.

To subscribe to this event, a GitHub App must have at least read-level access for the "Metadata" repository permission.

Disponibilidad para repository

  • Empresas
  • Repositorios
  • Las organizaciones
  • Aplicaciones de GitHub

Objeto de carga útil del webhook para repository

A repository was archived.

Encabezados
Nombre, Tipo, Descripción
Parámetros del cuerpo
Nombre, Tipo, Descripción
action string Requerido

Value: archived

enterprise object

An enterprise on GitHub.

installation object

The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.

organization object

A GitHub organization.

repository object Requerido

A repository on GitHub.

sender object Requerido

A GitHub user.

repository_dispatch

This event occurs when a GitHub App sends a POST request to /repos/{owner}/{repo}/dispatches. For more information, see the REST API documentation for creating a repository dispatch event.

To subscribe to this event, a GitHub App must have at least read-level access for the "Contents" repository permission.

Disponibilidad para repository_dispatch

  • Aplicaciones de GitHub

Objeto de carga útil del webhook para repository_dispatch

The event_type that was specified in the POST /repos/{owner}/{repo}/dispatches request body.

Encabezados
Nombre, Tipo, Descripción
Parámetros del cuerpo
Nombre, Tipo, Descripción
action string Requerido
branch string Requerido
client_payload object or null Requerido
enterprise object

An enterprise on GitHub.

installation object Requerido

The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.

organization object

A GitHub organization.

repository object Requerido

A repository on GitHub.

sender object Requerido

A GitHub user.

repository_import

This event occurs when a repository is imported to GitHub. For more information, see "Importing a repository with GitHub Importer." For more information about the API to manage imports, see the REST API documentation.

Disponibilidad para repository_import

  • Repositorios
  • Las organizaciones

Objeto de carga útil del webhook para repository_import

Encabezados
Nombre, Tipo, Descripción
Parámetros del cuerpo
Nombre, Tipo, Descripción
enterprise object

An enterprise on GitHub.

installation object

The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.

organization object

A GitHub organization.

repository object Requerido

A repository on GitHub.

sender object Requerido

A GitHub user.

status string Requerido

Puede ser uno de los siguientes: success, cancelled, failure

repository_vulnerability_alert

This event occurs when there is activity relating to a security vulnerability alert in a repository.

Note: This event is deprecated. Use the dependabot_alert event instead.

Disponibilidad para repository_vulnerability_alert

  • Repositorios
  • Las organizaciones

Objeto de carga útil del webhook para repository_vulnerability_alert

A repository vulnerability alert was created.

Encabezados
Nombre, Tipo, Descripción
Parámetros del cuerpo
Nombre, Tipo, Descripción
action string Requerido

Value: create

alert object Requerido
enterprise object

An enterprise on GitHub.

installation object

The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.

organization object

A GitHub organization.

repository object Requerido

A repository on GitHub.

sender object Requerido

A GitHub user.

secret_scanning_alert

This event occurs when there is activity relating to a secret scanning alert. For more information about secret scanning, see "About secret scanning." For information about the API to manage secret scanning alerts, see "Secret scanning" in the REST API documentation.

For activity relating to secret scanning alert locations, use the secret_scanning_alert_location event.

To subscribe to this event, a GitHub App must have at least read-level access for the "Secret scanning alerts" repository permission.

Disponibilidad para secret_scanning_alert

  • Repositorios
  • Las organizaciones
  • Aplicaciones de GitHub

Objeto de carga útil del webhook para secret_scanning_alert

A secret scanning alert was created.

Encabezados
Nombre, Tipo, Descripción
Parámetros del cuerpo
Nombre, Tipo, Descripción
action string Requerido

Value: created

alert object Requerido
enterprise object

An enterprise on GitHub.

installation object

The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.

organization object

A GitHub organization.

repository object Requerido

A repository on GitHub.

sender object

A GitHub user.

secret_scanning_alert_location

This event occurs when there is activity relating to the locations of a secret in a secret scanning alert.

For more information about secret scanning, see "About secret scanning." For information about the API to manage secret scanning alerts, see "Secret scanning" in the REST API documentation.

For activity relating to secret scanning alerts, use the secret_scanning_alert event.

To subscribe to this event, a GitHub App must have at least read-level access for the "Secret scanning alerts" repository permission.

Disponibilidad para secret_scanning_alert_location

  • Repositorios
  • Las organizaciones
  • Aplicaciones de GitHub

Objeto de carga útil del webhook para secret_scanning_alert_location

A new instance of a previously detected secret was detected in a repository, and the location of the secret was added to the existing alert.

Encabezados
Nombre, Tipo, Descripción
Parámetros del cuerpo
Nombre, Tipo, Descripción
action string

Value: created

alert object Requerido
installation object

The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.

location object Requerido
organization object

A GitHub organization.

repository object Requerido

A repository on GitHub.

sender object Requerido

A GitHub user.

security_advisory

This event occurs when there is activity relating to a security advisory that was reviewed by GitHub. A GitHub-reviewed security advisory provides information about security-related vulnerabilities in software on GitHub. For more information about security advisories, see "About GitHub Security Advisories for repositories." For information about the API to manage security advisories, see the GraphQL documentation.

GitHub Dependabot alerts are also powered by the security advisory dataset. For more information, see "About Dependabot alerts."

Disponibilidad para security_advisory

  • Aplicaciones de GitHub

Objeto de carga útil del webhook para security_advisory

A security advisory was published to the GitHub community.

Encabezados
Nombre, Tipo, Descripción
Parámetros del cuerpo
Nombre, Tipo, Descripción
action string Requerido

Value: published

enterprise object

An enterprise on GitHub.

installation object

The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.

organization object

A GitHub organization.

repository object

A repository on GitHub.

security_advisory object Requerido

The details of the security advisory, including summary, description, and severity.

sender object

A GitHub user.

security_and_analysis

This event occurs when code security and analysis features are enabled or disabled for a repository. For more information, see "GitHub security features."

To subscribe to this event, a GitHub App must have at least read-level access for the "Administration" repository permission.

Disponibilidad para security_and_analysis

  • Repositorios
  • Las organizaciones
  • Aplicaciones de GitHub

Objeto de carga útil del webhook para security_and_analysis

Encabezados
Nombre, Tipo, Descripción
Parámetros del cuerpo
Nombre, Tipo, Descripción
changes object Requerido
enterprise object

An enterprise on GitHub.

installation object

The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.

organization object

A GitHub organization.

repository object Requerido

Full Repository

sender object

A GitHub user.

sponsorship

This event occurs when there is activity relating to a sponsorship listing. For more information, see "About GitHub Sponsors." For information about the API to manage sponsors, see the GraphQL documentation.

You can only create a sponsorship webhook on GitHub.com. For more information, see "Configuring webhooks for events in your sponsored account."

Disponibilidad para sponsorship

  • Cuentas patrocinadas

Objeto de carga útil del webhook para sponsorship

A sponsorship was cancelled and the last billing cycle has ended.

This event is only sent when a recurring (monthly) sponsorship is cancelled; it is not sent for one-time sponsorships.

Encabezados
Nombre, Tipo, Descripción
Parámetros del cuerpo
Nombre, Tipo, Descripción
action string Requerido

Value: cancelled

enterprise object

An enterprise on GitHub.

installation object

The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.

organization object

A GitHub organization.

repository object

A repository on GitHub.

sender object Requerido

A GitHub user.

sponsorship object Requerido

star

This event occurs when there is activity relating to repository stars. For more information about stars, see "Saving repositories with stars." For information about the APIs to manage stars, see the GraphQL documentation or "Starring" in the REST API documentation.

To subscribe to this event, a GitHub App must have at least read-level access for the "Metadata" repository permission.

Disponibilidad para star

  • Repositorios
  • Las organizaciones
  • Aplicaciones de GitHub

Objeto de carga útil del webhook para star

Someone starred a repository.

Encabezados
Nombre, Tipo, Descripción
Parámetros del cuerpo
Nombre, Tipo, Descripción
action string Requerido

Value: created

enterprise object

An enterprise on GitHub.

installation object

The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.

organization object

A GitHub organization.

repository object Requerido

A repository on GitHub.

sender object Requerido

A GitHub user.

starred_at string or null Requerido

The time the star was created. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ. Will be null for the deleted action.

status

This event occurs when the status of a Git commit changes. For example, commits can be marked as error, failure, pending, or success. For more information, see "About status checks." For information about the APIs to manage commit statuses, see the GraphQL documentation or "Statuses" in the REST API documentation.

To subscribe to this event, a GitHub App must have at least read-level access for the "Commit statuses" repository permission.

Disponibilidad para status

  • Repositorios
  • Las organizaciones
  • Aplicaciones de GitHub

Objeto de carga útil del webhook para status

Encabezados
Nombre, Tipo, Descripción
Parámetros del cuerpo
Nombre, Tipo, Descripción
avatar_url string or null
branches array of objects Requerido

An array of branch objects containing the status' SHA. Each branch contains the given SHA, but the SHA may or may not be the head of the branch. The array includes a maximum of 10 branches.

commit object Requerido
context string Requerido
created_at string Requerido
description string or null Requerido

The optional human-readable description added to the status.

enterprise object

An enterprise on GitHub.

id integer Requerido

The unique identifier of the status.

installation object

The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.

name string Requerido
organization object

A GitHub organization.

repository object Requerido

A repository on GitHub.

sender object Requerido

A GitHub user.

sha string Requerido

The Commit SHA.

state string Requerido

The new state. Can be pending, success, failure, or error.

Puede ser uno de los siguientes: pending, success, failure, error

target_url string or null Requerido

The optional link added to the status.

updated_at string Requerido

team_add

This event occurs when a team is added to a repository. For more information, see "Managing teams and people with access to your repository."

For activity relating to teams, see the teams event.

To subscribe to this event, a GitHub App must have at least read-level access for the "Members" organization permission.

Disponibilidad para team_add

  • Repositorios
  • Las organizaciones
  • Aplicaciones de GitHub

Objeto de carga útil del webhook para team_add

Encabezados
Nombre, Tipo, Descripción
Parámetros del cuerpo
Nombre, Tipo, Descripción
enterprise object

An enterprise on GitHub.

installation object

The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.

organization object

A GitHub organization.

repository object Requerido

A repository on GitHub.

sender object Requerido

A GitHub user.

team object Requerido

Groups of organization members that gives permissions on specified repositories.

team

This event occurs when there is activity relating to teams in an organization. For more information, see "About teams."

To subscribe to this event, a GitHub App must have at least read-level access for the "Members" organization permission.

Disponibilidad para team

  • Las organizaciones
  • Empresas
  • Aplicaciones de GitHub

Objeto de carga útil del webhook para team

A team was granted access to a repository.

Encabezados
Nombre, Tipo, Descripción
Parámetros del cuerpo
Nombre, Tipo, Descripción
action string Requerido

Value: added_to_repository

enterprise object

An enterprise on GitHub.

installation object

The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.

organization object Requerido

A GitHub organization.

repository object

A git repository

sender object

A GitHub user.

team object Requerido

Groups of organization members that gives permissions on specified repositories.

watch

This event occurs when there is activity relating to watching, or subscribing to, a repository. For more information about watching, see "Managing your subscriptions." For information about the APIs to manage watching, see "Watching" in the REST API documentation.

To subscribe to this event, a GitHub App must have at least read-level access for the "Metadata" repository permission.

Disponibilidad para watch

  • Repositorios
  • Las organizaciones
  • Aplicaciones de GitHub

Objeto de carga útil del webhook para watch

Someone started watching the repository.

Encabezados
Nombre, Tipo, Descripción
Parámetros del cuerpo
Nombre, Tipo, Descripción
action string Requerido

Value: started

enterprise object

An enterprise on GitHub.

installation object

The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.

organization object

A GitHub organization.

repository object Requerido

A repository on GitHub.

sender object Requerido

A GitHub user.

workflow_dispatch

This event occurs when a GitHub Actions workflow is manually triggered. For more information, see "Manually running a workflow."

For activity relating to workflow runs, use the workflow_run event.

To subscribe to this event, a GitHub App must have at least read-level access for the "Contents" repository permission.

Disponibilidad para workflow_dispatch

  • Aplicaciones de GitHub

Objeto de carga útil del webhook para workflow_dispatch

Encabezados
Nombre, Tipo, Descripción
Parámetros del cuerpo
Nombre, Tipo, Descripción
enterprise object

An enterprise on GitHub.

inputs object or null Requerido
installation object

The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.

organization object

A GitHub organization.

ref string Requerido
repository object Requerido

A repository on GitHub.

sender object Requerido

A GitHub user.

workflow string Requerido

workflow_job

This event occurs when there is activity relating to a job in a GitHub Actions workflow. For more information, see "Using jobs in a workflow." For information about the API to manage workflow jobs, see "Workflow jobs" in the REST API documentation.

For activity relating to a workflow run instead of a job in a workflow run, use the workflow_run event.

To subscribe to this event, a GitHub App must have at least read-level access for the "Actions" repository permission.

Disponibilidad para workflow_job

  • Empresas
  • Repositorios
  • Las organizaciones
  • Aplicaciones de GitHub

Objeto de carga útil del webhook para workflow_job

A job in a workflow run finished. This event occurs when a job in a workflow is completed, regardless of whether the job was successful or unsuccessful.

Encabezados
Nombre, Tipo, Descripción
Parámetros del cuerpo
Nombre, Tipo, Descripción
action string Requerido

Value: completed

enterprise object

An enterprise on GitHub.

installation object

The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.

organization object

A GitHub organization.

repository object Requerido

A repository on GitHub.

sender object Requerido

A GitHub user.

workflow_job object Requerido
deployment object

A request for a specific ref(branch,sha,tag) to be deployed

workflow_run

This event occurs when there is activity relating to a run of a GitHub Actions workflow. For more information, see "About workflows." For information about the APIs to manage workflow runs, see the GraphQL documentation or "Workflow runs" in the REST API documentation.

For activity relating to a job in a workflow run, use the workflow_job event.

To subscribe to this event, a GitHub App must have at least read-level access for the "Actions" repository permission.

Disponibilidad para workflow_run

  • Empresas
  • Repositorios
  • Las organizaciones
  • Aplicaciones de GitHub

Objeto de carga útil del webhook para workflow_run

A workflow run finished. This event occurs when a workflow run is completed, regardless of whether the workflow was successful or unsuccessful.

Encabezados
Nombre, Tipo, Descripción
Parámetros del cuerpo
Nombre, Tipo, Descripción
action string Requerido

Value: completed

enterprise object

An enterprise on GitHub.

installation object

The GitHub App installation. This property is included when the event is configured for and sent to a GitHub App.

organization object

A GitHub organization.

repository object Requerido

A repository on GitHub.

sender object Requerido

A GitHub user.

workflow object or null Requerido
workflow_run object Requerido