Repo Branch-state
Resolve whether a public GitHub branch exists and return its current head commit without cloning. Branch protection is null when the public API does not expose it.
$0.002 / callPOST /repo/branch-statex402 · Base
Use when
- does this branch exist
- what commit is on the main branch
- check the current repository branch
Input example
{
"repository": "owner/project",
"branch": "main"
}
Canonical paid endpoint
https://http--forest-gas-station-mainnet--lcjl27p8lmjs.code.run/repo/branch-state