bitbucket_get_pull_request_commits
Retrieve the list of commits for a pull request, including commit hashes, authors, timestamps, and messages, to trace all changes introduced.
Instructions
Get the list of commits included in a pull request.
Returns each commit's hash, author, timestamp, and commit message so you can trace what changes were introduced and by whom. If limit is not specified, all commits are returned.
Args: workspace: Workspace name or project key. repository: Repository name. pull_request_id: Pull request ID. limit: Maximum number of commits to return. If not specified, returns all commits.
Returns: JSON string containing the list of commits for the pull request.
Raises: ValueError: If the Bitbucket client is not configured or available.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of commits to return. Omit or set to null to return all commits. | |
| workspace | Yes | Workspace name (Cloud) or project key (Server/DC) | |
| repository | Yes | Repository name | |
| pull_request_id | Yes | Pull request ID |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |