tommanzur/instagram-bot

Task 1.1.2 Set Up Branch Protection Rules

Opened this issue · 0 comments

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:

  1. Navigate to the repository settings on GitHub.
  2. Select the "Branches" section from the side menu.
  3. Under "Branch protection rules", click on "Add rule".
  4. Apply the protection rules to the main branch (or master, depending on your naming convention).
  5. 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.
  1. 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.