Skip to content

Pull Requests

11 tools for working with pull requests, including comments, activity, diffs, commit lists, CI/CD build statuses, and a curated context bundle.


List all pull requests for a repository, with optional state filtering.

ParameterRequiredDescription
workspaceWorkspace slug
repo_slugRepository slug
stateNoFilter by state: OPEN, MERGED, DECLINED, SUPERSEDED
pageNoPage number
pagelenNoResults per page

Example prompt:

“Show open pull requests for myworkspace/myrepo”


Get detailed information about a single pull request.

ParameterRequiredDescription
workspaceWorkspace slug
repo_slugRepository slug
pull_request_idPR number

Example prompt:

“Get details for PR #123 in myworkspace/myrepo”


List all comments on a pull request, including inline code comments and general comments.

ParameterRequiredDescription
workspaceWorkspace slug
repo_slugRepository slug
pull_request_idPR number
pageNoPage number
pagelenNoResults per page

Example prompt:

“List all comments on PR #123”


Get a single comment by its ID.

ParameterRequiredDescription
workspaceWorkspace slug
repo_slugRepository slug
pull_request_idPR number
comment_idComment ID

Example prompt:

“Get comment #12345678 from PR #123 in myworkspace/myrepo”


Get a full comment thread with all nested replies. Automatically fetches all pages for large PRs via fetchAllPages().

ParameterRequiredDescription
workspaceWorkspace slug
repo_slugRepository slug
pull_request_idPR number
comment_idRoot comment ID

Example prompt:

“Get the comment thread for comment #12345678 on PR #123”


Track the activity timeline of a pull request: reviews, approvals, comments, and state changes.

ParameterRequiredDescription
workspaceWorkspace slug
repo_slugRepository slug
pull_request_idPR number
pageNoPage number
pagelenNoResults per page

Example prompt:

“Show the activity timeline for PR #123”


Get the unified diff for a pull request — shows all file changes as a standard patch format.

ParameterRequiredDescription
workspaceWorkspace slug
repo_slugRepository slug
pull_request_idPR number
contextNoNumber of context lines around changes
pathNoFilter diff to a single file path

Example prompt:

“Show me the diff for PR #123”


Get per-file change statistics for a pull request (lines added/removed, files changed).

ParameterRequiredDescription
workspaceWorkspace slug
repo_slugRepository slug
pull_request_idPR number
pathNoFilter diffstat to a single file path

Example prompt:

“How many files changed in PR #123?”


List all commits included in a pull request.

ParameterRequiredDescription
workspaceWorkspace slug
repo_slugRepository slug
pull_request_idPR number
pageNoPage number
pagelenNoResults per page

Example prompt:

“List commits in PR #123”


Get CI/CD build statuses for a pull request — shows pass/fail status for each build pipeline attached to the PR.

ParameterRequiredDescription
workspaceWorkspace slug
repo_slugRepository slug
pull_request_idPR number
pageNoPage number
pagelenNoResults per page

Example prompt:

“Get build statuses for PR #123”


Get a curated bundle of PR context in a single call: PR metadata, diffstat summary, build/review status, and comment previews. Fetches all data in parallel. Accepts three input modes — direct params, a Bitbucket PR URL, or a branch name.

ParameterRequiredDescription
workspaceNo*Workspace slug (*required if url is not provided)
repo_slugNo*Repository slug (*required if url is not provided)
pull_request_idNoPR number. If omitted, branch must be provided.
branchNoBranch name to look up the open PR for. Ignored if pull_request_id is provided.
urlNoBitbucket PR URL (e.g. https://bitbucket.org/workspace/repo/pull-requests/42). Extracts workspace, repo_slug, and PR ID automatically.
detail_levelNosummary (default) or full. Full adds PR description, per-file diffstat, and last 20 comments.

Input modes:

  • Mode 1 — Direct: workspace + repo_slug + pull_request_id
  • Mode 2 — URL: url (workspace, repo, and PR ID extracted automatically)
  • Mode 3 — Branch: workspace + repo_slug + branch (finds the open PR for that branch)

Example prompts:

“Get full context for PR #123 in myworkspace/myrepo”

“Summarize this PR: https://bitbucket.org/myworkspace/myrepo/pull-requests/123

“What’s the status of the feature/auth branch PR in myworkspace/myrepo?”