Open jakeboone02 opened 2 years ago
Seems this is a feature missing in Prettier itself https://github.com/prettier/prettier/issues/6885
That's actually strange, maybe some config wasn't picked up by the action? @jakeboone02
Anyways I am not aware of a function like this, but maybe we could add something like this? Either a debug variable or maybe we could run this if prettier fails? Problem at the moment would be that we already stop the action as soon as prettier fails.
Thanks, @creyD. As I mentioned in the issue description, I think something like show-changes: true
or debug-mode: true
would be useful. Would you want any assistance? Not sure how much I can do but I'll take a look if you want.
@jakeboone02 Thanks for the offer! Always open for PRs or any help, will do my best to respond in a timely manner.
What would you like to change about the program? I'm running this GHA on my
react-querybuilder
repository. When I run Prettier on my local machines (yarn pretty-print
), it makes no changes. But when I push a commit to PR react-querybuilder/react-querybuilder#370 and it runs the Prettier action (which I assumed was running Prettier with the same options/config), I get the following output:I can see that 3 files were changed, but I don't know what was changed. Is there a good way to run
git diff
after a failed run of this GHA?Why do you think this is a cool idea? This may be more of a general GHA question (it's fairly easy to continue to the next step after error) than specific to this action, but it does seem like a useful feature. Maybe a
show-changes: true
option or something.Edit: I ended up just running Prettier directly, but I can't figure out what the difference was between that method and running this GHA.