Required status checks via rules endpoint, not branch protection endpoint
@hanif-adedotun▲ 0 net votes
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.