Task 1.1.2 Set Up Branch Protection Rules
Opened this issue · 0 comments
tommanzur commented
Objective: Ensure the main branch's integrity and reliability by establishing branch protection rules. These rules will help prevent unreviewed code from being merged and ensure that all changes undergo a thorough review process before they are integrated into the main branch.
Details:
- Navigate to the repository settings on GitHub.
- Select the "Branches" section from the side menu.
- Under "Branch protection rules", click on "Add rule".
- Apply the protection rules to the main branch (or master, depending on your naming convention).
- Configure the following rules:
- Require pull request reviews before merging, with a minimum number of required review approvals.
- Enforce all configured restrictions for administrators as well, to ensure even the project's maintainers follow the workflow.
- Save the changes to enforce the branch protection rules.
Expected Outcome: The main branch is protected from direct pushes; all changes must come through pull requests reviewed by at least one other project contributor, ensuring code quality and project stability.