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.

Actions

ActionSent when
assignedA pull request was assigned to a user.
auto-merge-disabledAuto merge was disabled for a pull request. For more information, see "Automatically merging a pull request."
auto-merge-enabledAuto merge was enabled for a pull request. For more information, see "Automatically merging a pull request."
closedA pull request was closed. If merged is false in the webhook payload, the pull request was closed with unmerged commits. If merged is true in the webhook payload, the pull request was merged.
converted-to-draftA pull request was converted to a draft. For more information, see "Changing the stage of a pull request."
demilestonedA pull request was removed from a milestone.
dequeuedA pull request was removed from the merge queue.
editedThe title or body of a pull request was edited, or the base branch of a pull request was changed.
enqueuedA pull request was added to the merge queue.
labeledA label was added to a pull request.
lockedConversation on a pull request was locked. For more information, see "Locking conversations."
milestonedA pull request was added to a milestone.
openedA pull request was created
ready-for-reviewA draft pull request was marked as ready for review. For more information, see "Changing the stage of a pull request."
reopenedA previously closed pull request was reopened.
review-request-removedA request for review by a person or team was removed from a pull request.
review-requestedReview by a person or team was requested for a pull request. For more information, see "Requesting a pull request review."
stackedA pull request was added to a stack.
synchronizeA pull request's head branch was updated. For example, the head branch was updated from the base branch or new commits were pushed to the head branch.
unassignedA user was unassigned from a pull request.
unlabeledA label was removed from a pull request.
unlockedConversation on a pull request was unlocked. For more information, see "Locking conversations."

Payload

Fields of the delivery for the first action above. Every action shares the event's core fields.

FieldTypeRequiredDescription
actionstringYes
assigneeobjectYes
enterpriseobjectNoAn enterprise on GitHub. Webhook payloads contain the enterprise property when the webhook is configured
installationobjectNoThe GitHub App installation. Webhook payloads contain the installation property when the event is configured
numberintegerYesThe pull request number.
organizationobjectNoA GitHub organization. Webhook payloads contain the organization property when the webhook is configured for an
pull_requestobjectYes
repositoryobjectYesThe repository on GitHub where the event occurred. Webhook payloads contain the repository property
senderobjectYesA GitHub user.
Subscribing

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