Parameters
Branch name or commit SHA. If not specified, uses the repository’s default branch
When
true, resolves the ref under the ephemeral namespaceJWT Requirements
- The JWT must include the repository in the
repoclaim - Requires
git:readscope
Response
Notes
- Returns all files in the repository at the specified ref
- Directories are not included in the list, only files
- File paths are relative to the repository root
- If no
refis specified, the repository’s default branch is used (typicallymainormaster) paths: Array of file paths in the repositoryref: The resolved reference (branch name or commit SHA) that was used
Error Responses
Reference doesn’t exist. This includes newly created repos that haven’t been pushed to yet, since they don’t have any branches.
Invalid JWT or missing
git:read scope