luizm / action-sh-checker

A GitHub action that performs static analysis for shell scripts using shellcheck, shfmt and checkbashisms.
MIT License
132 stars 12 forks source link

[Question] Can only files with changes be checked? #27

Closed flying-sausages closed 1 year ago

flying-sausages commented 3 years ago

I'd like to only check the files that got changed in a PR. We have ~200 shell scripts in our server toolbox and a single unformatted/unshellchecked file will mark a PR as a fail, regardless of it being touched or not.

Is there a way to do this currently? If not, would it be possible to only check files which are listed in the diff of the PR against the branch it is being merged into?

Thanks in advance!

luizm commented 3 years ago

Hey @flying-sausages .. unfortunately not yet..

But I think I can do it until next week

flying-sausages commented 3 years ago

No rush, just niceties ;)

alan-barzilay commented 3 years ago

any updates on this? @luizm

luizm commented 3 years ago

not yet.. to be honest, no free time to work on it.. 😞