From 2e7b67d9912345f6998180cdc227012f852927b2 Mon Sep 17 00:00:00 2001 From: Alex Holliday Date: Sun, 1 Jun 2025 11:39:17 -0700 Subject: [PATCH] auto-close --- .github/workflows/check-format.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/check-format.yml b/.github/workflows/check-format.yml index d3f34635c..56a9dabff 100644 --- a/.github/workflows/check-format.yml +++ b/.github/workflows/check-format.yml @@ -39,3 +39,16 @@ jobs: - name: Check server formatting working-directory: server run: npm run format-check + close-pr-if-needed: + needs: [format-client, format-server] + runs-on: ubuntu-latest + if: | + needs.format-client.result == 'failure' || + needs.format-server.result == 'failure' + steps: + - name: Close PR + uses: peter-evans/close-pull@v3 + with: + comment: | + ❌ PR closed automatically because formatting failed in one or more modules. + Please run `npm run format` in both `client/` and `server/` before pushing again.