codu-code / codu

Codú's open-source codebase. A space for coders. Visit our community!
https://codu.co/
Apache License 2.0
118 stars 91 forks source link

Adding to precommit hooks #649

Open garyb1 opened 7 months ago

garyb1 commented 7 months ago

Open question about precommit hooks. We can create individual PR's if we agree.

Feel free to comment below.

NiallJoeMaher commented 7 months ago

Some amazing ideas here!

This is a preference because I like people to commit early and often (even if it's not 100%). However, pull requests should not be merged without these checks passing.

My preference for these things would be individual GitHub actions that confirm these things when a pull request is opened.

Things we could start with immediately:

Which should block PRs from being merged.

And for the rest:

We could start with a warning (like a nice to have) until we have some firm docs and decisions.

thanhsonng commented 7 months ago

I would love to explore this issue, starting with the items suggested as I want to learn more about GitHub actions (I also prefer the light commit approach)

xiaoniuniu89 commented 7 months ago

we should update when possible so builds can pass when deploying in vercel,

NiallJoeMaher commented 7 months ago

@xiaoniuniu89 what updates are needed? 🤔 I'll get it added to the top of my pile.

xiaoniuniu89 commented 7 months ago

will be nice to prevent commit if lint fails, that was problem with my last pr.

xiaoniuniu89 commented 7 months ago

I caught it from running npm run build