v1

latestOpenAPI 3.1.02026-07-22168133210.3 KB
GitHub Search

Github Read

Read a file from a GitHub repository with optional line range.

post/github/read

Request body

repositorystring required

Repository in owner/repo format

pathstring required

File path within the repository

refstring

Branch, tag, or commit SHA

start_lineinteger nullable

1-based start line

end_lineinteger nullable

1-based end line (inclusive)

Response

Successful Response

{"stackTrail":"paths:/github/read:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}