Closed sdwru closed 3 years ago
This action runs only for PRs. https://github.com/rtCamp/action-phpcs-code-review#limitations
This action is configured to take the diff. of code in pull request and if any issue is found then it comments (with requested change) on the pull request regarding the phpcs issue.
This process is not possible via push
trigger. Hence it will not run on push.
Getting this error on push. I think it is because it is not grabbing the commit id. I changed
${{ github.event.pull_request.head.sha }}
to${{ github.sha }}
. Is there anything else I should do or maybe this won't work on push?I set up everything exactly according to the instructions as far as I can tell. I am using the
phpcs.yml
example given in my.github/workflow
directory.