Software Testing / Learning brief

Leo blocks a merge until the tests pass

What this means in plain language

Leo protects main, requires the unit tests, and Tom reads a failing check.

Understand the full idea, step by step

A GitHub branch protection rule (a rule on a branch such as main that sets what must be true before a merge) keeps broken work out of the main code. One common rule is a required status check (an automatic job that must pass). If the job fails, the merge button is blocked.

A tester likes this because the tests cannot be skipped in a rush. Tom, a tester at Daily List, a made-up to-do app, asks Leo to turn it on.

PLAIN WORDS · 1 in this section
github
a web site that hosts code and runs checks

Evidence & review

REVIEWED 2026-10-31

The date on this lesson is when it went up on Payments Signal, not when its material was written — most of these were brought across from an earlier catalogue in a single run, which is why so many of them share a date. What the lesson says about the world is dated by the review above and by the sources below it.

Synthetic Daily List teaching scenario; selected publisher documentation scopes are stated in the source drawer. No live service configuration was tested.

What this brief simplifies: SYNTHETIC / TRAINING ONLY. Commands and policies use the stated local fixture and version; product screens, permissions and workflows can differ. Official figure reproduction is not included.

Sources for this brief — 3 sources
  1. Market practice

    Protected branches ↗ — GitHub · Current GitHub Docs, accessed 7 November 2026 — Full operative branch-protection guidance: bypass, expected app, success/skipped/neutral, stale approvals and merge conditions.

    Full operative branch-protection guidance: bypass, expected app, success/skipped/neutral, stale approvals and merge conditions. · Checked 2026-11-07

    Selected publisher sections read for Testing Tools audit. Current GitHub Docs, accessed 7 November 2026. This is not live service testing or a full-publication certification.

  2. Market practice

    Troubleshoot required status checks ↗ — GitHub · Current GitHub Docs, accessed 7 November 2026 — Full operative status guidance: latest SHA/test merge, seven-day eligibility, skipped workflow versus job, eligible events and merge_group.

    Full operative status guidance: latest SHA/test merge, seven-day eligibility, skipped workflow versus job, eligible events and merge_group. · Checked 2026-11-07

    Selected publisher sections read for Testing Tools audit. Current GitHub Docs, accessed 7 November 2026. This is not live service testing or a full-publication certification.

  3. Market practice

    Repository roles ↗ — GitHub · Current GitHub Docs, accessed 7 November 2026 — Full role matrix: Triage can apply labels/milestones and assign; creation and rule editing require different applicable permissions.

    Full role matrix: Triage can apply labels/milestones and assign; creation and rule editing require different applicable permissions. · Checked 2026-11-07

    Selected publisher sections read for Testing Tools audit. Current GitHub Docs, accessed 7 November 2026. This is not live service testing or a full-publication certification.

Learn this properly

START HEREGitHub branch protection and required checks: no merge until the tests passKnow why a team protects its main branch, how a failing required check blocks a merge, and what to read when it does.Opens at L0 Explain simply · about 16 min

Related briefs