Atlassian · Capability

Atlassian Bit Bucket Repositories API — Contain

Atlassian Bit Bucket Repositories API — Contain. 1 operations. Lead operation: Atlassian List Pull Requests That Contain Commit. Self-contained Naftiko capability covering one Atlassian business surface.

Run with Naftiko AtlassianContain

What You Can Do

GET
Listpullrequeststhatcontaincommit — Atlassian List Pull Requests That Contain Commit
/v1/repositories/{workspace}/{repo-slug}/commit/{commit}/pullrequests

MCP Tools

atlassian-list-pull-requests-that

Atlassian List Pull Requests That Contain Commit

read-only idempotent

Capability Spec

bitbucket-repositories-contain.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Atlassian Bit Bucket Repositories API — Contain
  description: 'Atlassian Bit Bucket Repositories API — Contain. 1 operations. Lead operation: Atlassian List Pull Requests
    That Contain Commit. Self-contained Naftiko capability covering one Atlassian business surface.'
  tags:
  - Atlassian
  - Contain
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    ATLASSIAN_API_KEY: ATLASSIAN_API_KEY
capability:
  consumes:
  - type: http
    namespace: bitbucket-repositories-contain
    baseUri: https://api.bitbucket.org/2.0
    description: Atlassian Bit Bucket Repositories API — Contain business capability. Self-contained, no shared references.
    resources:
    - name: repositories-workspace-repo_slug-commit-commit-pullrequests
      path: /repositories/{workspace}/{repo_slug}/commit/{commit}/pullrequests
      operations:
      - name: listpullrequeststhatcontaincommit
        method: GET
        description: Atlassian List Pull Requests That Contain Commit
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: workspace
          in: path
          type: string
          description: This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces
          required: true
        - name: repo_slug
          in: path
          type: string
          description: The repository; either the UUID in curly braces, or the slug
          required: true
        - name: commit
          in: path
          type: string
          description: The SHA1 of the commit
          required: true
        - name: page
          in: query
          type: integer
          description: Which page to retrieve
        - name: pagelen
          in: query
          type: integer
          description: How many pull requests to retrieve per page
    authentication:
      type: bearer
      token: '{{env.ATLASSIAN_API_KEY}}'
  exposes:
  - type: rest
    namespace: bitbucket-repositories-contain-rest
    port: 8080
    description: REST adapter for Atlassian Bit Bucket Repositories API — Contain. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/repositories/{workspace}/{repo-slug}/commit/{commit}/pullrequests
      name: repositories-workspace-repo-slug-commit-commit-pullrequests
      description: REST surface for repositories-workspace-repo_slug-commit-commit-pullrequests.
      operations:
      - method: GET
        name: listpullrequeststhatcontaincommit
        description: Atlassian List Pull Requests That Contain Commit
        call: bitbucket-repositories-contain.listpullrequeststhatcontaincommit
        with:
          workspace: rest.workspace
          repo_slug: rest.repo_slug
          commit: rest.commit
          page: rest.page
          pagelen: rest.pagelen
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: bitbucket-repositories-contain-mcp
    port: 9090
    transport: http
    description: MCP adapter for Atlassian Bit Bucket Repositories API — Contain. One tool per consumed operation, routed
      inline through this capability's consumes block.
    tools:
    - name: atlassian-list-pull-requests-that
      description: Atlassian List Pull Requests That Contain Commit
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: bitbucket-repositories-contain.listpullrequeststhatcontaincommit
      with:
        workspace: tools.workspace
        repo_slug: tools.repo_slug
        commit: tools.commit
        page: tools.page
        pagelen: tools.pagelen
      outputParameters:
      - type: object
        mapping: $.