close ๐Ÿ”—

The close action closes the pull request โ€” without merging it.

Options ๐Ÿ”—

Key Name

Value Type

Default

Value Description

message

Template

This pull request has been automatically closed by Mergify.

The message to write as a comment after closing the pull request.

Examples ๐Ÿ”—

โŒ Automatically close pull request touching a file ๐Ÿ”—

If you wanted to automatically close pull request that touches a certain file, let's say do_not_touch.txt, you could write a rule such as:

pull_request_rules:
  - name: disallow changing a file
    conditions:
      - files=do_not_touch.txt
    actions:
      close: