Skip to content

Commit

Permalink
"Configure PHP CodeSniffer to run only in non-draft PRs"
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
attackant committed Oct 31, 2023
1 parent c4c7628 commit ec87ffa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/phpcs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit ec87ffa

Please sign in to comment.