Releases: WorkOfStan/phpcs-fix
Releases · WorkOfStan/phpcs-fix
fix: do not trigger a GitHub Action by a Tag
Changed
- bump GitHub Action's versions
- make the commit message compliant with Conventional Commits
Fixed
- Trigger changed to ignore tags. I.e. change of the original trigger
on: [pull_request, push]which caught also tags. (When running on a tag, actions/checkout runs on refs/tags/vX.Y.Z, so you end up with a detached HEAD, and github.head_ref is empty (it only exists on pull_request).)
feat: the default commit message made compliant with Conventional Commits
Changed
- the default commit message made compliant with Conventional Commits
- chore(super-linter): Bumps super-linter/super-linter from 8.1.0 to 8.2.0.
fix: Fix pull request issues
Added
- debug info (list of branches)
- outputs
changed-fileswith a comma-separated list of files changed by phpcbf
Fixed
- Prevents issues with changing files in detached HEAD states (during pull request) by committing to the source branch of the pull request.
Direct link to a new commit
Added
- notice the commit URL
PHPCS formatting automated
- This GitHub Action automates PHPCS formatting across your project, ensuring consistent code styling by creating a new branch for review when necessary. It simplifies integrating PHPCS/PHPCBF into your workflow.
- A warning appears in the GitHub Actions Annotations section if changes occur and therefore a new branch is created.
- A proposed manual changed linked from the warning in the GitHub Actions Annotations section.
- The input parameter
commit-changes: trueto commit to the current branch. - Customizable Commit Message: Introduced an input
commit-messageto allow users to specify a custom commit message. - Branch Name Output: The
branch-nameis provided as an output for downstream workflows. - Notice about a successful commit.
- Checkout code: Fetches the latest changes so that modifications from a previous job are included, enabling seamless job chaining.
- The new boolean input
stop-on-manual-fixwill cause the workflow to stop (fail) if manual fixes are necessary. (Also stops with an error if some manual fixes are required on top of automatic fixes.) - Cached
vendor/(for a unique combination of php-version and composer.json) after a successful run in order to speed up further runs.