Shift3 / standards-and-practices

Standards and Practices for Bitwise Industries
https://shift3.github.io/standards-and-practices/
63 stars 41 forks source link

feature(branch-protections): Team leads should be able to apply branch protections #316

Closed michaelachrisco closed 2 years ago

michaelachrisco commented 2 years ago

Changes

  1. New branch protections readme
  2. Update to master list on standards

Purpose

This README provides guidance and recommendations regarding the GitHub branch protections as well as team assignment to repos. This standard enforces branch protection on the development branch and main branches on projects to prevent accidental pushes to each branch. It seems to work pretty well on our other boilerplate projects.

Approach

Adds images and step by step instructions to set up branch protections on a repo.

Learning

https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/defining-the-mergeability-of-pull-requests/about-protected-branches

https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/defining-the-mergeability-of-pull-requests/managing-a-branch-protection-rule

https://github.community/t/best-practices-for-protected-branches/10204/2

Closes #315