From 86dc71687d2fae6bbc1ac91f27cea3a6a02a2a3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mert=20=C5=9Ei=C5=9Fmano=C4=9Flu?= Date: Tue, 12 Aug 2025 01:41:45 +0300 Subject: [PATCH] ci: remove extra 'Close PR' step in check-format workflow MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mert Şişmanoğlu --- .github/workflows/check-format.yml | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/.github/workflows/check-format.yml b/.github/workflows/check-format.yml index 76cb300f1..d3f34635c 100644 --- a/.github/workflows/check-format.yml +++ b/.github/workflows/check-format.yml @@ -39,24 +39,3 @@ jobs: - name: Check server formatting working-directory: server run: npm run format-check - close-pr-if-needed: - if: always() - runs-on: ubuntu-latest - needs: [format-client, format-server] - steps: - - name: Checkout repo - uses: actions/checkout@v4 - - - name: Get PR number - id: pr - run: echo "PR_NUMBER=$(jq -r .pull_request.number "$GITHUB_EVENT_PATH")" >> $GITHUB_ENV - - - name: Close PR using GitHub CLI - if: | - needs.format-client.result == 'failure' || - needs.format-server.result == 'failure' - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - gh pr close "$PR_NUMBER" --delete-branch --comment "❌ Formatting check failed — PR auto-closed. - Please run \`npm run format\` in both `client` and `server` directories and push again."