Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ruleset to protect the main branch #17

Open
jnioche opened this issue Oct 5, 2024 · 2 comments
Open

Add ruleset to protect the main branch #17

jnioche opened this issue Oct 5, 2024 · 2 comments

Comments

@jnioche
Copy link
Owner

jnioche commented Oct 5, 2024

Probably a good practice to adopt?

https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-rulesets/about-rulesets

@xoen
Copy link
Collaborator

xoen commented Oct 5, 2024

Only skimmed through that but yeah, in general it is best to prevent pushing directly to main - not that I'd do that but it could still happen by accident in theory :)

I'd probably still want to retain the ability git push force (well --force-with-lease really) into branches as it is nice to be able to rewrite the history there sometimes (for tidying things up)

@jnioche
Copy link
Owner Author

jnioche commented Oct 6, 2024

  • not that I'd do that but it could still happen by accident in theory :)

I'm totally prone to doing things like that

I'd probably still want to retain the ability git push force (well --force-with-lease really) into branches as it is nice to be able to rewrite the history there sometimes (for tidying things up)

agreed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants