Skip to content

GitHubPullRequestWebhookPayload

Defined in: webhooks/webhooks.ts:106

The payload of a pull_request webhook delivery.

action: string

Defined in: webhooks/webhooks.ts:108

What happened to the pull request, e.g. opened or closed.


optional changes?: object

Defined in: webhooks/webhooks.ts:110

For an edited action, the fields that changed (each holds the previous value); absent for other actions.

optional body?: object

Present when the description was edited.

from: string | null

The description before the edit; null when it was empty.

optional title?: object

Present when the title was edited.

from: string

The title before the edit.


optional installation?: object

Defined in: webhooks/webhooks.ts:123

The installation the delivery is about, when sent.

id: number

The installation id.


repository: object

Defined in: webhooks/webhooks.ts:128

The repository the pull request belongs to.

full_name: string

The repository’s owner/name.