Challenge - 5 Problems
Required Status Checks Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate1:30remaining
What is the output of enabling required status checks in GitHub?
You enable required status checks on a branch in GitHub. What happens when a pull request is opened without passing these checks?
Attempts:
2 left
💡 Hint
Think about what 'required' means for status checks in a branch protection rule.
✗ Incorrect
Required status checks prevent merging pull requests until all checks pass. This ensures code quality and stability.
🧠 Conceptual
intermediate1:30remaining
Which of these is NOT a benefit of required status checks?
Select the option that is NOT a benefit of using required status checks in a Git workflow.
Attempts:
2 left
💡 Hint
Think about what status checks do versus what merge conflict resolution means.
✗ Incorrect
Required status checks verify code quality but do not handle merge conflicts automatically.
❓ Configuration
advanced2:00remaining
How to configure required status checks on a GitHub branch using CLI?
Which command correctly configures a branch protection rule to require the status check named 'ci/build' on branch 'main' using GitHub CLI?
Attempts:
2 left
💡 Hint
GitHub CLI uses 'gh api' to call REST endpoints for advanced settings.
✗ Incorrect
Option A uses the GitHub API via CLI to set required status checks correctly. Other options are invalid commands.
❓ Troubleshoot
advanced2:00remaining
Why does a pull request merge button stay disabled despite passing all checks?
You have required status checks enabled on branch 'develop'. All checks show green, but the merge button is still disabled. What is the most likely cause?
Attempts:
2 left
💡 Hint
Check if the branch protection requires the branch to be updated before merging.
✗ Incorrect
Branch protection can require the branch to be up to date with the base branch before merging, disabling the button until updated.
✅ Best Practice
expert2:30remaining
What is the best practice for required status checks in a team with multiple CI pipelines?
Your team uses multiple CI pipelines for different tests (unit, integration, lint). How should you configure required status checks for the main branch?
Attempts:
2 left
💡 Hint
Think about ensuring code quality and stability with multiple tests.
✗ Incorrect
Requiring all relevant CI pipelines ensures comprehensive testing and reduces risk of broken code.