Search

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

post/github/read

Request

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

unknown required

Changes