bitbucket_commits
List, get details, and compare commits in Bitbucket repositories. Obtain diffs and diffstats between any two refs.
Instructions
Manage Bitbucket commits and diffs. Actions:
list: List commits in a repository
get: Get details of a specific commit
get_diff: Get diff between two refs (e.g., "branch1..branch2" or "commit1..commit2")
get_diffstat: Get diffstat (summary of changes) between two refs
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Action to perform | |
| workspace | No | Workspace slug (uses BITBUCKET_WORKSPACE env if omitted) | |
| repo_slug | Yes | Repository slug | |
| commit_hash | No | Commit hash (required for get action) | |
| revision | No | Branch name or commit hash to list commits from | |
| path | No | Filter commits by file path | |
| include | No | Include commits reachable from this ref | |
| exclude | No | Exclude commits reachable from this ref | |
| spec | No | Diff spec (e.g., "main..feature" or "abc123..def456") | |
| page | No | Page number for pagination | |
| pagelen | No | Results per page (default: 25, max 100) | |
| format | No | Output format: json (full), toon (compact tokens), compact (essential fields only) |