Complete the command to list all branches in your Git repository.
git [1]The git branch command lists all branches in your repository.
Complete the command to enable required status checks on a branch named 'main'.
gh api repos/:owner/:repo/branches/main/protection --method PATCH -f required_status_checks.strict=[1]Setting required_status_checks.strict=true enables strict required status checks on the branch.
Fix the error in the command to require the status check named 'ci-test'.
gh api repos/:owner/:repo/branches/main/protection/required_status_checks/contexts --method POST -f [1]='ci-test'
The correct field name is context which is used when adding a single status check via the contexts endpoint.
Fill both blanks to create a JSON object that requires status checks 'build' and 'test'.
{"required_status_checks": {"contexts": [[1], [2]]}}The required status checks are named 'build' and 'test', so these strings go inside the contexts list.
Fill all three blanks to complete the GitHub CLI command that sets required status checks 'build' and 'test' on branch 'develop'.
gh api repos/:owner/:repo/branches/[1]/protection -f required_status_checks.contexts='[2],[3]'
The branch is 'develop', and the required status checks are 'build' and 'test'.