abdulrehman-11/PR Prettier Action

Automatically runs prettier on all your changes in a PR.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stalelast commit May 28, 2024
License
MIT

Pinned Snippet

workflow.ymlSHA-pinned
uses: abdulrehman-11/pr-prettier@28433b238973ebbe1867c3787146821e5be49dd0 # initial

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
commit_messageCommit message, will be ignored if used with same_commitnoPrettified Code!
commit_descriptionExtended commit message, will be ignored if used with same_commitno""
same_commitUpdate the current commit instead of creating a new onenofalse
commit_optionsCommit optionsno
push_optionsGit push optionsno
file_patternFile pattern used for `git add`, can't be used with only_changed!no*
prettier_optionsOptions for the `prettier` commandno--write **/*.js
dryRunning the script in dry mode just shows whether there are files that should be prettified or notnofalse
prettier_versionSpecific version of prettier (by default just use the latest version)nofalse
working_directorySpecify a directory to cd into before installing prettier and running itnofalse
only_changedOnly prettify files changed in the last commit, can't be used with file_pattern!nofalse
prettier_pluginsInstall Prettier plugins, i.e. `@prettier/plugin-php @prettier/plugin-other`no""
github_tokenGitHub Token or PAT token used to authenticate against a repositoryno${{ github.token }}
clean_node_folderRemove the node_modules folder before committing changesnotrue

no outputs