Get Pull Request Commits
get_pull_request_commitsRetrieve commits on a pull request with pagination. Specify repository slug and pull request ID to fetch commit history, with options to control page size and number of pages.
Instructions
Get commits on a pull request with pagination support.
Args: repo_slug: Repository slug pull_request_id: Pull request ID workspace: Workspace name (optional, defaults to configured workspace) page_size: Items per page (default: 10, max recommended: 100) max_pages: Maximum pages to fetch (default: 1, max recommended: 10)
Returns: List of commits
Note: Fetching more than 10 pages or 300 items will trigger a warning.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_pages | No | ||
| page_size | No | ||
| repo_slug | Yes | ||
| workspace | No | ||
| pull_request_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |