Read a file at a commit
get_fileRetrieve the contents of a file from a Bitbucket repository, optionally at a specific commit or branch. Defaults to the repository's default branch if no commit is specified.
Instructions
Reads a file's contents. If commit is omitted, uses the repository's default branch.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | File path within the repository. | |
| repo | Yes | Repository repo_slug. | |
| commit | No | Commit hash or branch. Omit to use the default branch. | |
| workspace | No | Bitbucket workspace. Omit to use BITBUCKET_WORKSPACE. |