What must you configure in repository settings to prevent merging a PR if the 'CI / build' check fails?
Select an answer to reveal the explanation.
Short Explanation and Infographic
Required status checks live in branch protection rules — you name the exact check there, and GitHub blocks the merge button until it passes.
Full explanation below image
Full Explanation
To require a status check before merging, go to Repository Settings → Branches → Branch protection rules → select the target branch → enable 'Require status checks to pass before merging' → search for and select the specific check name (e.g., 'CI / build', which matches the workflow name and job name pattern). The check name must match exactly what GitHub receives from the workflow run. 'Required: true' in YAML doesn't exist. '.github/settings.yml' is a third-party convention, not a GitHub-native feature. There's no 'mandatory' field in workflow files.