github source

github.branches_where_head

fail

List branches for HEAD commit

Requires owner, repo, and commit_sha. Keep queries repository-scoped; fan out across repos client-side when you need broader coverage.

owner, repo, commit_sha captured 2026-08-31 05:40:13Zmedian 25047 ms
Verdict: FALSE

All variants failed: 6 errors, 0 successful.

What to do

GitHub returned 422 (validation error)
upstream.unprocessable

Filter values don't pass GitHub's input validation.

The filter value violates GitHub's validation (e.g. SHAs must be 40 chars)
GitHub returned 422 (validation error)
upstream.unprocessable

Filter values don't pass GitHub's input validation.

Search queries need qualifiers (e.g. is:issue, is:pr, repo:owner/name)
GitHub returned 422 (validation error)
upstream.unprocessable

Filter values don't pass GitHub's input validation.

Document the workaround in the page; do not retry without a known-good input
Retry with alternate repos
retry-strategy

If the failure is 404 on `anomalyco/opencode`, try `sst/opencode` or `octocat/Hello-World`. The retry script does this automatically.

python3 scripts/retry_batch.py --source github --only-category <category>
rendering…

Summary

VariantTrialsMinMedianMaxRow countsErrors
minimal226862 ms29479 ms32096 ms[0, 0]2
realistic225020 ms25047 ms25075 ms[0, 0]2
edge226715 ms26985 ms27255 ms[0, 0]2

Latency per trial

minimalmedian 29479ms
t132096mst226862ms
scale: 0–32096 ms
realisticmedian 25047ms
t125020mst225075ms
scale: 0–25075 ms
edgemedian 26985ms
t127255mst226715ms
scale: 0–27255 ms

Probe variants — every command + output

minimal2 trials
min 26862ms · median 29479ms · max 32096ms · rows 0,0

smallest valid query

Command
SELECT * FROM github.branches_where_head WHERE owner = 'anomalyco' AND repo = 'opencode' AND commit_sha = 'main' LIMIT 1
Trials + output
trial 1·32096ms·rows 0isError=true
Error
Error: Source request failed (422)
Detail: {"message":"No commit found for SHA: main","documentation_url":"https://docs.github.com/rest/commits/commits#list-branches-for-head-commit","status":"422"} [GET] https://api.github.com/repos/anomalyco/opencode/commits/main/branches-where-head
trial 2·26862ms·rows 0isError=true
Error
Error: Source request failed (422)
Detail: {"message":"No commit found for SHA: main","documentation_url":"https://docs.github.com/rest/commits/commits#list-branches-for-head-commit","status":"422"} [GET] https://api.github.com/repos/anomalyco/opencode/commits/main/branches-where-head
realistic2 trials
min 25020ms · median 25047ms · max 25075ms · rows 0,0

typical user query

Command
SELECT * FROM github.branches_where_head WHERE owner = 'anomalyco' AND repo = 'opencode' AND commit_sha = 'main' LIMIT 25
Trials + output
trial 1·25020ms·rows 0isError=true
Error
Error: Source request failed (422)
Detail: {"message":"No commit found for SHA: main","documentation_url":"https://docs.github.com/rest/commits/commits#list-branches-for-head-commit","status":"422"} [GET] https://api.github.com/repos/anomalyco/opencode/commits/main/branches-where-head
trial 2·25075ms·rows 0isError=true
Error
Error: Source request failed (422)
Detail: {"message":"No commit found for SHA: main","documentation_url":"https://docs.github.com/rest/commits/commits#list-branches-for-head-commit","status":"422"} [GET] https://api.github.com/repos/anomalyco/opencode/commits/main/branches-where-head
edge2 trials
min 26715ms · median 26985ms · max 27255ms · rows 0,0

edge: larger limit

Command
SELECT * FROM github.branches_where_head WHERE owner = 'anomalyco' AND repo = 'opencode' AND commit_sha = 'main' LIMIT 200
Trials + output
trial 1·27255ms·rows 0isError=true
Error
Error: Source request failed (422)
Detail: {"message":"No commit found for SHA: main","documentation_url":"https://docs.github.com/rest/commits/commits#list-branches-for-head-commit","status":"422"} [GET] https://api.github.com/repos/anomalyco/opencode/commits/main/branches-where-head
trial 2·26715ms·rows 0isError=true
Error
Error: Source request failed (422)
Detail: {"message":"No commit found for SHA: main","documentation_url":"https://docs.github.com/rest/commits/commits#list-branches-for-head-commit","status":"422"} [GET] https://api.github.com/repos/anomalyco/opencode/commits/main/branches-where-head

All returned rowsacross all non-errored trials · filterable · paginated

0 rows stored · 0 returned · page 1/1
No rows captured. Trials either returned isError=true (errors shown above) or the probe runner didn't capture full output rows.

Trial comparison

Variant / comboTrial #LatencyRowsStatusFirst key returned
minimalt132096ms0error
minimalt226862ms0error
realistict125020ms0error
realistict225075ms0error
edget127255ms0error
edget226715ms0error
Probed by bld-dabqr1nqj5pc73dgn3h0-676t6 at 2026-08-31T05:40:13Z
JSON record: reports/github/tables/branches_where_head.json
first_run_at: 2026-08-31T05:40:13Z
last_retried_at: 2026-08-31T05:40:13Z
retry_count: 0
View version history →