Typically in repos there are protections on the main branch to prevent someone accidentally pushing changes directly onto the main branch vs creating their own separate branch, pushing to that branch, getting that branch approved (ideally), and then merging into main.
Github provides a way to protect the main branch: https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-protected-branches/managing-a-branch-protection-rule
An important note is that while we want to have branch protections, the protections should NOT block an urgent push and merge up to main in case there are last second changes that have to be made during a tournament.
Typically in repos there are protections on the main branch to prevent someone accidentally pushing changes directly onto the main branch vs creating their own separate branch, pushing to that branch, getting that branch approved (ideally), and then merging into main.
Github provides a way to protect the main branch: https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-protected-branches/managing-a-branch-protection-rule
An important note is that while we want to have branch protections, the protections should NOT block an urgent push and merge up to main in case there are last second changes that have to be made during a tournament.