You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe your use case and the problem you are facing
When I forget to run PHPCBF before making a pull request, errors that can be fixed automatically are flagged by PHPCS for manual review.
Describe the solution you'd like
In the code-quality.yml GitHub Action, PHPCBF should be run before PHPCS:
- name: Run PHPCBF to fix what it can
continue-on-error: true
run: vendor/bin/phpcbf
- name: Run PHPCS and add annotations to the code
run: vendor/bin/phpcs -q -n --report=checkstyle | cs2pr
At some point the PHPCBF changes need to be committed. This could be immediately after PHPCBF is run but would mean contributors need to pull changes before they can push again, (I see a note in my own yml: "NB: Pull requests from forks do not have access to repository secrets so cannot commit changes.") so maybe on every commit to master PHPCBF plus a commit should be run:
Feature Request
Describe your use case and the problem you are facing
When I forget to run PHPCBF before making a pull request, errors that can be fixed automatically are flagged by PHPCS for manual review.
Describe the solution you'd like
In the
code-quality.yml
GitHub Action, PHPCBF should be run before PHPCS:At some point the PHPCBF changes need to be committed.
This could be immediately after PHPCBF is run but would mean contributors need to pull changes before they can push again,(I see a note in my own yml: "NB: Pull requests from forks do not have access to repository secrets so cannot commit changes.") so maybe on every commit to master PHPCBF plus a commit should be run:The text was updated successfully, but these errors were encountered: