From ec87ffa823a3c8309c7763f183932de3668c782a Mon Sep 17 00:00:00 2001 From: Damian Taggart <4309872+attackant@users.noreply.github.com> Date: Tue, 31 Oct 2023 08:52:57 -0600 Subject: [PATCH] "Configure PHP CodeSniffer to run only in non-draft PRs" This update adjusts the GitHub Action for running PHP CodeSniffer to trigger only for non-draft pull requests on 'develop' branch. The purpose is to minimize unnecessary runs and provide feedback only when code is ready for review. --- .github/workflows/phpcs.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/phpcs.yml b/.github/workflows/phpcs.yml index 0115c7f9..6929e16a 100644 --- a/.github/workflows/phpcs.yml +++ b/.github/workflows/phpcs.yml @@ -2,12 +2,16 @@ name: PHP Coding Standards on: pull_request: + branches: + - develop + types: [ opened, synchronize, reopened, ready_for_review ] jobs: phpcs: strategy: matrix: php: [ 8.0 ] + if: github.event.pull_request.draft == false uses: alleyinteractive/.github/.github/workflows/php-coding-standards.yml@main with: php: ${{ matrix.php }}