merge_group

This page was generated based on Github’s Documentation. See our welcome page for context and details.

Github Event merge_group #

Github Action Trigger #

source

Webhook event payloadActivity typesGITHUB_SHAGITHUB_REF
merge_groupchecks_requestedSHA of the merge groupRef of the merge group

Note: More than one activity type triggers this event. Although only the checks_requested activity type is supported, specifying the activity type will keep your workflow specific if more activity types are added in the future. For information about each activity type, see “Webhook events and payloads.” By default, all activity types trigger workflows that run on this event. You can limit your workflow runs to specific activity types using the types keyword. For more information, see “Workflow syntax for GitHub Actions.”

Runs your workflow when a pull request is added to a merge queue, which adds the pull request to a merge group. For more information see “Merging a pull request with a merge queue”.

For example, you can run a workflow when the checks_requested activity has occurred.

on:
  merge_group:
    types: [checks_requested]

Event Payload #

source

Activities: checks_requested, destroyed

Common Fields #

These fields are common to every event types available with this trigger.
fieldtyperequireddescription
github.event.installationobjectoptional

The GitHub App installation. Webhook payloads contain the installation property when the event is configured for and sent to a GitHub App. For more information, see “Using webhooks with GitHub Apps."

github.event.merge_groupobjectrequired

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

github.event.merge_group.head_shastringrequired

The SHA of the merge group.

github.event.merge_group.head_refstringrequired

The full ref of the merge group.

github.event.merge_group.base_shastringrequired

The SHA of the merge group’s parent commit.

github.event.merge_group.base_refstringrequired

The full ref of the branch the merge group will be merged into.

github.event.merge_group.head_commitobjectrequired

A commit.

github.event.merge_group.head_commit.idstringrequired

SHA for the commit

github.event.merge_group.head_commit.tree_idstringrequired

SHA for the commit’s tree

github.event.merge_group.head_commit.messagestringrequired

Message describing the purpose of the commit

github.event.merge_group.head_commit.timestampstringrequired

Timestamp of the commit

github.event.merge_group.head_commit.authorobject or nullrequired

Information about the Git author

github.event.merge_group.head_commit.author.namestringrequired

Name of the commit’s author

github.event.merge_group.head_commit.author.emailstringrequired

Git email address of the commit’s author

github.event.merge_group.head_commit.committerobject or nullrequired

Information about the Git committer

github.event.merge_group.head_commit.committer.namestringrequired

Name of the commit’s committer

github.event.merge_group.head_commit.committer.emailstringrequired

Git email address of the commit’s committer

github.event.organizationobjectoptional

A GitHub organization. Webhook payloads contain the organization property when the webhook is configured for an organization, or when the event occurs from activity in a repository owned by an organization.

github.event.repositoryobjectoptional

The repository on GitHub where the event occurred. Webhook payloads contain the repository property when the event occurs from activity in a repository.

github.event.senderobjectoptional

The GitHub user that triggered the event. This property is included in every webhook payload.

checks_requested #

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.

fieldtyperequireddescription
github.event.actionchecks_requestedrequired

destroyed #

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.

fieldtyperequireddescription
github.event.actiondestroyedrequired
github.event.reasonmerged, invalidated, dequeuedoptional

Explains why the merge group is being destroyed. The group could have been merged, removed from the queue (dequeued), or invalidated by an earlier queue entry being dequeued (invalidated).