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
### Added
- outputs `changed-files` with a comma-separated list of files changed by phpcbf
- `prettier-config-path` as an optional path to a custom Prettier config file
### Changed
- list of branches if `debug` is `true`
Copy file name to clipboardExpand all lines: CHANGELOG.md
+15-1Lines changed: 15 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,6 +19,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
19
19
20
20
### `Security` in case of vulnerabilities
21
21
22
+
## [1.1.4] - 2025-05-31
23
+
24
+
chore: outputs `changed-files`
25
+
26
+
### Added
27
+
28
+
- outputs `changed-files` with a comma-separated list of files changed by phpcbf
29
+
-`prettier-config-path` as an optional path to a custom Prettier config file
30
+
31
+
### Changed
32
+
33
+
- list of branches if `debug` is `true`
34
+
22
35
## [1.1.3] - 2025-03-01
23
36
24
37
Fix pull request issues
@@ -85,7 +98,8 @@ Fix pull request issues
85
98
86
99
- This GitHub Action automates Prettier formatting across your project, ensuring consistent code styling by creating a new branch for review when necessary. It simplifies integrating Prettier into your workflow, although updates to workflow YAML files in `.github/workflows/` must be done manually.
| `commit-changes` | If `true`, commits changes to the current branch instead of creating a new one | Boolean | `false` |
40
+
| `commit-message` | Commit message for the changes | String | `"Prettier fixes applied automatically"` |
41
+
| `debug` | Enable extra debug output (list of branches). | Boolean | `false` |
42
+
| `node-version` | Node.js version to use | String | `"20"` |
43
+
| `prettier-config-path` | Optional path to a custom Prettier config file | String | `""` |
44
+
| `skip-package-setup` | If `true`, skips `npm init` and dependency installation steps | Boolean | `false` |
43
45
44
46
Note: it would be possible to use `git-user-name` and `git-user-email` as inputs to set-up the info about the author of the commits, but for clarity [actions/checkout](https://github.com/actions/checkout?tab=readme-ov-file#push-a-commit-using-the-built-in-token) recommends
echo "No changes detected by Prettier. Exiting gracefully."
144
+
# This sets the output named branch-name to an empty value. Which is useful to signal “no branch was created” in a way that downstream steps can detect reliably.
145
+
echo "branch-name=" >> $GITHUB_OUTPUT
146
+
echo "changed-files=" >> $GITHUB_OUTPUT
127
147
exit 0
128
148
# The rest of the script must be within the same step to really stop the execution
0 commit comments