capabilities.work

Read a file or directory at a revision

One step with Atlassian. We can help you get access.

Look something up

Read a file or directory at a revision

with Atlassian · Software Construction Management

Use Atlassian: its Atlassian Bitbucket Source - Repositories API lets you read a file or directory at a revision in a single step (GET /repositories/{workspace}/{repo_slug}/src/{commit}/{path}). capabilities.work can help you get signed up and connected.

  • How do I read the raw contents of a file at a given commit in Bitbucket?
  • Can I list a directory recursively at a specific branch or tag?
Say it to your AI assistant
  • Get the contents of {path} at {commit} in {workspace}/{repo_slug}.
  • List directory {path} at revision {commit} in repo {repo_slug}, workspace {workspace}, to depth {max_depth}.
For your developer

GET /repositories/{workspace}/{repo_slug}/src/{commit}/{path} in Atlassian Bitbucket Source - Repositories API. Full spec on APIs.io.