What are required status checks and branch protection, and how do they relate to CI?
BeginnerConceptFundamentals and Pipeline Design
Answer
Branch protection (GitHub) or protected branches (GitLab) enforce rules on main: no direct pushes, PR review required, and specified CI jobs must pass before merge. These are the required status checks. They turn CI from advice into a gate: a red build cannot be merged.
Check names must match exactly the job names reported to the PR. If you rename a job, update the protection rule or merges will wait forever.
More on Fundamentals and Pipeline Design
What is Continuous Integration (CI)?BeginnerWhat is the difference between Continuous Delivery and Continuous Deployment?IntermediateWhat is a CI/CD pipeline and what are its stages?BeginnerWhy should a pipeline "fail fast", and how do you order stages to achieve it?IntermediateWhat makes a build reproducible, and why does it matter?AdvancedHow does your branching strategy affect CI? Compare trunk-based development with GitFlow.Intermediate