Skip to content

Releases: WorkOfStan/phpcs-fix

fix: do not trigger a GitHub Action by a Tag

22 Oct 23:12
f1d2706

Choose a tag to compare

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

04 Oct 11:16
9f9766b

Choose a tag to compare

Changed

fix: Fix pull request issues

31 May 17:37
71591eb

Choose a tag to compare

Added

  • debug info (list of branches)
  • outputs changed-files with 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

09 Feb 00:06
338c5f7

Choose a tag to compare

PHPCS formatting automated

01 Feb 16:20
11109d3

Choose a tag to compare

  • 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: true to commit to the current branch.
  • Customizable Commit Message: Introduced an input commit-message to allow users to specify a custom commit message.
  • Branch Name Output: The branch-name is 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-fix will 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.