abdulrehman-11/PR Prettier Action
Automatically runs prettier on all your changes in a PR.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stalelast commit May 28, 2024
- License
- MIT
Pinned Snippet
uses: abdulrehman-11/pr-prettier@28433b238973ebbe1867c3787146821e5be49dd0 # initialtags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| commit_message | Commit message, will be ignored if used with same_commit | no | Prettified Code! |
| commit_description | Extended commit message, will be ignored if used with same_commit | no | "" |
| same_commit | Update the current commit instead of creating a new one | no | false |
| commit_options | Commit options | no | — |
| push_options | Git push options | no | — |
| file_pattern | File pattern used for `git add`, can't be used with only_changed! | no | * |
| prettier_options | Options for the `prettier` command | no | --write **/*.js |
| dry | Running the script in dry mode just shows whether there are files that should be prettified or not | no | false |
| prettier_version | Specific version of prettier (by default just use the latest version) | no | false |
| working_directory | Specify a directory to cd into before installing prettier and running it | no | false |
| only_changed | Only prettify files changed in the last commit, can't be used with file_pattern! | no | false |
| prettier_plugins | Install Prettier plugins, i.e. `@prettier/plugin-php @prettier/plugin-other` | no | "" |
| github_token | GitHub Token or PAT token used to authenticate against a repository | no | ${{ github.token }} |
| clean_node_folder | Remove the node_modules folder before committing changes | no | true |
Outputs
no outputs