diff --git a/templates/terraform/.github/mergify.yml b/templates/terraform/.github/mergify.yml index b0106567e..ef15545ec 100644 --- a/templates/terraform/.github/mergify.yml +++ b/templates/terraform/.github/mergify.yml @@ -56,3 +56,10 @@ pull_request_rules: changes_requested: true approved: true message: "This Pull Request has been updated, so we're dismissing all reviews." + +- name: "close Pull Requests without files changed" + conditions: + - "#files=0" + actions: + close: + message: "This pull request has been automatically closed by Mergify because there are no longer any changes."