Kissaki to ProgrammingEnglish · 3 days agoThe Pain That is GitHub Actions - Feldera Blogwww.feldera.comexternal-linkmessage-square28fedilinkarrow-up138arrow-down110cross-posted to: hackernews@lemmy.bestiver.se
arrow-up128arrow-down1external-linkThe Pain That is GitHub Actions - Feldera Blogwww.feldera.comKissaki to ProgrammingEnglish · 3 days agomessage-square28fedilinkcross-posted to: hackernews@lemmy.bestiver.se
minus-squareFizzyOrangelinkfedilinkarrow-up4·2 days agoNo, they’re inherently optional in Git. There’s no way to “check in” a git hook. You have to put in your README Clone the repo and then please run pre-commit install! Oh and whatever you do don’t git commit --no-verify! You definitely need to actually check the lints in CI. It’s very easy though, just add pre-commit run -a to your CI script.
minus-squarebamboo@lemm.eelinkfedilinkarrow-up2·2 days agopre-commit also has a free service for open source GitHub repos too. They’ll even push an autofix commit for you if your tools are configured for it
No, they’re inherently optional in Git. There’s no way to “check in” a git hook. You have to put in your
README
You definitely need to actually check the lints in CI. It’s very easy though, just add
pre-commit run -a
to your CI script.pre-commit also has a free service for open source GitHub repos too. They’ll even push an autofix commit for you if your tools are configured for it