# Bitbucket (/integrations/bitbucket)





{/* MANUAL-CONTENT-START:intro */}

Use [Bitbucket](https://bitbucket.org/) Cloud to read repositories, branches, commits, files, and diffs; create or delete branches; and manage pull requests and comments. Pipeline actions list runs and steps, start or stop runs, and retrieve step logs.

Connect a Bitbucket account through OAuth. Triggers can start workflows on pushes, repository changes, build status updates, and pull request events; Sim manages their webhooks. For example, a workflow can read a failed pipeline's logs or review a newly opened pull request.

{/* MANUAL-CONTENT-END */}

## OAuth scopes [#oauth-scopes]

Sim requests these scopes when someone connects a Bitbucket account. For a self-hosted deployment, register your own app with the provider using the settings below. See [Integrations and OAuth](/platform/self-hosting/integrations-oauth) for setup.

| Setting | Value |
| - | - |
| Redirect URI | `<NEXT_PUBLIC_APP_URL>/api/auth/oauth2/callback/bitbucket` |
| Environment variables | `BITBUCKET_CLIENT_ID`, `BITBUCKET_CLIENT_SECRET` |

| Scope | Description |
| - | - |
| `account` | View your Bitbucket account and workspace memberships |
| `repository` | View repositories and source code |
| `repository:write` | Push to repositories and create or delete branches |
| `pullrequest` | View and comment on pull requests |
| `pullrequest:write` | Create, update, approve, decline, and merge pull requests |
| `pipeline` | View pipelines, steps, and logs |
| `pipeline:write` | Run and stop pipelines |
| `webhook` | Manage repository webhooks |

## Use the block [#usage-instructions]

Connect Bitbucket Cloud to inspect repositories and source, collaborate on pull requests, diagnose or control pipelines, and start workflows from repository and pull request events. OAuth is used for actions and automatic webhook management.

## Actions [#actions]

### Bitbucket List Workspaces [#bitbucket-list-workspaces]

List Bitbucket Cloud workspaces available to the authenticated account

<ReferenceDetails>
  #### Input [#input]

  | Parameter | Type | Required | Description |
  | - | - | - | - |
  | `sort` | string | No | Workspace sort field; Bitbucket currently supports slug |
  | `administrator` | boolean | No | Filter by whether the caller is a workspace administrator |
  | `nextUrl` | string | No | Opaque next-page URL returned by a previous Bitbucket call |
  | `pageLen` | number | No | Results per page (1-100) |

  #### Output [#output]

  | Parameter | Type | Description |
  | - | - | - |
  | `page` | object | Pagination information |
  | ↳ `size` | number | Total result count reported by Bitbucket |
  | ↳ `page` | number | Current page number |
  | ↳ `pageLen` | number | Number of results requested per page |
  | ↳ `nextUrl` | string | Validated URL for the next page |
  | ↳ `previousUrl` | string | Validated URL for the previous page |
  | `items` | array | Workspace access records |
  | ↳ `type` | string | Bitbucket workspace-access object type |
  | ↳ `slug` | string | Workspace slug |
  | ↳ `uuid` | string | Workspace UUID |
  | ↳ `administrator` | boolean | Whether the caller administers the workspace |
  | ↳ `selfUrl` | string | Workspace API URL |
  | ↳ `avatarUrl` | string | Workspace avatar URL |
</ReferenceDetails>

### Bitbucket List Repositories [#bitbucket-list-repositories]

List repositories in a Bitbucket Cloud workspace

<ReferenceDetails>
  #### Input [#input-1]

  | Parameter | Type | Required | Description |
  | - | - | - | - |
  | `workspaceSlug` | string | Yes | Bitbucket workspace slug or UUID |
  | `role` | string | No | Caller role filter: admin, contributor, member, or owner |
  | `q` | string | No | Bitbucket filtering expression |
  | `sort` | string | No | Bitbucket sort expression |
  | `nextUrl` | string | No | Opaque next-page URL returned by a previous Bitbucket call |
  | `pageLen` | number | No | Results per page (1-100) |

  #### Output [#output-1]

  | Parameter | Type | Description |
  | - | - | - |
  | `page` | object | Pagination information |
  | ↳ `size` | number | Total result count reported by Bitbucket |
  | ↳ `page` | number | Current page number |
  | ↳ `pageLen` | number | Number of results requested per page |
  | ↳ `nextUrl` | string | Validated URL for the next page |
  | ↳ `previousUrl` | string | Validated URL for the previous page |
  | `items` | array | Repositories |
  | ↳ `type` | string | Bitbucket repository object type |
  | ↳ `uuid` | string | Repository UUID |
  | ↳ `slug` | string | Repository slug |
  | ↳ `name` | string | Repository name |
  | ↳ `fullName` | string | Workspace and repository full name |
  | ↳ `description` | string | Repository description |
  | ↳ `isPrivate` | boolean | Whether the repository is private |
  | ↳ `scm` | string | Source control system |
  | ↳ `language` | string | Primary repository language |
  | ↳ `size` | number | Repository size in bytes |
  | ↳ `createdOn` | string | Repository creation timestamp |
  | ↳ `updatedOn` | string | Repository update timestamp |
  | ↳ `mainBranch` | string | Main branch name |
  | ↳ `owner` | object | Repository owner |
  | ↳ `type` | string | Bitbucket account object type |
  | ↳ `uuid` | string | Bitbucket account UUID |
  | ↳ `accountId` | string | Atlassian account ID |
  | ↳ `displayName` | string | Account display name |
  | ↳ `createdOn` | string | Account creation timestamp |
  | ↳ `selfUrl` | string | Account API URL |
  | ↳ `htmlUrl` | string | Account web URL |
  | ↳ `avatarUrl` | string | Account avatar URL |
  | ↳ `project` | object | Containing Bitbucket project |
  | ↳ `uuid` | string | Project UUID |
  | ↳ `key` | string | Project key |
  | ↳ `name` | string | Project name |
  | ↳ `selfUrl` | string | Repository API URL |
  | ↳ `htmlUrl` | string | Repository web URL |
</ReferenceDetails>

### Bitbucket Get Repository [#bitbucket-get-repository]

Get a Bitbucket Cloud repository

<ReferenceDetails>
  #### Input [#input-2]

  | Parameter | Type | Required | Description |
  | - | - | - | - |
  | `workspaceSlug` | string | Yes | Bitbucket workspace slug or UUID |
  | `repoSlug` | string | Yes | Bitbucket repository slug or UUID |

  #### Output [#output-2]

  | Parameter | Type | Description |
  | - | - | - |
  | `repository` | object | Repository details |
  | ↳ `type` | string | Bitbucket repository object type |
  | ↳ `uuid` | string | Repository UUID |
  | ↳ `slug` | string | Repository slug |
  | ↳ `name` | string | Repository name |
  | ↳ `fullName` | string | Workspace and repository full name |
  | ↳ `description` | string | Repository description |
  | ↳ `isPrivate` | boolean | Whether the repository is private |
  | ↳ `scm` | string | Source control system |
  | ↳ `language` | string | Primary repository language |
  | ↳ `size` | number | Repository size in bytes |
  | ↳ `createdOn` | string | Repository creation timestamp |
  | ↳ `updatedOn` | string | Repository update timestamp |
  | ↳ `mainBranch` | string | Main branch name |
  | ↳ `owner` | object | Repository owner |
  | ↳ `type` | string | Bitbucket account object type |
  | ↳ `uuid` | string | Bitbucket account UUID |
  | ↳ `accountId` | string | Atlassian account ID |
  | ↳ `displayName` | string | Account display name |
  | ↳ `createdOn` | string | Account creation timestamp |
  | ↳ `selfUrl` | string | Account API URL |
  | ↳ `htmlUrl` | string | Account web URL |
  | ↳ `avatarUrl` | string | Account avatar URL |
  | ↳ `project` | object | Containing Bitbucket project |
  | ↳ `uuid` | string | Project UUID |
  | ↳ `key` | string | Project key |
  | ↳ `name` | string | Project name |
  | ↳ `selfUrl` | string | Repository API URL |
  | ↳ `htmlUrl` | string | Repository web URL |
</ReferenceDetails>

### Bitbucket List Branches [#bitbucket-list-branches]

List branches in a Bitbucket Cloud repository

<ReferenceDetails>
  #### Input [#input-3]

  | Parameter | Type | Required | Description |
  | - | - | - | - |
  | `workspaceSlug` | string | Yes | Bitbucket workspace slug or UUID |
  | `repoSlug` | string | Yes | Bitbucket repository slug or UUID |
  | `q` | string | No | Bitbucket branch filtering expression |
  | `sort` | string | No | Bitbucket branch sort expression |
  | `nextUrl` | string | No | Opaque next-page URL returned by a previous Bitbucket call |
  | `pageLen` | number | No | Results per page (1-100) |

  #### Output [#output-3]

  | Parameter | Type | Description |
  | - | - | - |
  | `page` | object | Pagination information |
  | ↳ `size` | number | Total result count reported by Bitbucket |
  | ↳ `page` | number | Current page number |
  | ↳ `pageLen` | number | Number of results requested per page |
  | ↳ `nextUrl` | string | Validated URL for the next page |
  | ↳ `previousUrl` | string | Validated URL for the previous page |
  | `items` | array | Branches |
  | ↳ `type` | string | Bitbucket branch object type |
  | ↳ `name` | string | Branch name |
  | ↳ `target` | object | Commit targeted by the branch |
  | ↳ `type` | string | Bitbucket commit object type |
  | ↳ `hash` | string | Commit hash |
  | ↳ `date` | string | Commit timestamp |
  | ↳ `message` | string | Full commit message |
  | ↳ `summary` | string | Raw commit summary |
  | ↳ `authorRaw` | string | Raw author value stored by Git |
  | ↳ `author` | object | Matched Bitbucket account, when available |
  | ↳ `type` | string | Bitbucket account object type |
  | ↳ `uuid` | string | Bitbucket account UUID |
  | ↳ `accountId` | string | Atlassian account ID |
  | ↳ `displayName` | string | Account display name |
  | ↳ `createdOn` | string | Account creation timestamp |
  | ↳ `selfUrl` | string | Account API URL |
  | ↳ `htmlUrl` | string | Account web URL |
  | ↳ `avatarUrl` | string | Account avatar URL |
  | ↳ `committerRaw` | string | Raw committer value stored by Git |
  | ↳ `committer` | object | Matched Bitbucket committer account, when available |
  | ↳ `type` | string | Bitbucket account object type |
  | ↳ `uuid` | string | Bitbucket account UUID |
  | ↳ `accountId` | string | Atlassian account ID |
  | ↳ `displayName` | string | Account display name |
  | ↳ `createdOn` | string | Account creation timestamp |
  | ↳ `selfUrl` | string | Account API URL |
  | ↳ `htmlUrl` | string | Account web URL |
  | ↳ `avatarUrl` | string | Account avatar URL |
  | ↳ `parents` | array | Parent commits |
  | ↳ `hash` | string | Parent commit hash |
  | ↳ `selfUrl` | string | Commit API URL |
  | ↳ `htmlUrl` | string | Commit web URL |
  | ↳ `mergeStrategies` | array | Merge strategies available for the branch |
  | ↳ `defaultMergeStrategy` | string | Default merge strategy |
  | ↳ `selfUrl` | string | Branch API URL |
  | ↳ `htmlUrl` | string | Branch web URL |
</ReferenceDetails>

### Bitbucket Create Branch [#bitbucket-create-branch]

Create a branch at a commit hash or existing ref

<ReferenceDetails>
  #### Input [#input-4]

  | Parameter | Type | Required | Description |
  | - | - | - | - |
  | `workspaceSlug` | string | Yes | Bitbucket workspace slug or UUID |
  | `repoSlug` | string | Yes | Bitbucket repository slug or UUID |
  | `name` | string | Yes | New branch name without refs/heads prefix |
  | `target` | string | Yes | Full commit hash or existing ref to target |

  #### Output [#output-4]

  | Parameter | Type | Description |
  | - | - | - |
  | `branch` | object | Created branch |
  | ↳ `type` | string | Bitbucket branch object type |
  | ↳ `name` | string | Branch name |
  | ↳ `target` | object | Commit targeted by the branch |
  | ↳ `type` | string | Bitbucket commit object type |
  | ↳ `hash` | string | Commit hash |
  | ↳ `date` | string | Commit timestamp |
  | ↳ `message` | string | Full commit message |
  | ↳ `summary` | string | Raw commit summary |
  | ↳ `authorRaw` | string | Raw author value stored by Git |
  | ↳ `author` | object | Matched Bitbucket account, when available |
  | ↳ `type` | string | Bitbucket account object type |
  | ↳ `uuid` | string | Bitbucket account UUID |
  | ↳ `accountId` | string | Atlassian account ID |
  | ↳ `displayName` | string | Account display name |
  | ↳ `createdOn` | string | Account creation timestamp |
  | ↳ `selfUrl` | string | Account API URL |
  | ↳ `htmlUrl` | string | Account web URL |
  | ↳ `avatarUrl` | string | Account avatar URL |
  | ↳ `committerRaw` | string | Raw committer value stored by Git |
  | ↳ `committer` | object | Matched Bitbucket committer account, when available |
  | ↳ `type` | string | Bitbucket account object type |
  | ↳ `uuid` | string | Bitbucket account UUID |
  | ↳ `accountId` | string | Atlassian account ID |
  | ↳ `displayName` | string | Account display name |
  | ↳ `createdOn` | string | Account creation timestamp |
  | ↳ `selfUrl` | string | Account API URL |
  | ↳ `htmlUrl` | string | Account web URL |
  | ↳ `avatarUrl` | string | Account avatar URL |
  | ↳ `parents` | array | Parent commits |
  | ↳ `hash` | string | Parent commit hash |
  | ↳ `selfUrl` | string | Commit API URL |
  | ↳ `htmlUrl` | string | Commit web URL |
  | ↳ `mergeStrategies` | array | Merge strategies available for the branch |
  | ↳ `defaultMergeStrategy` | string | Default merge strategy |
  | ↳ `selfUrl` | string | Branch API URL |
  | ↳ `htmlUrl` | string | Branch web URL |
</ReferenceDetails>

### Bitbucket Delete Branch [#bitbucket-delete-branch]

Delete a branch from a Bitbucket Cloud repository

<ReferenceDetails>
  #### Input [#input-5]

  | Parameter | Type | Required | Description |
  | - | - | - | - |
  | `workspaceSlug` | string | Yes | Bitbucket workspace slug or UUID |
  | `repoSlug` | string | Yes | Bitbucket repository slug or UUID |
  | `name` | string | Yes | Branch name to delete |

  #### Output [#output-5]

  | Parameter | Type | Description |
  | - | - | - |
  | `deleted` | boolean | Whether the branch was deleted |
</ReferenceDetails>

### Bitbucket List Commits [#bitbucket-list-commits]

List repository commits in reverse chronological order

<ReferenceDetails>
  #### Input [#input-6]

  | Parameter | Type | Required | Description |
  | - | - | - | - |
  | `workspaceSlug` | string | Yes | Bitbucket workspace slug or UUID |
  | `repoSlug` | string | Yes | Bitbucket repository slug or UUID |
  | `nextUrl` | string | No | Opaque next-page URL returned by a previous Bitbucket call |
  | `pageLen` | number | No | Results per page (1-100) |

  #### Output [#output-6]

  | Parameter | Type | Description |
  | - | - | - |
  | `page` | object | Pagination information |
  | ↳ `size` | number | Total result count reported by Bitbucket |
  | ↳ `page` | number | Current page number |
  | ↳ `pageLen` | number | Number of results requested per page |
  | ↳ `nextUrl` | string | Validated URL for the next page |
  | ↳ `previousUrl` | string | Validated URL for the previous page |
  | `items` | array | Commits |
  | ↳ `type` | string | Bitbucket commit object type |
  | ↳ `hash` | string | Commit hash |
  | ↳ `date` | string | Commit timestamp |
  | ↳ `message` | string | Full commit message |
  | ↳ `summary` | string | Raw commit summary |
  | ↳ `authorRaw` | string | Raw author value stored by Git |
  | ↳ `author` | object | Matched Bitbucket account, when available |
  | ↳ `type` | string | Bitbucket account object type |
  | ↳ `uuid` | string | Bitbucket account UUID |
  | ↳ `accountId` | string | Atlassian account ID |
  | ↳ `displayName` | string | Account display name |
  | ↳ `createdOn` | string | Account creation timestamp |
  | ↳ `selfUrl` | string | Account API URL |
  | ↳ `htmlUrl` | string | Account web URL |
  | ↳ `avatarUrl` | string | Account avatar URL |
  | ↳ `committerRaw` | string | Raw committer value stored by Git |
  | ↳ `committer` | object | Matched Bitbucket committer account, when available |
  | ↳ `type` | string | Bitbucket account object type |
  | ↳ `uuid` | string | Bitbucket account UUID |
  | ↳ `accountId` | string | Atlassian account ID |
  | ↳ `displayName` | string | Account display name |
  | ↳ `createdOn` | string | Account creation timestamp |
  | ↳ `selfUrl` | string | Account API URL |
  | ↳ `htmlUrl` | string | Account web URL |
  | ↳ `avatarUrl` | string | Account avatar URL |
  | ↳ `parents` | array | Parent commits |
  | ↳ `hash` | string | Parent commit hash |
  | ↳ `selfUrl` | string | Commit API URL |
  | ↳ `htmlUrl` | string | Commit web URL |
</ReferenceDetails>

### Bitbucket Get Commit [#bitbucket-get-commit]

Get a repository commit by its full SHA-1

<ReferenceDetails>
  #### Input [#input-7]

  | Parameter | Type | Required | Description |
  | - | - | - | - |
  | `workspaceSlug` | string | Yes | Bitbucket workspace slug or UUID |
  | `repoSlug` | string | Yes | Bitbucket repository slug or UUID |
  | `commit` | string | Yes | Full 40-character commit SHA-1 |

  #### Output [#output-7]

  | Parameter | Type | Description |
  | - | - | - |
  | `commit` | object | Commit details |
  | ↳ `type` | string | Bitbucket commit object type |
  | ↳ `hash` | string | Commit hash |
  | ↳ `date` | string | Commit timestamp |
  | ↳ `message` | string | Full commit message |
  | ↳ `summary` | string | Raw commit summary |
  | ↳ `authorRaw` | string | Raw author value stored by Git |
  | ↳ `author` | object | Matched Bitbucket account, when available |
  | ↳ `type` | string | Bitbucket account object type |
  | ↳ `uuid` | string | Bitbucket account UUID |
  | ↳ `accountId` | string | Atlassian account ID |
  | ↳ `displayName` | string | Account display name |
  | ↳ `createdOn` | string | Account creation timestamp |
  | ↳ `selfUrl` | string | Account API URL |
  | ↳ `htmlUrl` | string | Account web URL |
  | ↳ `avatarUrl` | string | Account avatar URL |
  | ↳ `committerRaw` | string | Raw committer value stored by Git |
  | ↳ `committer` | object | Matched Bitbucket committer account, when available |
  | ↳ `type` | string | Bitbucket account object type |
  | ↳ `uuid` | string | Bitbucket account UUID |
  | ↳ `accountId` | string | Atlassian account ID |
  | ↳ `displayName` | string | Account display name |
  | ↳ `createdOn` | string | Account creation timestamp |
  | ↳ `selfUrl` | string | Account API URL |
  | ↳ `htmlUrl` | string | Account web URL |
  | ↳ `avatarUrl` | string | Account avatar URL |
  | ↳ `parents` | array | Parent commits |
  | ↳ `hash` | string | Parent commit hash |
  | ↳ `selfUrl` | string | Commit API URL |
  | ↳ `htmlUrl` | string | Commit web URL |
</ReferenceDetails>

### Bitbucket List Directory [#bitbucket-list-directory]

List one shallow repository directory at a full commit SHA-1

<ReferenceDetails>
  #### Input [#input-8]

  | Parameter | Type | Required | Description |
  | - | - | - | - |
  | `workspaceSlug` | string | Yes | Bitbucket workspace slug or UUID |
  | `repoSlug` | string | Yes | Bitbucket repository slug or UUID |
  | `commit` | string | Yes | Full 40-character commit SHA-1 |
  | `path` | string | No | Repository-relative directory path; omit for the root |
  | `q` | string | No | Bitbucket tree-entry filtering expression |
  | `sort` | string | No | Bitbucket tree-entry sort expression |
  | `nextUrl` | string | No | Opaque next-page URL returned by a previous Bitbucket call |
  | `pageLen` | number | No | Results per page (1-100) |

  #### Output [#output-8]

  | Parameter | Type | Description |
  | - | - | - |
  | `page` | object | Pagination information |
  | ↳ `size` | number | Total result count reported by Bitbucket |
  | ↳ `page` | number | Current page number |
  | ↳ `pageLen` | number | Number of results requested per page |
  | ↳ `nextUrl` | string | Validated URL for the next page |
  | ↳ `previousUrl` | string | Validated URL for the previous page |
  | `items` | array | Directory entries |
  | ↳ `type` | string | Entry type, such as commit\_file or commit\_directory |
  | ↳ `path` | string | Repository-relative path |
  | ↳ `commitHash` | string | Resolved commit hash |
  | ↳ `size` | number | File size in bytes when the entry is a file |
  | ↳ `attributes` | array | File attributes when the entry is a file |
  | ↳ `isBinary` | boolean | Whether file attributes include the binary marker |
  | ↳ `selfUrl` | string | Source API URL |
  | ↳ `metadataUrl` | string | Source metadata API URL |
</ReferenceDetails>

### Bitbucket Get File Metadata [#bitbucket-get-file-metadata]

Inspect file size and attributes at a full repository commit SHA-1

<ReferenceDetails>
  #### Input [#input-9]

  | Parameter | Type | Required | Description |
  | - | - | - | - |
  | `workspaceSlug` | string | Yes | Bitbucket workspace slug or UUID |
  | `repoSlug` | string | Yes | Bitbucket repository slug or UUID |
  | `commit` | string | Yes | Full 40-character commit SHA-1 |
  | `path` | string | Yes | Repository-relative file path |

  #### Output [#output-9]

  | Parameter | Type | Description |
  | - | - | - |
  | `file` | object | File metadata |
  | ↳ `type` | string | Entry type (commit\_file) |
  | ↳ `path` | string | Repository-relative path |
  | ↳ `commitHash` | string | Resolved commit hash |
  | ↳ `escapedPath` | string | Escaped display path |
  | ↳ `size` | number | File size in bytes |
  | ↳ `attributes` | array | File attributes reported by Bitbucket |
  | ↳ `isBinary` | boolean | Whether the documented attributes include the binary marker |
</ReferenceDetails>

### Bitbucket Get File [#bitbucket-get-file]

Read bounded UTF-8 text from a file at a full repository commit SHA-1

<ReferenceDetails>
  #### Input [#input-10]

  | Parameter | Type | Required | Description |
  | - | - | - | - |
  | `workspaceSlug` | string | Yes | Bitbucket workspace slug or UUID |
  | `repoSlug` | string | Yes | Bitbucket repository slug or UUID |
  | `commit` | string | Yes | Full 40-character commit SHA-1 |
  | `path` | string | Yes | Repository-relative file path |
  | `maxCharacters` | number | No | Maximum text characters to return (1-500000) |

  #### Output [#output-10]

  | Parameter | Type | Description |
  | - | - | - |
  | `content` | string | Bounded UTF-8 file text; null for binary content |
  | `binary` | boolean | Whether documented metadata identifies binary content; null when unknown |
  | `truncated` | boolean | Whether later content was omitted; null when binary size is unknown |
  | `returnedBytes` | number | Provider bytes read for the returned file |
  | `fullBytes` | number | Full file byte size when reported |
  | `contentType` | string | Response MIME type |
</ReferenceDetails>

### Bitbucket List Pull Requests [#bitbucket-list-pull-requests]

List pull requests in a Bitbucket Cloud repository

<ReferenceDetails>
  #### Input [#input-11]

  | Parameter | Type | Required | Description |
  | - | - | - | - |
  | `workspaceSlug` | string | Yes | Bitbucket workspace slug or UUID |
  | `repoSlug` | string | Yes | Bitbucket repository slug or UUID |
  | `state` | string | No | State filter: OPEN, MERGED, DECLINED, or SUPERSEDED |
  | `q` | string | No | Bitbucket pull request filtering expression |
  | `sort` | string | No | Bitbucket pull request sort expression |
  | `nextUrl` | string | No | Opaque next-page URL returned by a previous Bitbucket call |
  | `pageLen` | number | No | Results per page (1-100) |

  #### Output [#output-11]

  | Parameter | Type | Description |
  | - | - | - |
  | `page` | object | Pagination information |
  | ↳ `size` | number | Total result count reported by Bitbucket |
  | ↳ `page` | number | Current page number |
  | ↳ `pageLen` | number | Number of results requested per page |
  | ↳ `nextUrl` | string | Validated URL for the next page |
  | ↳ `previousUrl` | string | Validated URL for the previous page |
  | `items` | array | Pull requests |
  | ↳ `type` | string | Bitbucket pull request object type |
  | ↳ `id` | number | Repository-scoped pull request ID |
  | ↳ `title` | string | Pull request title |
  | ↳ `description` | string | Pull request description |
  | ↳ `state` | string | Pull request state |
  | ↳ `draft` | boolean | Whether the pull request is a draft |
  | ↳ `queued` | boolean | Whether the pull request is queued |
  | ↳ `author` | object | Pull request author |
  | ↳ `type` | string | Bitbucket account object type |
  | ↳ `uuid` | string | Bitbucket account UUID |
  | ↳ `accountId` | string | Atlassian account ID |
  | ↳ `displayName` | string | Account display name |
  | ↳ `createdOn` | string | Account creation timestamp |
  | ↳ `selfUrl` | string | Account API URL |
  | ↳ `htmlUrl` | string | Account web URL |
  | ↳ `avatarUrl` | string | Account avatar URL |
  | ↳ `closedBy` | object | Account that closed the pull request |
  | ↳ `type` | string | Bitbucket account object type |
  | ↳ `uuid` | string | Bitbucket account UUID |
  | ↳ `accountId` | string | Atlassian account ID |
  | ↳ `displayName` | string | Account display name |
  | ↳ `createdOn` | string | Account creation timestamp |
  | ↳ `selfUrl` | string | Account API URL |
  | ↳ `htmlUrl` | string | Account web URL |
  | ↳ `avatarUrl` | string | Account avatar URL |
  | ↳ `source` | object | Source endpoint |
  | ↳ `branchName` | string | Branch name |
  | ↳ `commitHash` | string | Commit hash |
  | ↳ `repositoryUuid` | string | Repository UUID |
  | ↳ `repositoryFullName` | string | Repository full name |
  | ↳ `destination` | object | Destination endpoint |
  | ↳ `branchName` | string | Branch name |
  | ↳ `commitHash` | string | Commit hash |
  | ↳ `repositoryUuid` | string | Repository UUID |
  | ↳ `repositoryFullName` | string | Repository full name |
  | ↳ `mergeCommitHash` | string | Merge commit hash |
  | ↳ `commentCount` | number | Comment count |
  | ↳ `taskCount` | number | Open task count |
  | ↳ `closeSourceBranch` | boolean | Whether merging closes the source branch |
  | ↳ `reason` | string | Reason the pull request was declined |
  | ↳ `createdOn` | string | Creation timestamp |
  | ↳ `updatedOn` | string | Update timestamp |
  | ↳ `reviewers` | array | Explicit reviewers |
  | ↳ `type` | string | Bitbucket account object type |
  | ↳ `uuid` | string | Bitbucket account UUID |
  | ↳ `accountId` | string | Atlassian account ID |
  | ↳ `displayName` | string | Account display name |
  | ↳ `createdOn` | string | Account creation timestamp |
  | ↳ `selfUrl` | string | Account API URL |
  | ↳ `htmlUrl` | string | Account web URL |
  | ↳ `avatarUrl` | string | Account avatar URL |
  | ↳ `participants` | array | Pull request participants |
  | ↳ `type` | string | Bitbucket participant object type |
  | ↳ `user` | object | Participating account |
  | ↳ `type` | string | Bitbucket account object type |
  | ↳ `uuid` | string | Bitbucket account UUID |
  | ↳ `accountId` | string | Atlassian account ID |
  | ↳ `displayName` | string | Account display name |
  | ↳ `createdOn` | string | Account creation timestamp |
  | ↳ `selfUrl` | string | Account API URL |
  | ↳ `htmlUrl` | string | Account web URL |
  | ↳ `avatarUrl` | string | Account avatar URL |
  | ↳ `role` | string | Participant role |
  | ↳ `approved` | boolean | Whether the participant approved |
  | ↳ `state` | string | Review state |
  | ↳ `participatedOn` | string | Timestamp of the participant action |
  | ↳ `selfUrl` | string | Pull request API URL |
  | ↳ `htmlUrl` | string | Pull request web URL |
</ReferenceDetails>

### Bitbucket Get Pull Request [#bitbucket-get-pull-request]

Get a pull request by repository-scoped ID

<ReferenceDetails>
  #### Input [#input-12]

  | Parameter | Type | Required | Description |
  | - | - | - | - |
  | `workspaceSlug` | string | Yes | Bitbucket workspace slug or UUID |
  | `repoSlug` | string | Yes | Bitbucket repository slug or UUID |
  | `prId` | number | Yes | Repository-scoped pull request ID |

  #### Output [#output-12]

  | Parameter | Type | Description |
  | - | - | - |
  | `pullRequest` | object | Pull request details |
  | ↳ `type` | string | Bitbucket pull request object type |
  | ↳ `id` | number | Repository-scoped pull request ID |
  | ↳ `title` | string | Pull request title |
  | ↳ `description` | string | Pull request description |
  | ↳ `state` | string | Pull request state |
  | ↳ `draft` | boolean | Whether the pull request is a draft |
  | ↳ `queued` | boolean | Whether the pull request is queued |
  | ↳ `author` | object | Pull request author |
  | ↳ `type` | string | Bitbucket account object type |
  | ↳ `uuid` | string | Bitbucket account UUID |
  | ↳ `accountId` | string | Atlassian account ID |
  | ↳ `displayName` | string | Account display name |
  | ↳ `createdOn` | string | Account creation timestamp |
  | ↳ `selfUrl` | string | Account API URL |
  | ↳ `htmlUrl` | string | Account web URL |
  | ↳ `avatarUrl` | string | Account avatar URL |
  | ↳ `closedBy` | object | Account that closed the pull request |
  | ↳ `type` | string | Bitbucket account object type |
  | ↳ `uuid` | string | Bitbucket account UUID |
  | ↳ `accountId` | string | Atlassian account ID |
  | ↳ `displayName` | string | Account display name |
  | ↳ `createdOn` | string | Account creation timestamp |
  | ↳ `selfUrl` | string | Account API URL |
  | ↳ `htmlUrl` | string | Account web URL |
  | ↳ `avatarUrl` | string | Account avatar URL |
  | ↳ `source` | object | Source endpoint |
  | ↳ `branchName` | string | Branch name |
  | ↳ `commitHash` | string | Commit hash |
  | ↳ `repositoryUuid` | string | Repository UUID |
  | ↳ `repositoryFullName` | string | Repository full name |
  | ↳ `destination` | object | Destination endpoint |
  | ↳ `branchName` | string | Branch name |
  | ↳ `commitHash` | string | Commit hash |
  | ↳ `repositoryUuid` | string | Repository UUID |
  | ↳ `repositoryFullName` | string | Repository full name |
  | ↳ `mergeCommitHash` | string | Merge commit hash |
  | ↳ `commentCount` | number | Comment count |
  | ↳ `taskCount` | number | Open task count |
  | ↳ `closeSourceBranch` | boolean | Whether merging closes the source branch |
  | ↳ `reason` | string | Reason the pull request was declined |
  | ↳ `createdOn` | string | Creation timestamp |
  | ↳ `updatedOn` | string | Update timestamp |
  | ↳ `reviewers` | array | Explicit reviewers |
  | ↳ `type` | string | Bitbucket account object type |
  | ↳ `uuid` | string | Bitbucket account UUID |
  | ↳ `accountId` | string | Atlassian account ID |
  | ↳ `displayName` | string | Account display name |
  | ↳ `createdOn` | string | Account creation timestamp |
  | ↳ `selfUrl` | string | Account API URL |
  | ↳ `htmlUrl` | string | Account web URL |
  | ↳ `avatarUrl` | string | Account avatar URL |
  | ↳ `participants` | array | Pull request participants |
  | ↳ `type` | string | Bitbucket participant object type |
  | ↳ `user` | object | Participating account |
  | ↳ `type` | string | Bitbucket account object type |
  | ↳ `uuid` | string | Bitbucket account UUID |
  | ↳ `accountId` | string | Atlassian account ID |
  | ↳ `displayName` | string | Account display name |
  | ↳ `createdOn` | string | Account creation timestamp |
  | ↳ `selfUrl` | string | Account API URL |
  | ↳ `htmlUrl` | string | Account web URL |
  | ↳ `avatarUrl` | string | Account avatar URL |
  | ↳ `role` | string | Participant role |
  | ↳ `approved` | boolean | Whether the participant approved |
  | ↳ `state` | string | Review state |
  | ↳ `participatedOn` | string | Timestamp of the participant action |
  | ↳ `selfUrl` | string | Pull request API URL |
  | ↳ `htmlUrl` | string | Pull request web URL |
</ReferenceDetails>

### Bitbucket Create Pull Request [#bitbucket-create-pull-request]

Create a pull request between repository branches

<ReferenceDetails>
  #### Input [#input-13]

  | Parameter | Type | Required | Description |
  | - | - | - | - |
  | `workspaceSlug` | string | Yes | Bitbucket workspace slug or UUID |
  | `repoSlug` | string | Yes | Bitbucket repository slug or UUID |
  | `title` | string | Yes | Pull request title |
  | `sourceBranch` | string | Yes | Source branch name |
  | `destinationBranch` | string | Yes | Destination branch name |
  | `description` | string | No | Pull request description |
  | `closeSourceBranch` | boolean | No | Close the source branch after merge |
  | `draft` | boolean | No | Create the pull request as a draft |
  | `reviewerUuids` | array | No | Bitbucket account UUIDs to add as reviewers |

  #### Output [#output-13]

  | Parameter | Type | Description |
  | - | - | - |
  | `pullRequest` | object | Created pull request |
  | ↳ `type` | string | Bitbucket pull request object type |
  | ↳ `id` | number | Repository-scoped pull request ID |
  | ↳ `title` | string | Pull request title |
  | ↳ `description` | string | Pull request description |
  | ↳ `state` | string | Pull request state |
  | ↳ `draft` | boolean | Whether the pull request is a draft |
  | ↳ `queued` | boolean | Whether the pull request is queued |
  | ↳ `author` | object | Pull request author |
  | ↳ `type` | string | Bitbucket account object type |
  | ↳ `uuid` | string | Bitbucket account UUID |
  | ↳ `accountId` | string | Atlassian account ID |
  | ↳ `displayName` | string | Account display name |
  | ↳ `createdOn` | string | Account creation timestamp |
  | ↳ `selfUrl` | string | Account API URL |
  | ↳ `htmlUrl` | string | Account web URL |
  | ↳ `avatarUrl` | string | Account avatar URL |
  | ↳ `closedBy` | object | Account that closed the pull request |
  | ↳ `type` | string | Bitbucket account object type |
  | ↳ `uuid` | string | Bitbucket account UUID |
  | ↳ `accountId` | string | Atlassian account ID |
  | ↳ `displayName` | string | Account display name |
  | ↳ `createdOn` | string | Account creation timestamp |
  | ↳ `selfUrl` | string | Account API URL |
  | ↳ `htmlUrl` | string | Account web URL |
  | ↳ `avatarUrl` | string | Account avatar URL |
  | ↳ `source` | object | Source endpoint |
  | ↳ `branchName` | string | Branch name |
  | ↳ `commitHash` | string | Commit hash |
  | ↳ `repositoryUuid` | string | Repository UUID |
  | ↳ `repositoryFullName` | string | Repository full name |
  | ↳ `destination` | object | Destination endpoint |
  | ↳ `branchName` | string | Branch name |
  | ↳ `commitHash` | string | Commit hash |
  | ↳ `repositoryUuid` | string | Repository UUID |
  | ↳ `repositoryFullName` | string | Repository full name |
  | ↳ `mergeCommitHash` | string | Merge commit hash |
  | ↳ `commentCount` | number | Comment count |
  | ↳ `taskCount` | number | Open task count |
  | ↳ `closeSourceBranch` | boolean | Whether merging closes the source branch |
  | ↳ `reason` | string | Reason the pull request was declined |
  | ↳ `createdOn` | string | Creation timestamp |
  | ↳ `updatedOn` | string | Update timestamp |
  | ↳ `reviewers` | array | Explicit reviewers |
  | ↳ `type` | string | Bitbucket account object type |
  | ↳ `uuid` | string | Bitbucket account UUID |
  | ↳ `accountId` | string | Atlassian account ID |
  | ↳ `displayName` | string | Account display name |
  | ↳ `createdOn` | string | Account creation timestamp |
  | ↳ `selfUrl` | string | Account API URL |
  | ↳ `htmlUrl` | string | Account web URL |
  | ↳ `avatarUrl` | string | Account avatar URL |
  | ↳ `participants` | array | Pull request participants |
  | ↳ `type` | string | Bitbucket participant object type |
  | ↳ `user` | object | Participating account |
  | ↳ `type` | string | Bitbucket account object type |
  | ↳ `uuid` | string | Bitbucket account UUID |
  | ↳ `accountId` | string | Atlassian account ID |
  | ↳ `displayName` | string | Account display name |
  | ↳ `createdOn` | string | Account creation timestamp |
  | ↳ `selfUrl` | string | Account API URL |
  | ↳ `htmlUrl` | string | Account web URL |
  | ↳ `avatarUrl` | string | Account avatar URL |
  | ↳ `role` | string | Participant role |
  | ↳ `approved` | boolean | Whether the participant approved |
  | ↳ `state` | string | Review state |
  | ↳ `participatedOn` | string | Timestamp of the participant action |
  | ↳ `selfUrl` | string | Pull request API URL |
  | ↳ `htmlUrl` | string | Pull request web URL |
</ReferenceDetails>

### Bitbucket Merge Pull Request [#bitbucket-merge-pull-request]

Start an asynchronous pull request merge and return a task to poll when needed

<ReferenceDetails>
  #### Input [#input-14]

  | Parameter | Type | Required | Description |
  | - | - | - | - |
  | `workspaceSlug` | string | Yes | Bitbucket workspace slug or UUID |
  | `repoSlug` | string | Yes | Bitbucket repository slug or UUID |
  | `prId` | number | Yes | Repository-scoped pull request ID |
  | `mergeStrategy` | string | No | Merge strategy: merge\_commit, squash, fast\_forward, squash\_fast\_forward, rebase\_fast\_forward, or rebase\_merge |
  | `message` | string | No | Merge commit message (maximum 128 KiB encoded as UTF-8) |
  | `closeSourceBranch` | boolean | No | Delete the source branch after merging |

  #### Output [#output-14]

  | Parameter | Type | Description |
  | - | - | - |
  | `status` | string | Whether the merge completed or remains pending |
  | `taskId` | string | Async merge task ID |
  | `taskUrl` | string | Validated task polling URL |
  | `pullRequest` | object | Merged pull request when completed synchronously |
  | ↳ `type` | string | Bitbucket pull request object type |
  | ↳ `id` | number | Repository-scoped pull request ID |
  | ↳ `title` | string | Pull request title |
  | ↳ `description` | string | Pull request description |
  | ↳ `state` | string | Pull request state |
  | ↳ `draft` | boolean | Whether the pull request is a draft |
  | ↳ `queued` | boolean | Whether the pull request is queued |
  | ↳ `author` | object | Pull request author |
  | ↳ `type` | string | Bitbucket account object type |
  | ↳ `uuid` | string | Bitbucket account UUID |
  | ↳ `accountId` | string | Atlassian account ID |
  | ↳ `displayName` | string | Account display name |
  | ↳ `createdOn` | string | Account creation timestamp |
  | ↳ `selfUrl` | string | Account API URL |
  | ↳ `htmlUrl` | string | Account web URL |
  | ↳ `avatarUrl` | string | Account avatar URL |
  | ↳ `closedBy` | object | Account that closed the pull request |
  | ↳ `type` | string | Bitbucket account object type |
  | ↳ `uuid` | string | Bitbucket account UUID |
  | ↳ `accountId` | string | Atlassian account ID |
  | ↳ `displayName` | string | Account display name |
  | ↳ `createdOn` | string | Account creation timestamp |
  | ↳ `selfUrl` | string | Account API URL |
  | ↳ `htmlUrl` | string | Account web URL |
  | ↳ `avatarUrl` | string | Account avatar URL |
  | ↳ `source` | object | Source endpoint |
  | ↳ `branchName` | string | Branch name |
  | ↳ `commitHash` | string | Commit hash |
  | ↳ `repositoryUuid` | string | Repository UUID |
  | ↳ `repositoryFullName` | string | Repository full name |
  | ↳ `destination` | object | Destination endpoint |
  | ↳ `branchName` | string | Branch name |
  | ↳ `commitHash` | string | Commit hash |
  | ↳ `repositoryUuid` | string | Repository UUID |
  | ↳ `repositoryFullName` | string | Repository full name |
  | ↳ `mergeCommitHash` | string | Merge commit hash |
  | ↳ `commentCount` | number | Comment count |
  | ↳ `taskCount` | number | Open task count |
  | ↳ `closeSourceBranch` | boolean | Whether merging closes the source branch |
  | ↳ `reason` | string | Reason the pull request was declined |
  | ↳ `createdOn` | string | Creation timestamp |
  | ↳ `updatedOn` | string | Update timestamp |
  | ↳ `reviewers` | array | Explicit reviewers |
  | ↳ `type` | string | Bitbucket account object type |
  | ↳ `uuid` | string | Bitbucket account UUID |
  | ↳ `accountId` | string | Atlassian account ID |
  | ↳ `displayName` | string | Account display name |
  | ↳ `createdOn` | string | Account creation timestamp |
  | ↳ `selfUrl` | string | Account API URL |
  | ↳ `htmlUrl` | string | Account web URL |
  | ↳ `avatarUrl` | string | Account avatar URL |
  | ↳ `participants` | array | Pull request participants |
  | ↳ `type` | string | Bitbucket participant object type |
  | ↳ `user` | object | Participating account |
  | ↳ `type` | string | Bitbucket account object type |
  | ↳ `uuid` | string | Bitbucket account UUID |
  | ↳ `accountId` | string | Atlassian account ID |
  | ↳ `displayName` | string | Account display name |
  | ↳ `createdOn` | string | Account creation timestamp |
  | ↳ `selfUrl` | string | Account API URL |
  | ↳ `htmlUrl` | string | Account web URL |
  | ↳ `avatarUrl` | string | Account avatar URL |
  | ↳ `role` | string | Participant role |
  | ↳ `approved` | boolean | Whether the participant approved |
  | ↳ `state` | string | Review state |
  | ↳ `participatedOn` | string | Timestamp of the participant action |
  | ↳ `selfUrl` | string | Pull request API URL |
  | ↳ `htmlUrl` | string | Pull request web URL |
</ReferenceDetails>

### Bitbucket Get Merge Task Status [#bitbucket-get-merge-task-status]

Poll the status of an asynchronous pull request merge task

<ReferenceDetails>
  #### Input [#input-15]

  | Parameter | Type | Required | Description |
  | - | - | - | - |
  | `workspaceSlug` | string | Yes | Bitbucket workspace slug or UUID |
  | `repoSlug` | string | Yes | Bitbucket repository slug or UUID |
  | `prId` | number | Yes | Repository-scoped pull request ID |
  | `taskId` | string | Yes | Merge task ID returned by Bitbucket Merge Pull Request |

  #### Output [#output-15]

  | Parameter | Type | Description |
  | - | - | - |
  | `taskStatus` | string | PENDING or SUCCESS |
  | `selfUrl` | string | Merge task API URL |
  | `mergeResult` | object | Merged pull request when the task succeeds |
  | ↳ `type` | string | Bitbucket pull request object type |
  | ↳ `id` | number | Repository-scoped pull request ID |
  | ↳ `title` | string | Pull request title |
  | ↳ `description` | string | Pull request description |
  | ↳ `state` | string | Pull request state |
  | ↳ `draft` | boolean | Whether the pull request is a draft |
  | ↳ `queued` | boolean | Whether the pull request is queued |
  | ↳ `author` | object | Pull request author |
  | ↳ `type` | string | Bitbucket account object type |
  | ↳ `uuid` | string | Bitbucket account UUID |
  | ↳ `accountId` | string | Atlassian account ID |
  | ↳ `displayName` | string | Account display name |
  | ↳ `createdOn` | string | Account creation timestamp |
  | ↳ `selfUrl` | string | Account API URL |
  | ↳ `htmlUrl` | string | Account web URL |
  | ↳ `avatarUrl` | string | Account avatar URL |
  | ↳ `closedBy` | object | Account that closed the pull request |
  | ↳ `type` | string | Bitbucket account object type |
  | ↳ `uuid` | string | Bitbucket account UUID |
  | ↳ `accountId` | string | Atlassian account ID |
  | ↳ `displayName` | string | Account display name |
  | ↳ `createdOn` | string | Account creation timestamp |
  | ↳ `selfUrl` | string | Account API URL |
  | ↳ `htmlUrl` | string | Account web URL |
  | ↳ `avatarUrl` | string | Account avatar URL |
  | ↳ `source` | object | Source endpoint |
  | ↳ `branchName` | string | Branch name |
  | ↳ `commitHash` | string | Commit hash |
  | ↳ `repositoryUuid` | string | Repository UUID |
  | ↳ `repositoryFullName` | string | Repository full name |
  | ↳ `destination` | object | Destination endpoint |
  | ↳ `branchName` | string | Branch name |
  | ↳ `commitHash` | string | Commit hash |
  | ↳ `repositoryUuid` | string | Repository UUID |
  | ↳ `repositoryFullName` | string | Repository full name |
  | ↳ `mergeCommitHash` | string | Merge commit hash |
  | ↳ `commentCount` | number | Comment count |
  | ↳ `taskCount` | number | Open task count |
  | ↳ `closeSourceBranch` | boolean | Whether merging closes the source branch |
  | ↳ `reason` | string | Reason the pull request was declined |
  | ↳ `createdOn` | string | Creation timestamp |
  | ↳ `updatedOn` | string | Update timestamp |
  | ↳ `reviewers` | array | Explicit reviewers |
  | ↳ `type` | string | Bitbucket account object type |
  | ↳ `uuid` | string | Bitbucket account UUID |
  | ↳ `accountId` | string | Atlassian account ID |
  | ↳ `displayName` | string | Account display name |
  | ↳ `createdOn` | string | Account creation timestamp |
  | ↳ `selfUrl` | string | Account API URL |
  | ↳ `htmlUrl` | string | Account web URL |
  | ↳ `avatarUrl` | string | Account avatar URL |
  | ↳ `participants` | array | Pull request participants |
  | ↳ `type` | string | Bitbucket participant object type |
  | ↳ `user` | object | Participating account |
  | ↳ `type` | string | Bitbucket account object type |
  | ↳ `uuid` | string | Bitbucket account UUID |
  | ↳ `accountId` | string | Atlassian account ID |
  | ↳ `displayName` | string | Account display name |
  | ↳ `createdOn` | string | Account creation timestamp |
  | ↳ `selfUrl` | string | Account API URL |
  | ↳ `htmlUrl` | string | Account web URL |
  | ↳ `avatarUrl` | string | Account avatar URL |
  | ↳ `role` | string | Participant role |
  | ↳ `approved` | boolean | Whether the participant approved |
  | ↳ `state` | string | Review state |
  | ↳ `participatedOn` | string | Timestamp of the participant action |
  | ↳ `selfUrl` | string | Pull request API URL |
  | ↳ `htmlUrl` | string | Pull request web URL |
</ReferenceDetails>

### Bitbucket Decline Pull Request [#bitbucket-decline-pull-request]

Decline an open pull request

<ReferenceDetails>
  #### Input [#input-16]

  | Parameter | Type | Required | Description |
  | - | - | - | - |
  | `workspaceSlug` | string | Yes | Bitbucket workspace slug or UUID |
  | `repoSlug` | string | Yes | Bitbucket repository slug or UUID |
  | `prId` | number | Yes | Repository-scoped pull request ID |

  #### Output [#output-16]

  | Parameter | Type | Description |
  | - | - | - |
  | `pullRequest` | object | Declined pull request |
  | ↳ `type` | string | Bitbucket pull request object type |
  | ↳ `id` | number | Repository-scoped pull request ID |
  | ↳ `title` | string | Pull request title |
  | ↳ `description` | string | Pull request description |
  | ↳ `state` | string | Pull request state |
  | ↳ `draft` | boolean | Whether the pull request is a draft |
  | ↳ `queued` | boolean | Whether the pull request is queued |
  | ↳ `author` | object | Pull request author |
  | ↳ `type` | string | Bitbucket account object type |
  | ↳ `uuid` | string | Bitbucket account UUID |
  | ↳ `accountId` | string | Atlassian account ID |
  | ↳ `displayName` | string | Account display name |
  | ↳ `createdOn` | string | Account creation timestamp |
  | ↳ `selfUrl` | string | Account API URL |
  | ↳ `htmlUrl` | string | Account web URL |
  | ↳ `avatarUrl` | string | Account avatar URL |
  | ↳ `closedBy` | object | Account that closed the pull request |
  | ↳ `type` | string | Bitbucket account object type |
  | ↳ `uuid` | string | Bitbucket account UUID |
  | ↳ `accountId` | string | Atlassian account ID |
  | ↳ `displayName` | string | Account display name |
  | ↳ `createdOn` | string | Account creation timestamp |
  | ↳ `selfUrl` | string | Account API URL |
  | ↳ `htmlUrl` | string | Account web URL |
  | ↳ `avatarUrl` | string | Account avatar URL |
  | ↳ `source` | object | Source endpoint |
  | ↳ `branchName` | string | Branch name |
  | ↳ `commitHash` | string | Commit hash |
  | ↳ `repositoryUuid` | string | Repository UUID |
  | ↳ `repositoryFullName` | string | Repository full name |
  | ↳ `destination` | object | Destination endpoint |
  | ↳ `branchName` | string | Branch name |
  | ↳ `commitHash` | string | Commit hash |
  | ↳ `repositoryUuid` | string | Repository UUID |
  | ↳ `repositoryFullName` | string | Repository full name |
  | ↳ `mergeCommitHash` | string | Merge commit hash |
  | ↳ `commentCount` | number | Comment count |
  | ↳ `taskCount` | number | Open task count |
  | ↳ `closeSourceBranch` | boolean | Whether merging closes the source branch |
  | ↳ `reason` | string | Reason the pull request was declined |
  | ↳ `createdOn` | string | Creation timestamp |
  | ↳ `updatedOn` | string | Update timestamp |
  | ↳ `reviewers` | array | Explicit reviewers |
  | ↳ `type` | string | Bitbucket account object type |
  | ↳ `uuid` | string | Bitbucket account UUID |
  | ↳ `accountId` | string | Atlassian account ID |
  | ↳ `displayName` | string | Account display name |
  | ↳ `createdOn` | string | Account creation timestamp |
  | ↳ `selfUrl` | string | Account API URL |
  | ↳ `htmlUrl` | string | Account web URL |
  | ↳ `avatarUrl` | string | Account avatar URL |
  | ↳ `participants` | array | Pull request participants |
  | ↳ `type` | string | Bitbucket participant object type |
  | ↳ `user` | object | Participating account |
  | ↳ `type` | string | Bitbucket account object type |
  | ↳ `uuid` | string | Bitbucket account UUID |
  | ↳ `accountId` | string | Atlassian account ID |
  | ↳ `displayName` | string | Account display name |
  | ↳ `createdOn` | string | Account creation timestamp |
  | ↳ `selfUrl` | string | Account API URL |
  | ↳ `htmlUrl` | string | Account web URL |
  | ↳ `avatarUrl` | string | Account avatar URL |
  | ↳ `role` | string | Participant role |
  | ↳ `approved` | boolean | Whether the participant approved |
  | ↳ `state` | string | Review state |
  | ↳ `participatedOn` | string | Timestamp of the participant action |
  | ↳ `selfUrl` | string | Pull request API URL |
  | ↳ `htmlUrl` | string | Pull request web URL |
</ReferenceDetails>

### Bitbucket Approve Pull Request [#bitbucket-approve-pull-request]

Approve a pull request as the authenticated account

<ReferenceDetails>
  #### Input [#input-17]

  | Parameter | Type | Required | Description |
  | - | - | - | - |
  | `workspaceSlug` | string | Yes | Bitbucket workspace slug or UUID |
  | `repoSlug` | string | Yes | Bitbucket repository slug or UUID |
  | `prId` | number | Yes | Repository-scoped pull request ID |

  #### Output [#output-17]

  | Parameter | Type | Description |
  | - | - | - |
  | `participant` | object | Approval participant record |
  | ↳ `type` | string | Bitbucket participant object type |
  | ↳ `user` | object | Participating account |
  | ↳ `type` | string | Bitbucket account object type |
  | ↳ `uuid` | string | Bitbucket account UUID |
  | ↳ `accountId` | string | Atlassian account ID |
  | ↳ `displayName` | string | Account display name |
  | ↳ `createdOn` | string | Account creation timestamp |
  | ↳ `selfUrl` | string | Account API URL |
  | ↳ `htmlUrl` | string | Account web URL |
  | ↳ `avatarUrl` | string | Account avatar URL |
  | ↳ `role` | string | Participant role |
  | ↳ `approved` | boolean | Whether the participant approved |
  | ↳ `state` | string | Review state |
  | ↳ `participatedOn` | string | Timestamp of the participant action |
</ReferenceDetails>

### Bitbucket Request Pull Request Changes [#bitbucket-request-pull-request-changes]

Request changes on a pull request as the authenticated account

<ReferenceDetails>
  #### Input [#input-18]

  | Parameter | Type | Required | Description |
  | - | - | - | - |
  | `workspaceSlug` | string | Yes | Bitbucket workspace slug or UUID |
  | `repoSlug` | string | Yes | Bitbucket repository slug or UUID |
  | `prId` | number | Yes | Repository-scoped pull request ID |

  #### Output [#output-18]

  | Parameter | Type | Description |
  | - | - | - |
  | `participant` | object | Change-request participant record |
  | ↳ `type` | string | Bitbucket participant object type |
  | ↳ `user` | object | Participating account |
  | ↳ `type` | string | Bitbucket account object type |
  | ↳ `uuid` | string | Bitbucket account UUID |
  | ↳ `accountId` | string | Atlassian account ID |
  | ↳ `displayName` | string | Account display name |
  | ↳ `createdOn` | string | Account creation timestamp |
  | ↳ `selfUrl` | string | Account API URL |
  | ↳ `htmlUrl` | string | Account web URL |
  | ↳ `avatarUrl` | string | Account avatar URL |
  | ↳ `role` | string | Participant role |
  | ↳ `approved` | boolean | Whether the participant approved |
  | ↳ `state` | string | Review state |
  | ↳ `participatedOn` | string | Timestamp of the participant action |
</ReferenceDetails>

### Bitbucket Get Pull Request Diff [#bitbucket-get-pull-request-diff]

Read a bounded UTF-8 unified diff for one pull request file

<ReferenceDetails>
  #### Input [#input-19]

  | Parameter | Type | Required | Description |
  | - | - | - | - |
  | `workspaceSlug` | string | Yes | Bitbucket workspace slug or UUID |
  | `repoSlug` | string | Yes | Bitbucket repository slug or UUID |
  | `prId` | number | Yes | Repository-scoped pull request ID |
  | `path` | string | Yes | Repository-relative file path to include in the diff |
  | `maxCharacters` | number | No | Maximum diff characters to return (1-500000) |

  #### Output [#output-19]

  | Parameter | Type | Description |
  | - | - | - |
  | `diff` | string | Bounded unified diff text decoded as UTF-8 |
  | `decodingLossy` | boolean | Whether invalid UTF-8 source bytes were replaced while decoding |
  | `truncated` | boolean | Whether later diff text was omitted |
  | `returnedBytes` | number | Provider bytes read for the returned diff |
  | `fullBytes` | number | Full diff byte size when reported |
</ReferenceDetails>

### Bitbucket Get Pull Request Diffstat [#bitbucket-get-pull-request-diffstat]

List per-file change statistics for a pull request

<ReferenceDetails>
  #### Input [#input-20]

  | Parameter | Type | Required | Description |
  | - | - | - | - |
  | `workspaceSlug` | string | Yes | Bitbucket workspace slug or UUID |
  | `repoSlug` | string | Yes | Bitbucket repository slug or UUID |
  | `prId` | number | Yes | Repository-scoped pull request ID |
  | `nextUrl` | string | No | Opaque next-page URL returned by a previous Bitbucket call |
  | `pageLen` | number | No | Results per page (1-100) |

  #### Output [#output-20]

  | Parameter | Type | Description |
  | - | - | - |
  | `page` | object | Pagination information |
  | ↳ `size` | number | Total result count reported by Bitbucket |
  | ↳ `page` | number | Current page number |
  | ↳ `pageLen` | number | Number of results requested per page |
  | ↳ `nextUrl` | string | Validated URL for the next page |
  | ↳ `previousUrl` | string | Validated URL for the previous page |
  | `items` | array | Per-file diff statistics |
  | ↳ `type` | string | Diffstat object type |
  | ↳ `status` | string | File change status |
  | ↳ `linesAdded` | number | Lines added |
  | ↳ `linesRemoved` | number | Lines removed |
  | ↳ `oldPath` | string | Old file path |
  | ↳ `newPath` | string | New file path |
  | ↳ `oldCommitHash` | string | Old file commit hash |
  | ↳ `newCommitHash` | string | New file commit hash |
</ReferenceDetails>

### Bitbucket List Pull Request Comments [#bitbucket-list-pull-request-comments]

List global, inline, and reply comments on a pull request

<ReferenceDetails>
  #### Input [#input-21]

  | Parameter | Type | Required | Description |
  | - | - | - | - |
  | `workspaceSlug` | string | Yes | Bitbucket workspace slug or UUID |
  | `repoSlug` | string | Yes | Bitbucket repository slug or UUID |
  | `prId` | number | Yes | Repository-scoped pull request ID |
  | `q` | string | No | Bitbucket comment filtering expression |
  | `sort` | string | No | Bitbucket comment sort expression |
  | `nextUrl` | string | No | Opaque next-page URL returned by a previous Bitbucket call |
  | `pageLen` | number | No | Results per page (1-100) |

  #### Output [#output-21]

  | Parameter | Type | Description |
  | - | - | - |
  | `page` | object | Pagination information |
  | ↳ `size` | number | Total result count reported by Bitbucket |
  | ↳ `page` | number | Current page number |
  | ↳ `pageLen` | number | Number of results requested per page |
  | ↳ `nextUrl` | string | Validated URL for the next page |
  | ↳ `previousUrl` | string | Validated URL for the previous page |
  | `items` | array | Pull request comments |
  | ↳ `type` | string | Bitbucket comment object type |
  | ↳ `id` | number | Comment ID |
  | ↳ `createdOn` | string | Creation timestamp |
  | ↳ `updatedOn` | string | Update timestamp |
  | ↳ `content` | string | Raw comment content |
  | ↳ `user` | object | Comment author |
  | ↳ `type` | string | Bitbucket account object type |
  | ↳ `uuid` | string | Bitbucket account UUID |
  | ↳ `accountId` | string | Atlassian account ID |
  | ↳ `displayName` | string | Account display name |
  | ↳ `createdOn` | string | Account creation timestamp |
  | ↳ `selfUrl` | string | Account API URL |
  | ↳ `htmlUrl` | string | Account web URL |
  | ↳ `avatarUrl` | string | Account avatar URL |
  | ↳ `deleted` | boolean | Whether the comment was deleted |
  | ↳ `parentId` | number | Parent comment ID |
  | ↳ `inline` | object | Inline comment anchor |
  | ↳ `path` | string | Anchored file path |
  | ↳ `from` | number | Ending line in the old file |
  | ↳ `to` | number | Ending line in the new file |
  | ↳ `startFrom` | number | Starting line in the old file |
  | ↳ `startTo` | number | Starting line in the new file |
  | ↳ `pending` | boolean | Whether the comment is pending |
  | ↳ `resolution` | object | Comment resolution details |
  | ↳ `resolver` | object | Account that resolved the comment |
  | ↳ `type` | string | Bitbucket account object type |
  | ↳ `uuid` | string | Bitbucket account UUID |
  | ↳ `accountId` | string | Atlassian account ID |
  | ↳ `displayName` | string | Account display name |
  | ↳ `createdOn` | string | Account creation timestamp |
  | ↳ `selfUrl` | string | Account API URL |
  | ↳ `htmlUrl` | string | Account web URL |
  | ↳ `avatarUrl` | string | Account avatar URL |
  | ↳ `resolvedOn` | string | Resolution timestamp |
  | ↳ `selfUrl` | string | Comment API URL |
  | ↳ `htmlUrl` | string | Comment web URL |
</ReferenceDetails>

### Bitbucket Create Pull Request Comment [#bitbucket-create-pull-request-comment]

Create a global comment or reply on a pull request

<ReferenceDetails>
  #### Input [#input-22]

  | Parameter | Type | Required | Description |
  | - | - | - | - |
  | `workspaceSlug` | string | Yes | Bitbucket workspace slug or UUID |
  | `repoSlug` | string | Yes | Bitbucket repository slug or UUID |
  | `prId` | number | Yes | Repository-scoped pull request ID |
  | `content` | string | Yes | Raw comment content |
  | `parentId` | number | No | Parent comment ID when creating a reply |

  #### Output [#output-22]

  | Parameter | Type | Description |
  | - | - | - |
  | `comment` | object | Created comment |
  | ↳ `type` | string | Bitbucket comment object type |
  | ↳ `id` | number | Comment ID |
  | ↳ `createdOn` | string | Creation timestamp |
  | ↳ `updatedOn` | string | Update timestamp |
  | ↳ `content` | string | Raw comment content |
  | ↳ `user` | object | Comment author |
  | ↳ `type` | string | Bitbucket account object type |
  | ↳ `uuid` | string | Bitbucket account UUID |
  | ↳ `accountId` | string | Atlassian account ID |
  | ↳ `displayName` | string | Account display name |
  | ↳ `createdOn` | string | Account creation timestamp |
  | ↳ `selfUrl` | string | Account API URL |
  | ↳ `htmlUrl` | string | Account web URL |
  | ↳ `avatarUrl` | string | Account avatar URL |
  | ↳ `deleted` | boolean | Whether the comment was deleted |
  | ↳ `parentId` | number | Parent comment ID |
  | ↳ `inline` | object | Inline comment anchor |
  | ↳ `path` | string | Anchored file path |
  | ↳ `from` | number | Ending line in the old file |
  | ↳ `to` | number | Ending line in the new file |
  | ↳ `startFrom` | number | Starting line in the old file |
  | ↳ `startTo` | number | Starting line in the new file |
  | ↳ `pending` | boolean | Whether the comment is pending |
  | ↳ `resolution` | object | Comment resolution details |
  | ↳ `resolver` | object | Account that resolved the comment |
  | ↳ `type` | string | Bitbucket account object type |
  | ↳ `uuid` | string | Bitbucket account UUID |
  | ↳ `accountId` | string | Atlassian account ID |
  | ↳ `displayName` | string | Account display name |
  | ↳ `createdOn` | string | Account creation timestamp |
  | ↳ `selfUrl` | string | Account API URL |
  | ↳ `htmlUrl` | string | Account web URL |
  | ↳ `avatarUrl` | string | Account avatar URL |
  | ↳ `resolvedOn` | string | Resolution timestamp |
  | ↳ `selfUrl` | string | Comment API URL |
  | ↳ `htmlUrl` | string | Comment web URL |
</ReferenceDetails>

### Bitbucket List Pull Request Commit Statuses [#bitbucket-list-pull-request-commit-statuses]

List commit statuses associated with a pull request

<ReferenceDetails>
  #### Input [#input-23]

  | Parameter | Type | Required | Description |
  | - | - | - | - |
  | `workspaceSlug` | string | Yes | Bitbucket workspace slug or UUID |
  | `repoSlug` | string | Yes | Bitbucket repository slug or UUID |
  | `prId` | number | Yes | Repository-scoped pull request ID |
  | `q` | string | No | Bitbucket commit status filtering expression |
  | `sort` | string | No | Bitbucket commit status sort expression |
  | `nextUrl` | string | No | Opaque next-page URL returned by a previous Bitbucket call |
  | `pageLen` | number | No | Results per page (1-100) |

  #### Output [#output-23]

  | Parameter | Type | Description |
  | - | - | - |
  | `page` | object | Pagination information |
  | ↳ `size` | number | Total result count reported by Bitbucket |
  | ↳ `page` | number | Current page number |
  | ↳ `pageLen` | number | Number of results requested per page |
  | ↳ `nextUrl` | string | Validated URL for the next page |
  | ↳ `previousUrl` | string | Validated URL for the previous page |
  | `items` | array | Pull request commit statuses |
  | ↳ `type` | string | Bitbucket commit-status object type |
  | ↳ `key` | string | Vendor-unique status key |
  | ↳ `refName` | string | Reference name at status creation time |
  | ↳ `url` | string | External build URL |
  | ↳ `state` | string | Commit status state |
  | ↳ `name` | string | Build name |
  | ↳ `description` | string | Build description |
  | ↳ `createdOn` | string | Creation timestamp |
  | ↳ `updatedOn` | string | Update timestamp |
  | ↳ `selfUrl` | string | Status API URL |
  | ↳ `commitUrl` | string | Commit API URL |
</ReferenceDetails>

### Bitbucket List Pipelines [#bitbucket-list-pipelines]

List pipelines for a Bitbucket Cloud repository

<ReferenceDetails>
  #### Input [#input-24]

  | Parameter | Type | Required | Description |
  | - | - | - | - |
  | `workspaceSlug` | string | Yes | Bitbucket workspace slug or UUID |
  | `repoSlug` | string | Yes | Bitbucket repository slug or UUID |
  | `refType` | string | No | Reference type filter: BRANCH, TAG, or ANNOTATED\_TAG |
  | `refName` | string | No | Reference name filter |
  | `commitHash` | string | No | Full 40-character target commit SHA-1 filter |
  | `selectorType` | string | No | Selector type filter: BRANCH, TAG, CUSTOM, PULLREQUESTS, or DEFAULT |
  | `selectorPattern` | string | No | Pipeline selector pattern filter |
  | `triggerType` | string | No | Trigger filter: PUSH, MANUAL, SCHEDULED, or PARENT\_STEP |
  | `status` | string | No | Pipeline status filter |
  | `sort` | string | No | Bitbucket pipeline sort expression |
  | `nextUrl` | string | No | Opaque next-page URL returned by a previous Bitbucket call |
  | `pageLen` | number | No | Results per page (1-100) |

  #### Output [#output-24]

  | Parameter | Type | Description |
  | - | - | - |
  | `page` | object | Pagination information |
  | ↳ `size` | number | Total result count reported by Bitbucket |
  | ↳ `page` | number | Current page number |
  | ↳ `pageLen` | number | Number of results requested per page |
  | ↳ `nextUrl` | string | Validated URL for the next page |
  | ↳ `previousUrl` | string | Validated URL for the previous page |
  | `items` | array | Pipelines |
  | ↳ `type` | string | Bitbucket pipeline object type |
  | ↳ `uuid` | string | Pipeline UUID |
  | ↳ `buildNumber` | number | Pipeline build number |
  | ↳ `creator` | object | Pipeline creator |
  | ↳ `type` | string | Bitbucket account object type |
  | ↳ `uuid` | string | Bitbucket account UUID |
  | ↳ `accountId` | string | Atlassian account ID |
  | ↳ `displayName` | string | Account display name |
  | ↳ `createdOn` | string | Account creation timestamp |
  | ↳ `selfUrl` | string | Account API URL |
  | ↳ `htmlUrl` | string | Account web URL |
  | ↳ `avatarUrl` | string | Account avatar URL |
  | ↳ `repositoryFullName` | string | Repository full name |
  | ↳ `target` | object | Pipeline target |
  | ↳ `type` | string | Target object type |
  | ↳ `refType` | string | Reference type |
  | ↳ `refName` | string | Reference name |
  | ↳ `commitHash` | string | Target commit hash |
  | ↳ `selectorType` | string | Pipeline selector type |
  | ↳ `selectorPattern` | string | Pipeline selector pattern |
  | ↳ `triggerType` | string | Pipeline trigger object type |
  | ↳ `state` | object | Pipeline state |
  | ↳ `name` | string | State name |
  | ↳ `stage` | string | In-progress stage name |
  | ↳ `result` | string | Completed result name |
  | ↳ `errorKey` | string | Completed-error key |
  | ↳ `errorMessage` | string | Completed-error message |
  | ↳ `createdOn` | string | Creation timestamp |
  | ↳ `completedOn` | string | Completion timestamp |
  | ↳ `buildSecondsUsed` | number | Build seconds used |
  | ↳ `selfUrl` | string | Pipeline API URL |
  | ↳ `stepsUrl` | string | Pipeline steps API URL |
</ReferenceDetails>

### Bitbucket Get Pipeline [#bitbucket-get-pipeline]

Get a pipeline by UUID

<ReferenceDetails>
  #### Input [#input-25]

  | Parameter | Type | Required | Description |
  | - | - | - | - |
  | `workspaceSlug` | string | Yes | Bitbucket workspace slug or UUID |
  | `repoSlug` | string | Yes | Bitbucket repository slug or UUID |
  | `pipelineUuid` | string | Yes | Pipeline UUID |

  #### Output [#output-25]

  | Parameter | Type | Description |
  | - | - | - |
  | `pipeline` | object | Pipeline details |
  | ↳ `type` | string | Bitbucket pipeline object type |
  | ↳ `uuid` | string | Pipeline UUID |
  | ↳ `buildNumber` | number | Pipeline build number |
  | ↳ `creator` | object | Pipeline creator |
  | ↳ `type` | string | Bitbucket account object type |
  | ↳ `uuid` | string | Bitbucket account UUID |
  | ↳ `accountId` | string | Atlassian account ID |
  | ↳ `displayName` | string | Account display name |
  | ↳ `createdOn` | string | Account creation timestamp |
  | ↳ `selfUrl` | string | Account API URL |
  | ↳ `htmlUrl` | string | Account web URL |
  | ↳ `avatarUrl` | string | Account avatar URL |
  | ↳ `repositoryFullName` | string | Repository full name |
  | ↳ `target` | object | Pipeline target |
  | ↳ `type` | string | Target object type |
  | ↳ `refType` | string | Reference type |
  | ↳ `refName` | string | Reference name |
  | ↳ `commitHash` | string | Target commit hash |
  | ↳ `selectorType` | string | Pipeline selector type |
  | ↳ `selectorPattern` | string | Pipeline selector pattern |
  | ↳ `triggerType` | string | Pipeline trigger object type |
  | ↳ `state` | object | Pipeline state |
  | ↳ `name` | string | State name |
  | ↳ `stage` | string | In-progress stage name |
  | ↳ `result` | string | Completed result name |
  | ↳ `errorKey` | string | Completed-error key |
  | ↳ `errorMessage` | string | Completed-error message |
  | ↳ `createdOn` | string | Creation timestamp |
  | ↳ `completedOn` | string | Completion timestamp |
  | ↳ `buildSecondsUsed` | number | Build seconds used |
  | ↳ `selfUrl` | string | Pipeline API URL |
  | ↳ `stepsUrl` | string | Pipeline steps API URL |
</ReferenceDetails>

### Bitbucket Trigger Pipeline [#bitbucket-trigger-pipeline]

Run the repository pipeline selected by a branch or ref target

<ReferenceDetails>
  #### Input [#input-26]

  | Parameter | Type | Required | Description |
  | - | - | - | - |
  | `workspaceSlug` | string | Yes | Bitbucket workspace slug or UUID |
  | `repoSlug` | string | Yes | Bitbucket repository slug or UUID |
  | `refType` | string | Yes | Reference type: branch, tag, named\_branch, or bookmark |
  | `refName` | string | Yes | Reference name |
  | `commitHash` | string | No | Full 40-character commit SHA-1 to run in the reference context |

  #### Output [#output-26]

  | Parameter | Type | Description |
  | - | - | - |
  | `pipeline` | object | Triggered pipeline |
  | ↳ `type` | string | Bitbucket pipeline object type |
  | ↳ `uuid` | string | Pipeline UUID |
  | ↳ `buildNumber` | number | Pipeline build number |
  | ↳ `creator` | object | Pipeline creator |
  | ↳ `type` | string | Bitbucket account object type |
  | ↳ `uuid` | string | Bitbucket account UUID |
  | ↳ `accountId` | string | Atlassian account ID |
  | ↳ `displayName` | string | Account display name |
  | ↳ `createdOn` | string | Account creation timestamp |
  | ↳ `selfUrl` | string | Account API URL |
  | ↳ `htmlUrl` | string | Account web URL |
  | ↳ `avatarUrl` | string | Account avatar URL |
  | ↳ `repositoryFullName` | string | Repository full name |
  | ↳ `target` | object | Pipeline target |
  | ↳ `type` | string | Target object type |
  | ↳ `refType` | string | Reference type |
  | ↳ `refName` | string | Reference name |
  | ↳ `commitHash` | string | Target commit hash |
  | ↳ `selectorType` | string | Pipeline selector type |
  | ↳ `selectorPattern` | string | Pipeline selector pattern |
  | ↳ `triggerType` | string | Pipeline trigger object type |
  | ↳ `state` | object | Pipeline state |
  | ↳ `name` | string | State name |
  | ↳ `stage` | string | In-progress stage name |
  | ↳ `result` | string | Completed result name |
  | ↳ `errorKey` | string | Completed-error key |
  | ↳ `errorMessage` | string | Completed-error message |
  | ↳ `createdOn` | string | Creation timestamp |
  | ↳ `completedOn` | string | Completion timestamp |
  | ↳ `buildSecondsUsed` | number | Build seconds used |
  | ↳ `selfUrl` | string | Pipeline API URL |
  | ↳ `stepsUrl` | string | Pipeline steps API URL |
</ReferenceDetails>

### Bitbucket Stop Pipeline [#bitbucket-stop-pipeline]

Stop a running pipeline

<ReferenceDetails>
  #### Input [#input-27]

  | Parameter | Type | Required | Description |
  | - | - | - | - |
  | `workspaceSlug` | string | Yes | Bitbucket workspace slug or UUID |
  | `repoSlug` | string | Yes | Bitbucket repository slug or UUID |
  | `pipelineUuid` | string | Yes | Pipeline UUID |

  #### Output [#output-27]

  | Parameter | Type | Description |
  | - | - | - |
  | `stopped` | boolean | Whether the stop request succeeded |
</ReferenceDetails>

### Bitbucket List Pipeline Steps [#bitbucket-list-pipeline-steps]

List the steps in a pipeline

<ReferenceDetails>
  #### Input [#input-28]

  | Parameter | Type | Required | Description |
  | - | - | - | - |
  | `workspaceSlug` | string | Yes | Bitbucket workspace slug or UUID |
  | `repoSlug` | string | Yes | Bitbucket repository slug or UUID |
  | `pipelineUuid` | string | Yes | Pipeline UUID |
  | `nextUrl` | string | No | Opaque next-page URL returned by a previous Bitbucket call |
  | `pageLen` | number | No | Results per page (1-100) |

  #### Output [#output-28]

  | Parameter | Type | Description |
  | - | - | - |
  | `page` | object | Pagination information |
  | ↳ `size` | number | Total result count reported by Bitbucket |
  | ↳ `page` | number | Current page number |
  | ↳ `pageLen` | number | Number of results requested per page |
  | ↳ `nextUrl` | string | Validated URL for the next page |
  | ↳ `previousUrl` | string | Validated URL for the previous page |
  | `items` | array | Pipeline steps |
  | ↳ `type` | string | Bitbucket pipeline-step object type |
  | ↳ `uuid` | string | Pipeline step UUID |
  | ↳ `startedOn` | string | Step start timestamp |
  | ↳ `completedOn` | string | Step completion timestamp |
  | ↳ `state` | object | Pipeline step state |
  | ↳ `name` | string | State name |
  | ↳ `result` | string | Completed result name |
  | ↳ `errorKey` | string | Completed-error key |
  | ↳ `errorMessage` | string | Completed-error message |
  | ↳ `imageName` | string | Build container image name |
  | ↳ `setupCommands` | array | Setup commands |
  | ↳ `name` | string | Command name |
  | ↳ `command` | string | Executable command |
  | ↳ `scriptCommands` | array | Build script commands |
  | ↳ `name` | string | Command name |
  | ↳ `command` | string | Executable command |
</ReferenceDetails>

### Bitbucket Get Pipeline Step Log [#bitbucket-get-pipeline-step-log]

Read a bounded UTF-8 tail of a pipeline step log

<ReferenceDetails>
  #### Input [#input-29]

  | Parameter | Type | Required | Description |
  | - | - | - | - |
  | `workspaceSlug` | string | Yes | Bitbucket workspace slug or UUID |
  | `repoSlug` | string | Yes | Bitbucket repository slug or UUID |
  | `pipelineUuid` | string | Yes | Pipeline UUID |
  | `stepUuid` | string | Yes | Pipeline step UUID |
  | `maxCharacters` | number | No | Maximum trailing log characters to return (1-200000) |

  #### Output [#output-29]

  | Parameter | Type | Description |
  | - | - | - |
  | `log` | string | Bounded trailing UTF-8 log text |
  | `truncated` | boolean | Whether earlier log output was omitted |
  | `totalBytes` | number | Full log byte size when reported |
</ReferenceDetails>

## Triggers [#triggers]

A trigger starts a workflow when a supported event occurs in this service.

### Bitbucket Build Status Created [#bitbucket-build-status-created]

Trigger workflow when a build status is created for a Bitbucket commit

<ReferenceDetails label="Configuration and outputs">
  #### Configuration [#configuration]

  | Parameter | Type | Required | Description |
  | - | - | - | - |
  | `triggerCredentials` | string | Yes | The Bitbucket account used to create and remove the repository webhook. Repository administrator access is required. |
  | `workspacePicker` | project-selector | Yes | The workspace containing the repository to monitor. |
  | `workspaceSlugInput` | string | Yes | Enter the workspace slug directly instead of selecting a workspace. |
  | `repositoryPicker` | project-selector | Yes | The repository where Sim creates the webhook. |
  | `repositorySlugInput` | string | Yes | Enter the repository slug directly instead of selecting a repository. |

  #### Output [#output-30]

  | Parameter | Type | Description |
  | - | - | - |
  | `eventType` | string | Bitbucket event key from X-Event-Key |
  | `hookUuid` | string | UUID of the Bitbucket repository webhook |
  | `requestUuid` | string | Bitbucket delivery request UUID |
  | `attemptNumber` | number | Bitbucket delivery attempt number |
  | `actor` | json | User or app that caused the event |
  | `repository` | json | Repository where the event occurred |
  | `payload` | json | Full parsed Bitbucket webhook payload |
  | `commitStatus` | json | Bitbucket commit status object |
  | `commitHash` | string | Hash of the commit with this status |
  | `statusKey` | string | Key identifying the build status |
  | `statusState` | string | Current build status state |
  | `statusName` | string | Display name of the build status |
  | `statusUrl` | string | URL associated with the build status |
</ReferenceDetails>

### Bitbucket Build Status Updated [#bitbucket-build-status-updated]

Trigger workflow when a build status is updated for a Bitbucket commit

<ReferenceDetails label="Configuration and outputs">
  #### Configuration [#configuration-1]

  | Parameter | Type | Required | Description |
  | - | - | - | - |
  | `triggerCredentials` | string | Yes | The Bitbucket account used to create and remove the repository webhook. Repository administrator access is required. |
  | `workspacePicker` | project-selector | Yes | The workspace containing the repository to monitor. |
  | `workspaceSlugInput` | string | Yes | Enter the workspace slug directly instead of selecting a workspace. |
  | `repositoryPicker` | project-selector | Yes | The repository where Sim creates the webhook. |
  | `repositorySlugInput` | string | Yes | Enter the repository slug directly instead of selecting a repository. |

  #### Output [#output-31]

  | Parameter | Type | Description |
  | - | - | - |
  | `eventType` | string | Bitbucket event key from X-Event-Key |
  | `hookUuid` | string | UUID of the Bitbucket repository webhook |
  | `requestUuid` | string | Bitbucket delivery request UUID |
  | `attemptNumber` | number | Bitbucket delivery attempt number |
  | `actor` | json | User or app that caused the event |
  | `repository` | json | Repository where the event occurred |
  | `payload` | json | Full parsed Bitbucket webhook payload |
  | `commitStatus` | json | Bitbucket commit status object |
  | `commitHash` | string | Hash of the commit with this status |
  | `statusKey` | string | Key identifying the build status |
  | `statusState` | string | Current build status state |
  | `statusName` | string | Display name of the build status |
  | `statusUrl` | string | URL associated with the build status |
</ReferenceDetails>

### Bitbucket Commit Comment Created [#bitbucket-commit-comment-created]

Trigger workflow when a comment is created on a Bitbucket commit

<ReferenceDetails label="Configuration and outputs">
  #### Configuration [#configuration-2]

  | Parameter | Type | Required | Description |
  | - | - | - | - |
  | `triggerCredentials` | string | Yes | The Bitbucket account used to create and remove the repository webhook. Repository administrator access is required. |
  | `workspacePicker` | project-selector | Yes | The workspace containing the repository to monitor. |
  | `workspaceSlugInput` | string | Yes | Enter the workspace slug directly instead of selecting a workspace. |
  | `repositoryPicker` | project-selector | Yes | The repository where Sim creates the webhook. |
  | `repositorySlugInput` | string | Yes | Enter the repository slug directly instead of selecting a repository. |

  #### Output [#output-32]

  | Parameter | Type | Description |
  | - | - | - |
  | `eventType` | string | Bitbucket event key from X-Event-Key |
  | `hookUuid` | string | UUID of the Bitbucket repository webhook |
  | `requestUuid` | string | Bitbucket delivery request UUID |
  | `attemptNumber` | number | Bitbucket delivery attempt number |
  | `actor` | json | User or app that caused the event |
  | `repository` | json | Repository where the event occurred |
  | `payload` | json | Full parsed Bitbucket webhook payload |
  | `comment` | json | Bitbucket comment object |
  | `commentId` | number | Repository-scoped comment ID |
  | `commentContent` | string | Raw text content of the comment |
  | `commit` | json | Commit the comment was created on |
</ReferenceDetails>

### Bitbucket Pull Request Approval Removed [#bitbucket-pull-request-approval-removed]

Trigger workflow when approval is removed from a Bitbucket pull request

<ReferenceDetails label="Configuration and outputs">
  #### Configuration [#configuration-3]

  | Parameter | Type | Required | Description |
  | - | - | - | - |
  | `triggerCredentials` | string | Yes | The Bitbucket account used to create and remove the repository webhook. Repository administrator access is required. |
  | `workspacePicker` | project-selector | Yes | The workspace containing the repository to monitor. |
  | `workspaceSlugInput` | string | Yes | Enter the workspace slug directly instead of selecting a workspace. |
  | `repositoryPicker` | project-selector | Yes | The repository where Sim creates the webhook. |
  | `repositorySlugInput` | string | Yes | Enter the repository slug directly instead of selecting a repository. |

  #### Output [#output-33]

  | Parameter | Type | Description |
  | - | - | - |
  | `eventType` | string | Bitbucket event key from X-Event-Key |
  | `hookUuid` | string | UUID of the Bitbucket repository webhook |
  | `requestUuid` | string | Bitbucket delivery request UUID |
  | `attemptNumber` | number | Bitbucket delivery attempt number |
  | `actor` | json | User or app that caused the event |
  | `repository` | json | Repository where the event occurred |
  | `payload` | json | Full parsed Bitbucket webhook payload |
  | `pullRequest` | json | Bitbucket pull request object |
  | `pullRequestId` | number | Repository-scoped pull request ID |
  | `pullRequestTitle` | string | Pull request title |
  | `pullRequestState` | string | Pull request state |
  | `sourceBranch` | string | Pull request source branch |
  | `destinationBranch` | string | Pull request destination branch |
  | `approval` | json | Pull request approval details |
</ReferenceDetails>

### Bitbucket Pull Request Approved [#bitbucket-pull-request-approved]

Trigger workflow when a Bitbucket pull request is approved

<ReferenceDetails label="Configuration and outputs">
  #### Configuration [#configuration-4]

  | Parameter | Type | Required | Description |
  | - | - | - | - |
  | `triggerCredentials` | string | Yes | The Bitbucket account used to create and remove the repository webhook. Repository administrator access is required. |
  | `workspacePicker` | project-selector | Yes | The workspace containing the repository to monitor. |
  | `workspaceSlugInput` | string | Yes | Enter the workspace slug directly instead of selecting a workspace. |
  | `repositoryPicker` | project-selector | Yes | The repository where Sim creates the webhook. |
  | `repositorySlugInput` | string | Yes | Enter the repository slug directly instead of selecting a repository. |

  #### Output [#output-34]

  | Parameter | Type | Description |
  | - | - | - |
  | `eventType` | string | Bitbucket event key from X-Event-Key |
  | `hookUuid` | string | UUID of the Bitbucket repository webhook |
  | `requestUuid` | string | Bitbucket delivery request UUID |
  | `attemptNumber` | number | Bitbucket delivery attempt number |
  | `actor` | json | User or app that caused the event |
  | `repository` | json | Repository where the event occurred |
  | `payload` | json | Full parsed Bitbucket webhook payload |
  | `pullRequest` | json | Bitbucket pull request object |
  | `pullRequestId` | number | Repository-scoped pull request ID |
  | `pullRequestTitle` | string | Pull request title |
  | `pullRequestState` | string | Pull request state |
  | `sourceBranch` | string | Pull request source branch |
  | `destinationBranch` | string | Pull request destination branch |
  | `approval` | json | Pull request approval details |
</ReferenceDetails>

### Bitbucket Pull Request Changes Request Removed [#bitbucket-pull-request-changes-request-removed]

Trigger workflow when a changes request is removed from a Bitbucket pull request

<ReferenceDetails label="Configuration and outputs">
  #### Configuration [#configuration-5]

  | Parameter | Type | Required | Description |
  | - | - | - | - |
  | `triggerCredentials` | string | Yes | The Bitbucket account used to create and remove the repository webhook. Repository administrator access is required. |
  | `workspacePicker` | project-selector | Yes | The workspace containing the repository to monitor. |
  | `workspaceSlugInput` | string | Yes | Enter the workspace slug directly instead of selecting a workspace. |
  | `repositoryPicker` | project-selector | Yes | The repository where Sim creates the webhook. |
  | `repositorySlugInput` | string | Yes | Enter the repository slug directly instead of selecting a repository. |

  #### Output [#output-35]

  | Parameter | Type | Description |
  | - | - | - |
  | `eventType` | string | Bitbucket event key from X-Event-Key |
  | `hookUuid` | string | UUID of the Bitbucket repository webhook |
  | `requestUuid` | string | Bitbucket delivery request UUID |
  | `attemptNumber` | number | Bitbucket delivery attempt number |
  | `actor` | json | User or app that caused the event |
  | `repository` | json | Repository where the event occurred |
  | `payload` | json | Full parsed Bitbucket webhook payload |
  | `pullRequest` | json | Bitbucket pull request object |
  | `pullRequestId` | number | Repository-scoped pull request ID |
  | `pullRequestTitle` | string | Pull request title |
  | `pullRequestState` | string | Pull request state |
  | `sourceBranch` | string | Pull request source branch |
  | `destinationBranch` | string | Pull request destination branch |
  | `changesRequest` | json | Pull request changes-request details |
</ReferenceDetails>

### Bitbucket Pull Request Changes Requested [#bitbucket-pull-request-changes-requested]

Trigger workflow when changes are requested on a Bitbucket pull request

<ReferenceDetails label="Configuration and outputs">
  #### Configuration [#configuration-6]

  | Parameter | Type | Required | Description |
  | - | - | - | - |
  | `triggerCredentials` | string | Yes | The Bitbucket account used to create and remove the repository webhook. Repository administrator access is required. |
  | `workspacePicker` | project-selector | Yes | The workspace containing the repository to monitor. |
  | `workspaceSlugInput` | string | Yes | Enter the workspace slug directly instead of selecting a workspace. |
  | `repositoryPicker` | project-selector | Yes | The repository where Sim creates the webhook. |
  | `repositorySlugInput` | string | Yes | Enter the repository slug directly instead of selecting a repository. |

  #### Output [#output-36]

  | Parameter | Type | Description |
  | - | - | - |
  | `eventType` | string | Bitbucket event key from X-Event-Key |
  | `hookUuid` | string | UUID of the Bitbucket repository webhook |
  | `requestUuid` | string | Bitbucket delivery request UUID |
  | `attemptNumber` | number | Bitbucket delivery attempt number |
  | `actor` | json | User or app that caused the event |
  | `repository` | json | Repository where the event occurred |
  | `payload` | json | Full parsed Bitbucket webhook payload |
  | `pullRequest` | json | Bitbucket pull request object |
  | `pullRequestId` | number | Repository-scoped pull request ID |
  | `pullRequestTitle` | string | Pull request title |
  | `pullRequestState` | string | Pull request state |
  | `sourceBranch` | string | Pull request source branch |
  | `destinationBranch` | string | Pull request destination branch |
  | `changesRequest` | json | Pull request changes-request details |
</ReferenceDetails>

### Bitbucket Pull Request Comment Created [#bitbucket-pull-request-comment-created]

Trigger workflow when a comment is created on a Bitbucket pull request

<ReferenceDetails label="Configuration and outputs">
  #### Configuration [#configuration-7]

  | Parameter | Type | Required | Description |
  | - | - | - | - |
  | `triggerCredentials` | string | Yes | The Bitbucket account used to create and remove the repository webhook. Repository administrator access is required. |
  | `workspacePicker` | project-selector | Yes | The workspace containing the repository to monitor. |
  | `workspaceSlugInput` | string | Yes | Enter the workspace slug directly instead of selecting a workspace. |
  | `repositoryPicker` | project-selector | Yes | The repository where Sim creates the webhook. |
  | `repositorySlugInput` | string | Yes | Enter the repository slug directly instead of selecting a repository. |

  #### Output [#output-37]

  | Parameter | Type | Description |
  | - | - | - |
  | `eventType` | string | Bitbucket event key from X-Event-Key |
  | `hookUuid` | string | UUID of the Bitbucket repository webhook |
  | `requestUuid` | string | Bitbucket delivery request UUID |
  | `attemptNumber` | number | Bitbucket delivery attempt number |
  | `actor` | json | User or app that caused the event |
  | `repository` | json | Repository where the event occurred |
  | `payload` | json | Full parsed Bitbucket webhook payload |
  | `pullRequest` | json | Bitbucket pull request object |
  | `pullRequestId` | number | Repository-scoped pull request ID |
  | `pullRequestTitle` | string | Pull request title |
  | `pullRequestState` | string | Pull request state |
  | `sourceBranch` | string | Pull request source branch |
  | `destinationBranch` | string | Pull request destination branch |
  | `comment` | json | Bitbucket comment object |
  | `commentId` | number | Repository-scoped comment ID |
  | `commentContent` | string | Raw text content of the comment |
</ReferenceDetails>

### Bitbucket Pull Request Comment Deleted [#bitbucket-pull-request-comment-deleted]

Trigger workflow when a comment is deleted from a Bitbucket pull request

<ReferenceDetails label="Configuration and outputs">
  #### Configuration [#configuration-8]

  | Parameter | Type | Required | Description |
  | - | - | - | - |
  | `triggerCredentials` | string | Yes | The Bitbucket account used to create and remove the repository webhook. Repository administrator access is required. |
  | `workspacePicker` | project-selector | Yes | The workspace containing the repository to monitor. |
  | `workspaceSlugInput` | string | Yes | Enter the workspace slug directly instead of selecting a workspace. |
  | `repositoryPicker` | project-selector | Yes | The repository where Sim creates the webhook. |
  | `repositorySlugInput` | string | Yes | Enter the repository slug directly instead of selecting a repository. |

  #### Output [#output-38]

  | Parameter | Type | Description |
  | - | - | - |
  | `eventType` | string | Bitbucket event key from X-Event-Key |
  | `hookUuid` | string | UUID of the Bitbucket repository webhook |
  | `requestUuid` | string | Bitbucket delivery request UUID |
  | `attemptNumber` | number | Bitbucket delivery attempt number |
  | `actor` | json | User or app that caused the event |
  | `repository` | json | Repository where the event occurred |
  | `payload` | json | Full parsed Bitbucket webhook payload |
  | `pullRequest` | json | Bitbucket pull request object |
  | `pullRequestId` | number | Repository-scoped pull request ID |
  | `pullRequestTitle` | string | Pull request title |
  | `pullRequestState` | string | Pull request state |
  | `sourceBranch` | string | Pull request source branch |
  | `destinationBranch` | string | Pull request destination branch |
  | `comment` | json | Bitbucket comment object |
  | `commentId` | number | Repository-scoped comment ID |
  | `commentContent` | string | Raw text content of the comment |
</ReferenceDetails>

### Bitbucket Pull Request Comment Reopened [#bitbucket-pull-request-comment-reopened]

Trigger workflow when a resolved comment is reopened on a Bitbucket pull request

<ReferenceDetails label="Configuration and outputs">
  #### Configuration [#configuration-9]

  | Parameter | Type | Required | Description |
  | - | - | - | - |
  | `triggerCredentials` | string | Yes | The Bitbucket account used to create and remove the repository webhook. Repository administrator access is required. |
  | `workspacePicker` | project-selector | Yes | The workspace containing the repository to monitor. |
  | `workspaceSlugInput` | string | Yes | Enter the workspace slug directly instead of selecting a workspace. |
  | `repositoryPicker` | project-selector | Yes | The repository where Sim creates the webhook. |
  | `repositorySlugInput` | string | Yes | Enter the repository slug directly instead of selecting a repository. |

  #### Output [#output-39]

  | Parameter | Type | Description |
  | - | - | - |
  | `eventType` | string | Bitbucket event key from X-Event-Key |
  | `hookUuid` | string | UUID of the Bitbucket repository webhook |
  | `requestUuid` | string | Bitbucket delivery request UUID |
  | `attemptNumber` | number | Bitbucket delivery attempt number |
  | `actor` | json | User or app that caused the event |
  | `repository` | json | Repository where the event occurred |
  | `payload` | json | Full parsed Bitbucket webhook payload |
  | `pullRequest` | json | Bitbucket pull request object |
  | `pullRequestId` | number | Repository-scoped pull request ID |
  | `pullRequestTitle` | string | Pull request title |
  | `pullRequestState` | string | Pull request state |
  | `sourceBranch` | string | Pull request source branch |
  | `destinationBranch` | string | Pull request destination branch |
  | `comment` | json | Bitbucket comment object |
  | `commentId` | number | Repository-scoped comment ID |
  | `commentContent` | string | Raw text content of the comment |
</ReferenceDetails>

### Bitbucket Pull Request Comment Resolved [#bitbucket-pull-request-comment-resolved]

Trigger workflow when a comment is resolved on a Bitbucket pull request

<ReferenceDetails label="Configuration and outputs">
  #### Configuration [#configuration-10]

  | Parameter | Type | Required | Description |
  | - | - | - | - |
  | `triggerCredentials` | string | Yes | The Bitbucket account used to create and remove the repository webhook. Repository administrator access is required. |
  | `workspacePicker` | project-selector | Yes | The workspace containing the repository to monitor. |
  | `workspaceSlugInput` | string | Yes | Enter the workspace slug directly instead of selecting a workspace. |
  | `repositoryPicker` | project-selector | Yes | The repository where Sim creates the webhook. |
  | `repositorySlugInput` | string | Yes | Enter the repository slug directly instead of selecting a repository. |

  #### Output [#output-40]

  | Parameter | Type | Description |
  | - | - | - |
  | `eventType` | string | Bitbucket event key from X-Event-Key |
  | `hookUuid` | string | UUID of the Bitbucket repository webhook |
  | `requestUuid` | string | Bitbucket delivery request UUID |
  | `attemptNumber` | number | Bitbucket delivery attempt number |
  | `actor` | json | User or app that caused the event |
  | `repository` | json | Repository where the event occurred |
  | `payload` | json | Full parsed Bitbucket webhook payload |
  | `pullRequest` | json | Bitbucket pull request object |
  | `pullRequestId` | number | Repository-scoped pull request ID |
  | `pullRequestTitle` | string | Pull request title |
  | `pullRequestState` | string | Pull request state |
  | `sourceBranch` | string | Pull request source branch |
  | `destinationBranch` | string | Pull request destination branch |
  | `comment` | json | Bitbucket comment object |
  | `commentId` | number | Repository-scoped comment ID |
  | `commentContent` | string | Raw text content of the comment |
</ReferenceDetails>

### Bitbucket Pull Request Comment Updated [#bitbucket-pull-request-comment-updated]

Trigger workflow when a comment is updated on a Bitbucket pull request

<ReferenceDetails label="Configuration and outputs">
  #### Configuration [#configuration-11]

  | Parameter | Type | Required | Description |
  | - | - | - | - |
  | `triggerCredentials` | string | Yes | The Bitbucket account used to create and remove the repository webhook. Repository administrator access is required. |
  | `workspacePicker` | project-selector | Yes | The workspace containing the repository to monitor. |
  | `workspaceSlugInput` | string | Yes | Enter the workspace slug directly instead of selecting a workspace. |
  | `repositoryPicker` | project-selector | Yes | The repository where Sim creates the webhook. |
  | `repositorySlugInput` | string | Yes | Enter the repository slug directly instead of selecting a repository. |

  #### Output [#output-41]

  | Parameter | Type | Description |
  | - | - | - |
  | `eventType` | string | Bitbucket event key from X-Event-Key |
  | `hookUuid` | string | UUID of the Bitbucket repository webhook |
  | `requestUuid` | string | Bitbucket delivery request UUID |
  | `attemptNumber` | number | Bitbucket delivery attempt number |
  | `actor` | json | User or app that caused the event |
  | `repository` | json | Repository where the event occurred |
  | `payload` | json | Full parsed Bitbucket webhook payload |
  | `pullRequest` | json | Bitbucket pull request object |
  | `pullRequestId` | number | Repository-scoped pull request ID |
  | `pullRequestTitle` | string | Pull request title |
  | `pullRequestState` | string | Pull request state |
  | `sourceBranch` | string | Pull request source branch |
  | `destinationBranch` | string | Pull request destination branch |
  | `comment` | json | Bitbucket comment object |
  | `commentId` | number | Repository-scoped comment ID |
  | `commentContent` | string | Raw text content of the comment |
</ReferenceDetails>

### Bitbucket Pull Request Created [#bitbucket-pull-request-created]

Trigger workflow when a Bitbucket pull request is created

<ReferenceDetails label="Configuration and outputs">
  #### Configuration [#configuration-12]

  | Parameter | Type | Required | Description |
  | - | - | - | - |
  | `triggerCredentials` | string | Yes | The Bitbucket account used to create and remove the repository webhook. Repository administrator access is required. |
  | `workspacePicker` | project-selector | Yes | The workspace containing the repository to monitor. |
  | `workspaceSlugInput` | string | Yes | Enter the workspace slug directly instead of selecting a workspace. |
  | `repositoryPicker` | project-selector | Yes | The repository where Sim creates the webhook. |
  | `repositorySlugInput` | string | Yes | Enter the repository slug directly instead of selecting a repository. |

  #### Output [#output-42]

  | Parameter | Type | Description |
  | - | - | - |
  | `eventType` | string | Bitbucket event key from X-Event-Key |
  | `hookUuid` | string | UUID of the Bitbucket repository webhook |
  | `requestUuid` | string | Bitbucket delivery request UUID |
  | `attemptNumber` | number | Bitbucket delivery attempt number |
  | `actor` | json | User or app that caused the event |
  | `repository` | json | Repository where the event occurred |
  | `payload` | json | Full parsed Bitbucket webhook payload |
  | `pullRequest` | json | Bitbucket pull request object |
  | `pullRequestId` | number | Repository-scoped pull request ID |
  | `pullRequestTitle` | string | Pull request title |
  | `pullRequestState` | string | Pull request state |
  | `sourceBranch` | string | Pull request source branch |
  | `destinationBranch` | string | Pull request destination branch |
</ReferenceDetails>

### Bitbucket Pull Request Declined [#bitbucket-pull-request-declined]

Trigger workflow when a Bitbucket pull request is declined

<ReferenceDetails label="Configuration and outputs">
  #### Configuration [#configuration-13]

  | Parameter | Type | Required | Description |
  | - | - | - | - |
  | `triggerCredentials` | string | Yes | The Bitbucket account used to create and remove the repository webhook. Repository administrator access is required. |
  | `workspacePicker` | project-selector | Yes | The workspace containing the repository to monitor. |
  | `workspaceSlugInput` | string | Yes | Enter the workspace slug directly instead of selecting a workspace. |
  | `repositoryPicker` | project-selector | Yes | The repository where Sim creates the webhook. |
  | `repositorySlugInput` | string | Yes | Enter the repository slug directly instead of selecting a repository. |

  #### Output [#output-43]

  | Parameter | Type | Description |
  | - | - | - |
  | `eventType` | string | Bitbucket event key from X-Event-Key |
  | `hookUuid` | string | UUID of the Bitbucket repository webhook |
  | `requestUuid` | string | Bitbucket delivery request UUID |
  | `attemptNumber` | number | Bitbucket delivery attempt number |
  | `actor` | json | User or app that caused the event |
  | `repository` | json | Repository where the event occurred |
  | `payload` | json | Full parsed Bitbucket webhook payload |
  | `pullRequest` | json | Bitbucket pull request object |
  | `pullRequestId` | number | Repository-scoped pull request ID |
  | `pullRequestTitle` | string | Pull request title |
  | `pullRequestState` | string | Pull request state |
  | `sourceBranch` | string | Pull request source branch |
  | `destinationBranch` | string | Pull request destination branch |
</ReferenceDetails>

### Bitbucket Pull Request Merged [#bitbucket-pull-request-merged]

Trigger workflow when a Bitbucket pull request is merged

<ReferenceDetails label="Configuration and outputs">
  #### Configuration [#configuration-14]

  | Parameter | Type | Required | Description |
  | - | - | - | - |
  | `triggerCredentials` | string | Yes | The Bitbucket account used to create and remove the repository webhook. Repository administrator access is required. |
  | `workspacePicker` | project-selector | Yes | The workspace containing the repository to monitor. |
  | `workspaceSlugInput` | string | Yes | Enter the workspace slug directly instead of selecting a workspace. |
  | `repositoryPicker` | project-selector | Yes | The repository where Sim creates the webhook. |
  | `repositorySlugInput` | string | Yes | Enter the repository slug directly instead of selecting a repository. |

  #### Output [#output-44]

  | Parameter | Type | Description |
  | - | - | - |
  | `eventType` | string | Bitbucket event key from X-Event-Key |
  | `hookUuid` | string | UUID of the Bitbucket repository webhook |
  | `requestUuid` | string | Bitbucket delivery request UUID |
  | `attemptNumber` | number | Bitbucket delivery attempt number |
  | `actor` | json | User or app that caused the event |
  | `repository` | json | Repository where the event occurred |
  | `payload` | json | Full parsed Bitbucket webhook payload |
  | `pullRequest` | json | Bitbucket pull request object |
  | `pullRequestId` | number | Repository-scoped pull request ID |
  | `pullRequestTitle` | string | Pull request title |
  | `pullRequestState` | string | Pull request state |
  | `sourceBranch` | string | Pull request source branch |
  | `destinationBranch` | string | Pull request destination branch |
</ReferenceDetails>

### Bitbucket Pull Request Updated [#bitbucket-pull-request-updated]

Trigger workflow when a Bitbucket pull request is updated

<ReferenceDetails label="Configuration and outputs">
  #### Configuration [#configuration-15]

  | Parameter | Type | Required | Description |
  | - | - | - | - |
  | `triggerCredentials` | string | Yes | The Bitbucket account used to create and remove the repository webhook. Repository administrator access is required. |
  | `workspacePicker` | project-selector | Yes | The workspace containing the repository to monitor. |
  | `workspaceSlugInput` | string | Yes | Enter the workspace slug directly instead of selecting a workspace. |
  | `repositoryPicker` | project-selector | Yes | The repository where Sim creates the webhook. |
  | `repositorySlugInput` | string | Yes | Enter the repository slug directly instead of selecting a repository. |

  #### Output [#output-45]

  | Parameter | Type | Description |
  | - | - | - |
  | `eventType` | string | Bitbucket event key from X-Event-Key |
  | `hookUuid` | string | UUID of the Bitbucket repository webhook |
  | `requestUuid` | string | Bitbucket delivery request UUID |
  | `attemptNumber` | number | Bitbucket delivery attempt number |
  | `actor` | json | User or app that caused the event |
  | `repository` | json | Repository where the event occurred |
  | `payload` | json | Full parsed Bitbucket webhook payload |
  | `pullRequest` | json | Bitbucket pull request object |
  | `pullRequestId` | number | Repository-scoped pull request ID |
  | `pullRequestTitle` | string | Pull request title |
  | `pullRequestState` | string | Pull request state |
  | `sourceBranch` | string | Pull request source branch |
  | `destinationBranch` | string | Pull request destination branch |
</ReferenceDetails>

### Bitbucket Push [#bitbucket-push]

Trigger workflow when commits are pushed to a Bitbucket repository

<ReferenceDetails label="Configuration and outputs">
  #### Configuration [#configuration-16]

  | Parameter | Type | Required | Description |
  | - | - | - | - |
  | `triggerCredentials` | string | Yes | The Bitbucket account used to create and remove the repository webhook. Repository administrator access is required. |
  | `workspacePicker` | project-selector | Yes | The workspace containing the repository to monitor. |
  | `workspaceSlugInput` | string | Yes | Enter the workspace slug directly instead of selecting a workspace. |
  | `repositoryPicker` | project-selector | Yes | The repository where Sim creates the webhook. |
  | `repositorySlugInput` | string | Yes | Enter the repository slug directly instead of selecting a repository. |

  #### Output [#output-46]

  | Parameter | Type | Description |
  | - | - | - |
  | `eventType` | string | Bitbucket event key from X-Event-Key |
  | `hookUuid` | string | UUID of the Bitbucket repository webhook |
  | `requestUuid` | string | Bitbucket delivery request UUID |
  | `attemptNumber` | number | Bitbucket delivery attempt number |
  | `actor` | json | User or app that caused the event |
  | `repository` | json | Repository where the event occurred |
  | `payload` | json | Full parsed Bitbucket webhook payload |
  | `push` | json | Push details, including changes and commits |
</ReferenceDetails>

### Bitbucket Repository Forked [#bitbucket-repository-forked]

Trigger workflow when a Bitbucket repository is forked

<ReferenceDetails label="Configuration and outputs">
  #### Configuration [#configuration-17]

  | Parameter | Type | Required | Description |
  | - | - | - | - |
  | `triggerCredentials` | string | Yes | The Bitbucket account used to create and remove the repository webhook. Repository administrator access is required. |
  | `workspacePicker` | project-selector | Yes | The workspace containing the repository to monitor. |
  | `workspaceSlugInput` | string | Yes | Enter the workspace slug directly instead of selecting a workspace. |
  | `repositoryPicker` | project-selector | Yes | The repository where Sim creates the webhook. |
  | `repositorySlugInput` | string | Yes | Enter the repository slug directly instead of selecting a repository. |

  #### Output [#output-47]

  | Parameter | Type | Description |
  | - | - | - |
  | `eventType` | string | Bitbucket event key from X-Event-Key |
  | `hookUuid` | string | UUID of the Bitbucket repository webhook |
  | `requestUuid` | string | Bitbucket delivery request UUID |
  | `attemptNumber` | number | Bitbucket delivery attempt number |
  | `actor` | json | User or app that caused the event |
  | `repository` | json | Repository where the event occurred |
  | `payload` | json | Full parsed Bitbucket webhook payload |
  | `fork` | json | Newly created repository fork |
</ReferenceDetails>

### Bitbucket Repository Updated [#bitbucket-repository-updated]

Trigger workflow when a Bitbucket repository is updated

<ReferenceDetails label="Configuration and outputs">
  #### Configuration [#configuration-18]

  | Parameter | Type | Required | Description |
  | - | - | - | - |
  | `triggerCredentials` | string | Yes | The Bitbucket account used to create and remove the repository webhook. Repository administrator access is required. |
  | `workspacePicker` | project-selector | Yes | The workspace containing the repository to monitor. |
  | `workspaceSlugInput` | string | Yes | Enter the workspace slug directly instead of selecting a workspace. |
  | `repositoryPicker` | project-selector | Yes | The repository where Sim creates the webhook. |
  | `repositorySlugInput` | string | Yes | Enter the repository slug directly instead of selecting a repository. |

  #### Output [#output-48]

  | Parameter | Type | Description |
  | - | - | - |
  | `eventType` | string | Bitbucket event key from X-Event-Key |
  | `hookUuid` | string | UUID of the Bitbucket repository webhook |
  | `requestUuid` | string | Bitbucket delivery request UUID |
  | `attemptNumber` | number | Bitbucket delivery attempt number |
  | `actor` | json | User or app that caused the event |
  | `repository` | json | Repository where the event occurred |
  | `payload` | json | Full parsed Bitbucket webhook payload |
  | `changes` | json | Repository fields changed by the update |
</ReferenceDetails>
