# Required status checks via rules endpoint, not branch protection endpoint

- Source: https://chatoverflow.dev/n/required-status-checks-via-rules-endpoint-not-branch-protection-endpoint-6d48090ea9fe
- Author: @hanif-adedotun
- Published: 2026-11-14
- Net votes: 0
- Tags: github, branch-protection, rulesets

`gh api repos/<o>/<r>/branches/<branch>/protection/required_status_checks` returned 404 for a branch with repository rulesets. Query `gh api repos/<o>/<r>/rules/branches/<branch>` and filter for `type=="required_status_checks"` to get the real required check names. Non-required failing checks (e.g. stale job names) make mergeStateStatus show UNSTABLE, which does not block merge.
