coda / packs-sdk

SDK for Coda Packs
https://coda.io/why-build-packs
MIT License
91 stars 26 forks source link

Disallow committing and pushing to `main` directly #3116

Closed ezhan-codaio closed 1 week ago

jonathan-codaio commented 1 week ago

Hmm I thought we usually do this with branch protection rules. We do have these activated in this repo. Is it just because you're a superuser that you were able to bypass? Do we just need to add another setting to prevent that?

Screenshot 2024-11-22 at 3 50 44 PM
ezhan-codaio commented 1 week ago

Yeah admins bypass all branch protection rules, we use git hooks in other repos too to prevent that.

jonathan-codaio commented 1 week ago

Yeah admins bypass all branch protection rules, we use git hooks in other repos too to prevent that.

I'm a little baffled that GitHub allows this without at least a CLI flag to signal intent.