squash๐Ÿ”—

The squash action transforms pull request's n-commits into a single commit.

Options๐Ÿ”—

Key Name

Value Type

Default

Value Description

bot_account

Template

Mergify can impersonate a GitHub user to squash a pull request. If no bot_account is set, Mergify will squash the pull request itself.

commit_message

string

all-commits

Defines what commit message to use for the squashed commit if not commit message is defined in the pull request body (see Defining the Commit Message). Possible values are:

  • all-commits to use the same format as GitHub squashed merge commit.

  • first-commit to use the message of the first commit of the pull request.

  • title+body means to use the title and body from the pull request itself as the commit message. The pull request number will be added to end of the title.