Squash commits in the pull request.
squash action instructs Mergify to squash all commits from a pull request
When you add this action to a rule, Mergify will squash all the commits from the pull request into one commit, making the history of your project cleaner and easier to read.
|Key name||Value type||Default|
Mergify can impersonate a GitHub user to review a pull request. If no
Defines what commit message to use for the squashed commit if no commit message is defined in the pull request body. Possible values are:
Squash on Label
In this example, whenever there's a label
to-squash added, any new commits
pushed to the branch will be squashed into a single commit:
pull_request_rules:- name: automatic squash of pull requestsconditions:- label=to-squashactions:squash: