Bitbucket

Bitbucket is Atlassian's Git hosting service for code, pull requests, and CI/CD with Bitbucket Pipelines.

With the Bitbucket block, you can:

  • Browse workspaces and repositories: List workspaces and repositories, and read repository details
  • Read source code: List branches, commits, and directory contents, and read files and file metadata
  • Manage branches: Create and delete branches
  • Work on pull requests: List, read, create, approve, merge, and decline pull requests, read their diffs, and list or add comments
  • Run pipelines: List pipelines and their steps, trigger or stop a pipeline, and read step logs

Connect your Bitbucket account with OAuth. The Bitbucket triggers can also start a workflow on pushes, repository changes, build status updates, and pull request events, with the webhook managed for you.

In Sim, the Bitbucket block lets your agents take part in your development process: review a pull request when it opens, summarize a failed pipeline from its step logs, or cut a release branch and open the pull request for it.

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

Bitbucket List Workspaces

List Bitbucket Cloud workspaces available to the authenticated account

Input

ParameterTypeRequiredDescription
sortstringNoWorkspace sort field; Bitbucket currently supports slug
administratorbooleanNoFilter by whether the caller is a workspace administrator
nextUrlstringNoOpaque next-page URL returned by a previous Bitbucket call
pageLennumberNoResults per page (1-100)

Output

ParameterTypeDescription
pageobjectPagination information
↳ sizenumberTotal result count reported by Bitbucket
↳ pagenumberCurrent page number
↳ pageLennumberNumber of results requested per page
↳ nextUrlstringValidated URL for the next page
↳ previousUrlstringValidated URL for the previous page
itemsarrayWorkspace access records
↳ typestringBitbucket workspace-access object type
↳ slugstringWorkspace slug
↳ uuidstringWorkspace UUID
↳ administratorbooleanWhether the caller administers the workspace
↳ selfUrlstringWorkspace API URL
↳ avatarUrlstringWorkspace avatar URL

Bitbucket List Repositories

List repositories in a Bitbucket Cloud workspace

Input

ParameterTypeRequiredDescription
workspaceSlugstringYesBitbucket workspace slug or UUID
rolestringNoCaller role filter: admin, contributor, member, or owner
qstringNoBitbucket filtering expression
sortstringNoBitbucket sort expression
nextUrlstringNoOpaque next-page URL returned by a previous Bitbucket call
pageLennumberNoResults per page (1-100)

Output

ParameterTypeDescription
pageobjectPagination information
↳ sizenumberTotal result count reported by Bitbucket
↳ pagenumberCurrent page number
↳ pageLennumberNumber of results requested per page
↳ nextUrlstringValidated URL for the next page
↳ previousUrlstringValidated URL for the previous page
itemsarrayRepositories
↳ typestringBitbucket repository object type
↳ uuidstringRepository UUID
↳ slugstringRepository slug
↳ namestringRepository name
↳ fullNamestringWorkspace and repository full name
↳ descriptionstringRepository description
↳ isPrivatebooleanWhether the repository is private
↳ scmstringSource control system
↳ languagestringPrimary repository language
↳ sizenumberRepository size in bytes
↳ createdOnstringRepository creation timestamp
↳ updatedOnstringRepository update timestamp
↳ mainBranchstringMain branch name
↳ ownerobjectRepository owner
↳ typestringBitbucket account object type
↳ uuidstringBitbucket account UUID
↳ accountIdstringAtlassian account ID
↳ displayNamestringAccount display name
↳ createdOnstringAccount creation timestamp
↳ selfUrlstringAccount API URL
↳ htmlUrlstringAccount web URL
↳ avatarUrlstringAccount avatar URL
↳ projectobjectContaining Bitbucket project
↳ uuidstringProject UUID
↳ keystringProject key
↳ namestringProject name
↳ selfUrlstringRepository API URL
↳ htmlUrlstringRepository web URL

Bitbucket Get Repository

Get a Bitbucket Cloud repository

Input

ParameterTypeRequiredDescription
workspaceSlugstringYesBitbucket workspace slug or UUID
repoSlugstringYesBitbucket repository slug or UUID

Output

ParameterTypeDescription
repositoryobjectRepository details
↳ typestringBitbucket repository object type
↳ uuidstringRepository UUID
↳ slugstringRepository slug
↳ namestringRepository name
↳ fullNamestringWorkspace and repository full name
↳ descriptionstringRepository description
↳ isPrivatebooleanWhether the repository is private
↳ scmstringSource control system
↳ languagestringPrimary repository language
↳ sizenumberRepository size in bytes
↳ createdOnstringRepository creation timestamp
↳ updatedOnstringRepository update timestamp
↳ mainBranchstringMain branch name
↳ ownerobjectRepository owner
↳ typestringBitbucket account object type
↳ uuidstringBitbucket account UUID
↳ accountIdstringAtlassian account ID
↳ displayNamestringAccount display name
↳ createdOnstringAccount creation timestamp
↳ selfUrlstringAccount API URL
↳ htmlUrlstringAccount web URL
↳ avatarUrlstringAccount avatar URL
↳ projectobjectContaining Bitbucket project
↳ uuidstringProject UUID
↳ keystringProject key
↳ namestringProject name
↳ selfUrlstringRepository API URL
↳ htmlUrlstringRepository web URL

Bitbucket List Branches

List branches in a Bitbucket Cloud repository

Input

ParameterTypeRequiredDescription
workspaceSlugstringYesBitbucket workspace slug or UUID
repoSlugstringYesBitbucket repository slug or UUID
qstringNoBitbucket branch filtering expression
sortstringNoBitbucket branch sort expression
nextUrlstringNoOpaque next-page URL returned by a previous Bitbucket call
pageLennumberNoResults per page (1-100)

Output

ParameterTypeDescription
pageobjectPagination information
↳ sizenumberTotal result count reported by Bitbucket
↳ pagenumberCurrent page number
↳ pageLennumberNumber of results requested per page
↳ nextUrlstringValidated URL for the next page
↳ previousUrlstringValidated URL for the previous page
itemsarrayBranches
↳ typestringBitbucket branch object type
↳ namestringBranch name
↳ targetobjectCommit targeted by the branch
↳ typestringBitbucket commit object type
↳ hashstringCommit hash
↳ datestringCommit timestamp
↳ messagestringFull commit message
↳ summarystringRaw commit summary
↳ authorRawstringRaw author value stored by Git
↳ authorobjectMatched Bitbucket account, when available
↳ typestringBitbucket account object type
↳ uuidstringBitbucket account UUID
↳ accountIdstringAtlassian account ID
↳ displayNamestringAccount display name
↳ createdOnstringAccount creation timestamp
↳ selfUrlstringAccount API URL
↳ htmlUrlstringAccount web URL
↳ avatarUrlstringAccount avatar URL
↳ committerRawstringRaw committer value stored by Git
↳ committerobjectMatched Bitbucket committer account, when available
↳ typestringBitbucket account object type
↳ uuidstringBitbucket account UUID
↳ accountIdstringAtlassian account ID
↳ displayNamestringAccount display name
↳ createdOnstringAccount creation timestamp
↳ selfUrlstringAccount API URL
↳ htmlUrlstringAccount web URL
↳ avatarUrlstringAccount avatar URL
↳ parentsarrayParent commits
↳ hashstringParent commit hash
↳ selfUrlstringCommit API URL
↳ htmlUrlstringCommit web URL
↳ mergeStrategiesarrayMerge strategies available for the branch
↳ defaultMergeStrategystringDefault merge strategy
↳ selfUrlstringBranch API URL
↳ htmlUrlstringBranch web URL

Bitbucket Create Branch

Create a branch at a commit hash or existing ref

Input

ParameterTypeRequiredDescription
workspaceSlugstringYesBitbucket workspace slug or UUID
repoSlugstringYesBitbucket repository slug or UUID
namestringYesNew branch name without refs/heads prefix
targetstringYesFull commit hash or existing ref to target

Output

ParameterTypeDescription
branchobjectCreated branch
↳ typestringBitbucket branch object type
↳ namestringBranch name
↳ targetobjectCommit targeted by the branch
↳ typestringBitbucket commit object type
↳ hashstringCommit hash
↳ datestringCommit timestamp
↳ messagestringFull commit message
↳ summarystringRaw commit summary
↳ authorRawstringRaw author value stored by Git
↳ authorobjectMatched Bitbucket account, when available
↳ typestringBitbucket account object type
↳ uuidstringBitbucket account UUID
↳ accountIdstringAtlassian account ID
↳ displayNamestringAccount display name
↳ createdOnstringAccount creation timestamp
↳ selfUrlstringAccount API URL
↳ htmlUrlstringAccount web URL
↳ avatarUrlstringAccount avatar URL
↳ committerRawstringRaw committer value stored by Git
↳ committerobjectMatched Bitbucket committer account, when available
↳ typestringBitbucket account object type
↳ uuidstringBitbucket account UUID
↳ accountIdstringAtlassian account ID
↳ displayNamestringAccount display name
↳ createdOnstringAccount creation timestamp
↳ selfUrlstringAccount API URL
↳ htmlUrlstringAccount web URL
↳ avatarUrlstringAccount avatar URL
↳ parentsarrayParent commits
↳ hashstringParent commit hash
↳ selfUrlstringCommit API URL
↳ htmlUrlstringCommit web URL
↳ mergeStrategiesarrayMerge strategies available for the branch
↳ defaultMergeStrategystringDefault merge strategy
↳ selfUrlstringBranch API URL
↳ htmlUrlstringBranch web URL

Bitbucket Delete Branch

Delete a branch from a Bitbucket Cloud repository

Input

ParameterTypeRequiredDescription
workspaceSlugstringYesBitbucket workspace slug or UUID
repoSlugstringYesBitbucket repository slug or UUID
namestringYesBranch name to delete

Output

ParameterTypeDescription
deletedbooleanWhether the branch was deleted

Bitbucket List Commits

List repository commits in reverse chronological order

Input

ParameterTypeRequiredDescription
workspaceSlugstringYesBitbucket workspace slug or UUID
repoSlugstringYesBitbucket repository slug or UUID
nextUrlstringNoOpaque next-page URL returned by a previous Bitbucket call
pageLennumberNoResults per page (1-100)

Output

ParameterTypeDescription
pageobjectPagination information
↳ sizenumberTotal result count reported by Bitbucket
↳ pagenumberCurrent page number
↳ pageLennumberNumber of results requested per page
↳ nextUrlstringValidated URL for the next page
↳ previousUrlstringValidated URL for the previous page
itemsarrayCommits
↳ typestringBitbucket commit object type
↳ hashstringCommit hash
↳ datestringCommit timestamp
↳ messagestringFull commit message
↳ summarystringRaw commit summary
↳ authorRawstringRaw author value stored by Git
↳ authorobjectMatched Bitbucket account, when available
↳ typestringBitbucket account object type
↳ uuidstringBitbucket account UUID
↳ accountIdstringAtlassian account ID
↳ displayNamestringAccount display name
↳ createdOnstringAccount creation timestamp
↳ selfUrlstringAccount API URL
↳ htmlUrlstringAccount web URL
↳ avatarUrlstringAccount avatar URL
↳ committerRawstringRaw committer value stored by Git
↳ committerobjectMatched Bitbucket committer account, when available
↳ typestringBitbucket account object type
↳ uuidstringBitbucket account UUID
↳ accountIdstringAtlassian account ID
↳ displayNamestringAccount display name
↳ createdOnstringAccount creation timestamp
↳ selfUrlstringAccount API URL
↳ htmlUrlstringAccount web URL
↳ avatarUrlstringAccount avatar URL
↳ parentsarrayParent commits
↳ hashstringParent commit hash
↳ selfUrlstringCommit API URL
↳ htmlUrlstringCommit web URL

Bitbucket Get Commit

Get a repository commit by its full SHA-1

Input

ParameterTypeRequiredDescription
workspaceSlugstringYesBitbucket workspace slug or UUID
repoSlugstringYesBitbucket repository slug or UUID
commitstringYesFull 40-character commit SHA-1

Output

ParameterTypeDescription
commitobjectCommit details
↳ typestringBitbucket commit object type
↳ hashstringCommit hash
↳ datestringCommit timestamp
↳ messagestringFull commit message
↳ summarystringRaw commit summary
↳ authorRawstringRaw author value stored by Git
↳ authorobjectMatched Bitbucket account, when available
↳ typestringBitbucket account object type
↳ uuidstringBitbucket account UUID
↳ accountIdstringAtlassian account ID
↳ displayNamestringAccount display name
↳ createdOnstringAccount creation timestamp
↳ selfUrlstringAccount API URL
↳ htmlUrlstringAccount web URL
↳ avatarUrlstringAccount avatar URL
↳ committerRawstringRaw committer value stored by Git
↳ committerobjectMatched Bitbucket committer account, when available
↳ typestringBitbucket account object type
↳ uuidstringBitbucket account UUID
↳ accountIdstringAtlassian account ID
↳ displayNamestringAccount display name
↳ createdOnstringAccount creation timestamp
↳ selfUrlstringAccount API URL
↳ htmlUrlstringAccount web URL
↳ avatarUrlstringAccount avatar URL
↳ parentsarrayParent commits
↳ hashstringParent commit hash
↳ selfUrlstringCommit API URL
↳ htmlUrlstringCommit web URL

Bitbucket List Directory

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

Input

ParameterTypeRequiredDescription
workspaceSlugstringYesBitbucket workspace slug or UUID
repoSlugstringYesBitbucket repository slug or UUID
commitstringYesFull 40-character commit SHA-1
pathstringNoRepository-relative directory path; omit for the root
qstringNoBitbucket tree-entry filtering expression
sortstringNoBitbucket tree-entry sort expression
nextUrlstringNoOpaque next-page URL returned by a previous Bitbucket call
pageLennumberNoResults per page (1-100)

Output

ParameterTypeDescription
pageobjectPagination information
↳ sizenumberTotal result count reported by Bitbucket
↳ pagenumberCurrent page number
↳ pageLennumberNumber of results requested per page
↳ nextUrlstringValidated URL for the next page
↳ previousUrlstringValidated URL for the previous page
itemsarrayDirectory entries
↳ typestringEntry type, such as commit_file or commit_directory
↳ pathstringRepository-relative path
↳ commitHashstringResolved commit hash
↳ sizenumberFile size in bytes when the entry is a file
↳ attributesarrayFile attributes when the entry is a file
↳ isBinarybooleanWhether file attributes include the binary marker
↳ selfUrlstringSource API URL
↳ metadataUrlstringSource metadata API URL

Bitbucket Get File Metadata

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

Input

ParameterTypeRequiredDescription
workspaceSlugstringYesBitbucket workspace slug or UUID
repoSlugstringYesBitbucket repository slug or UUID
commitstringYesFull 40-character commit SHA-1
pathstringYesRepository-relative file path

Output

ParameterTypeDescription
fileobjectFile metadata
↳ typestringEntry type (commit_file)
↳ pathstringRepository-relative path
↳ commitHashstringResolved commit hash
↳ escapedPathstringEscaped display path
↳ sizenumberFile size in bytes
↳ attributesarrayFile attributes reported by Bitbucket
↳ isBinarybooleanWhether the documented attributes include the binary marker

Bitbucket Get File

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

Input

ParameterTypeRequiredDescription
workspaceSlugstringYesBitbucket workspace slug or UUID
repoSlugstringYesBitbucket repository slug or UUID
commitstringYesFull 40-character commit SHA-1
pathstringYesRepository-relative file path
maxCharactersnumberNoMaximum text characters to return (1-500000)

Output

ParameterTypeDescription
contentstringBounded UTF-8 file text; null for binary content
binarybooleanWhether documented metadata identifies binary content; null when unknown
truncatedbooleanWhether later content was omitted; null when binary size is unknown
returnedBytesnumberProvider bytes read for the returned file
fullBytesnumberFull file byte size when reported
contentTypestringResponse MIME type

Bitbucket List Pull Requests

List pull requests in a Bitbucket Cloud repository

Input

ParameterTypeRequiredDescription
workspaceSlugstringYesBitbucket workspace slug or UUID
repoSlugstringYesBitbucket repository slug or UUID
statestringNoState filter: OPEN, MERGED, DECLINED, or SUPERSEDED
qstringNoBitbucket pull request filtering expression
sortstringNoBitbucket pull request sort expression
nextUrlstringNoOpaque next-page URL returned by a previous Bitbucket call
pageLennumberNoResults per page (1-100)

Output

ParameterTypeDescription
pageobjectPagination information
↳ sizenumberTotal result count reported by Bitbucket
↳ pagenumberCurrent page number
↳ pageLennumberNumber of results requested per page
↳ nextUrlstringValidated URL for the next page
↳ previousUrlstringValidated URL for the previous page
itemsarrayPull requests
↳ typestringBitbucket pull request object type
↳ idnumberRepository-scoped pull request ID
↳ titlestringPull request title
↳ descriptionstringPull request description
↳ statestringPull request state
↳ draftbooleanWhether the pull request is a draft
↳ queuedbooleanWhether the pull request is queued
↳ authorobjectPull request author
↳ typestringBitbucket account object type
↳ uuidstringBitbucket account UUID
↳ accountIdstringAtlassian account ID
↳ displayNamestringAccount display name
↳ createdOnstringAccount creation timestamp
↳ selfUrlstringAccount API URL
↳ htmlUrlstringAccount web URL
↳ avatarUrlstringAccount avatar URL
↳ closedByobjectAccount that closed the pull request
↳ typestringBitbucket account object type
↳ uuidstringBitbucket account UUID
↳ accountIdstringAtlassian account ID
↳ displayNamestringAccount display name
↳ createdOnstringAccount creation timestamp
↳ selfUrlstringAccount API URL
↳ htmlUrlstringAccount web URL
↳ avatarUrlstringAccount avatar URL
↳ sourceobjectSource endpoint
↳ branchNamestringBranch name
↳ commitHashstringCommit hash
↳ repositoryUuidstringRepository UUID
↳ repositoryFullNamestringRepository full name
↳ destinationobjectDestination endpoint
↳ branchNamestringBranch name
↳ commitHashstringCommit hash
↳ repositoryUuidstringRepository UUID
↳ repositoryFullNamestringRepository full name
↳ mergeCommitHashstringMerge commit hash
↳ commentCountnumberComment count
↳ taskCountnumberOpen task count
↳ closeSourceBranchbooleanWhether merging closes the source branch
↳ reasonstringReason the pull request was declined
↳ createdOnstringCreation timestamp
↳ updatedOnstringUpdate timestamp
↳ reviewersarrayExplicit reviewers
↳ typestringBitbucket account object type
↳ uuidstringBitbucket account UUID
↳ accountIdstringAtlassian account ID
↳ displayNamestringAccount display name
↳ createdOnstringAccount creation timestamp
↳ selfUrlstringAccount API URL
↳ htmlUrlstringAccount web URL
↳ avatarUrlstringAccount avatar URL
↳ participantsarrayPull request participants
↳ typestringBitbucket participant object type
↳ userobjectParticipating account
↳ typestringBitbucket account object type
↳ uuidstringBitbucket account UUID
↳ accountIdstringAtlassian account ID
↳ displayNamestringAccount display name
↳ createdOnstringAccount creation timestamp
↳ selfUrlstringAccount API URL
↳ htmlUrlstringAccount web URL
↳ avatarUrlstringAccount avatar URL
↳ rolestringParticipant role
↳ approvedbooleanWhether the participant approved
↳ statestringReview state
↳ participatedOnstringTimestamp of the participant action
↳ selfUrlstringPull request API URL
↳ htmlUrlstringPull request web URL

Bitbucket Get Pull Request

Get a pull request by repository-scoped ID

Input

ParameterTypeRequiredDescription
workspaceSlugstringYesBitbucket workspace slug or UUID
repoSlugstringYesBitbucket repository slug or UUID
prIdnumberYesRepository-scoped pull request ID

Output

ParameterTypeDescription
pullRequestobjectPull request details
↳ typestringBitbucket pull request object type
↳ idnumberRepository-scoped pull request ID
↳ titlestringPull request title
↳ descriptionstringPull request description
↳ statestringPull request state
↳ draftbooleanWhether the pull request is a draft
↳ queuedbooleanWhether the pull request is queued
↳ authorobjectPull request author
↳ typestringBitbucket account object type
↳ uuidstringBitbucket account UUID
↳ accountIdstringAtlassian account ID
↳ displayNamestringAccount display name
↳ createdOnstringAccount creation timestamp
↳ selfUrlstringAccount API URL
↳ htmlUrlstringAccount web URL
↳ avatarUrlstringAccount avatar URL
↳ closedByobjectAccount that closed the pull request
↳ typestringBitbucket account object type
↳ uuidstringBitbucket account UUID
↳ accountIdstringAtlassian account ID
↳ displayNamestringAccount display name
↳ createdOnstringAccount creation timestamp
↳ selfUrlstringAccount API URL
↳ htmlUrlstringAccount web URL
↳ avatarUrlstringAccount avatar URL
↳ sourceobjectSource endpoint
↳ branchNamestringBranch name
↳ commitHashstringCommit hash
↳ repositoryUuidstringRepository UUID
↳ repositoryFullNamestringRepository full name
↳ destinationobjectDestination endpoint
↳ branchNamestringBranch name
↳ commitHashstringCommit hash
↳ repositoryUuidstringRepository UUID
↳ repositoryFullNamestringRepository full name
↳ mergeCommitHashstringMerge commit hash
↳ commentCountnumberComment count
↳ taskCountnumberOpen task count
↳ closeSourceBranchbooleanWhether merging closes the source branch
↳ reasonstringReason the pull request was declined
↳ createdOnstringCreation timestamp
↳ updatedOnstringUpdate timestamp
↳ reviewersarrayExplicit reviewers
↳ typestringBitbucket account object type
↳ uuidstringBitbucket account UUID
↳ accountIdstringAtlassian account ID
↳ displayNamestringAccount display name
↳ createdOnstringAccount creation timestamp
↳ selfUrlstringAccount API URL
↳ htmlUrlstringAccount web URL
↳ avatarUrlstringAccount avatar URL
↳ participantsarrayPull request participants
↳ typestringBitbucket participant object type
↳ userobjectParticipating account
↳ typestringBitbucket account object type
↳ uuidstringBitbucket account UUID
↳ accountIdstringAtlassian account ID
↳ displayNamestringAccount display name
↳ createdOnstringAccount creation timestamp
↳ selfUrlstringAccount API URL
↳ htmlUrlstringAccount web URL
↳ avatarUrlstringAccount avatar URL
↳ rolestringParticipant role
↳ approvedbooleanWhether the participant approved
↳ statestringReview state
↳ participatedOnstringTimestamp of the participant action
↳ selfUrlstringPull request API URL
↳ htmlUrlstringPull request web URL

Bitbucket Create Pull Request

Create a pull request between repository branches

Input

ParameterTypeRequiredDescription
workspaceSlugstringYesBitbucket workspace slug or UUID
repoSlugstringYesBitbucket repository slug or UUID
titlestringYesPull request title
sourceBranchstringYesSource branch name
destinationBranchstringYesDestination branch name
descriptionstringNoPull request description
closeSourceBranchbooleanNoClose the source branch after merge
draftbooleanNoCreate the pull request as a draft
reviewerUuidsarrayNoBitbucket account UUIDs to add as reviewers

Output

ParameterTypeDescription
pullRequestobjectCreated pull request
↳ typestringBitbucket pull request object type
↳ idnumberRepository-scoped pull request ID
↳ titlestringPull request title
↳ descriptionstringPull request description
↳ statestringPull request state
↳ draftbooleanWhether the pull request is a draft
↳ queuedbooleanWhether the pull request is queued
↳ authorobjectPull request author
↳ typestringBitbucket account object type
↳ uuidstringBitbucket account UUID
↳ accountIdstringAtlassian account ID
↳ displayNamestringAccount display name
↳ createdOnstringAccount creation timestamp
↳ selfUrlstringAccount API URL
↳ htmlUrlstringAccount web URL
↳ avatarUrlstringAccount avatar URL
↳ closedByobjectAccount that closed the pull request
↳ typestringBitbucket account object type
↳ uuidstringBitbucket account UUID
↳ accountIdstringAtlassian account ID
↳ displayNamestringAccount display name
↳ createdOnstringAccount creation timestamp
↳ selfUrlstringAccount API URL
↳ htmlUrlstringAccount web URL
↳ avatarUrlstringAccount avatar URL
↳ sourceobjectSource endpoint
↳ branchNamestringBranch name
↳ commitHashstringCommit hash
↳ repositoryUuidstringRepository UUID
↳ repositoryFullNamestringRepository full name
↳ destinationobjectDestination endpoint
↳ branchNamestringBranch name
↳ commitHashstringCommit hash
↳ repositoryUuidstringRepository UUID
↳ repositoryFullNamestringRepository full name
↳ mergeCommitHashstringMerge commit hash
↳ commentCountnumberComment count
↳ taskCountnumberOpen task count
↳ closeSourceBranchbooleanWhether merging closes the source branch
↳ reasonstringReason the pull request was declined
↳ createdOnstringCreation timestamp
↳ updatedOnstringUpdate timestamp
↳ reviewersarrayExplicit reviewers
↳ typestringBitbucket account object type
↳ uuidstringBitbucket account UUID
↳ accountIdstringAtlassian account ID
↳ displayNamestringAccount display name
↳ createdOnstringAccount creation timestamp
↳ selfUrlstringAccount API URL
↳ htmlUrlstringAccount web URL
↳ avatarUrlstringAccount avatar URL
↳ participantsarrayPull request participants
↳ typestringBitbucket participant object type
↳ userobjectParticipating account
↳ typestringBitbucket account object type
↳ uuidstringBitbucket account UUID
↳ accountIdstringAtlassian account ID
↳ displayNamestringAccount display name
↳ createdOnstringAccount creation timestamp
↳ selfUrlstringAccount API URL
↳ htmlUrlstringAccount web URL
↳ avatarUrlstringAccount avatar URL
↳ rolestringParticipant role
↳ approvedbooleanWhether the participant approved
↳ statestringReview state
↳ participatedOnstringTimestamp of the participant action
↳ selfUrlstringPull request API URL
↳ htmlUrlstringPull request web URL

Bitbucket Merge Pull Request

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

Input

ParameterTypeRequiredDescription
workspaceSlugstringYesBitbucket workspace slug or UUID
repoSlugstringYesBitbucket repository slug or UUID
prIdnumberYesRepository-scoped pull request ID
mergeStrategystringNoMerge strategy: merge_commit, squash, fast_forward, squash_fast_forward, rebase_fast_forward, or rebase_merge
messagestringNoMerge commit message (maximum 128 KiB encoded as UTF-8)
closeSourceBranchbooleanNoDelete the source branch after merging

Output

ParameterTypeDescription
statusstringWhether the merge completed or remains pending
taskIdstringAsync merge task ID
taskUrlstringValidated task polling URL
pullRequestobjectMerged pull request when completed synchronously
↳ typestringBitbucket pull request object type
↳ idnumberRepository-scoped pull request ID
↳ titlestringPull request title
↳ descriptionstringPull request description
↳ statestringPull request state
↳ draftbooleanWhether the pull request is a draft
↳ queuedbooleanWhether the pull request is queued
↳ authorobjectPull request author
↳ typestringBitbucket account object type
↳ uuidstringBitbucket account UUID
↳ accountIdstringAtlassian account ID
↳ displayNamestringAccount display name
↳ createdOnstringAccount creation timestamp
↳ selfUrlstringAccount API URL
↳ htmlUrlstringAccount web URL
↳ avatarUrlstringAccount avatar URL
↳ closedByobjectAccount that closed the pull request
↳ typestringBitbucket account object type
↳ uuidstringBitbucket account UUID
↳ accountIdstringAtlassian account ID
↳ displayNamestringAccount display name
↳ createdOnstringAccount creation timestamp
↳ selfUrlstringAccount API URL
↳ htmlUrlstringAccount web URL
↳ avatarUrlstringAccount avatar URL
↳ sourceobjectSource endpoint
↳ branchNamestringBranch name
↳ commitHashstringCommit hash
↳ repositoryUuidstringRepository UUID
↳ repositoryFullNamestringRepository full name
↳ destinationobjectDestination endpoint
↳ branchNamestringBranch name
↳ commitHashstringCommit hash
↳ repositoryUuidstringRepository UUID
↳ repositoryFullNamestringRepository full name
↳ mergeCommitHashstringMerge commit hash
↳ commentCountnumberComment count
↳ taskCountnumberOpen task count
↳ closeSourceBranchbooleanWhether merging closes the source branch
↳ reasonstringReason the pull request was declined
↳ createdOnstringCreation timestamp
↳ updatedOnstringUpdate timestamp
↳ reviewersarrayExplicit reviewers
↳ typestringBitbucket account object type
↳ uuidstringBitbucket account UUID
↳ accountIdstringAtlassian account ID
↳ displayNamestringAccount display name
↳ createdOnstringAccount creation timestamp
↳ selfUrlstringAccount API URL
↳ htmlUrlstringAccount web URL
↳ avatarUrlstringAccount avatar URL
↳ participantsarrayPull request participants
↳ typestringBitbucket participant object type
↳ userobjectParticipating account
↳ typestringBitbucket account object type
↳ uuidstringBitbucket account UUID
↳ accountIdstringAtlassian account ID
↳ displayNamestringAccount display name
↳ createdOnstringAccount creation timestamp
↳ selfUrlstringAccount API URL
↳ htmlUrlstringAccount web URL
↳ avatarUrlstringAccount avatar URL
↳ rolestringParticipant role
↳ approvedbooleanWhether the participant approved
↳ statestringReview state
↳ participatedOnstringTimestamp of the participant action
↳ selfUrlstringPull request API URL
↳ htmlUrlstringPull request web URL

Bitbucket Get Merge Task Status

Poll the status of an asynchronous pull request merge task

Input

ParameterTypeRequiredDescription
workspaceSlugstringYesBitbucket workspace slug or UUID
repoSlugstringYesBitbucket repository slug or UUID
prIdnumberYesRepository-scoped pull request ID
taskIdstringYesMerge task ID returned by Bitbucket Merge Pull Request

Output

ParameterTypeDescription
taskStatusstringPENDING or SUCCESS
selfUrlstringMerge task API URL
mergeResultobjectMerged pull request when the task succeeds
↳ typestringBitbucket pull request object type
↳ idnumberRepository-scoped pull request ID
↳ titlestringPull request title
↳ descriptionstringPull request description
↳ statestringPull request state
↳ draftbooleanWhether the pull request is a draft
↳ queuedbooleanWhether the pull request is queued
↳ authorobjectPull request author
↳ typestringBitbucket account object type
↳ uuidstringBitbucket account UUID
↳ accountIdstringAtlassian account ID
↳ displayNamestringAccount display name
↳ createdOnstringAccount creation timestamp
↳ selfUrlstringAccount API URL
↳ htmlUrlstringAccount web URL
↳ avatarUrlstringAccount avatar URL
↳ closedByobjectAccount that closed the pull request
↳ typestringBitbucket account object type
↳ uuidstringBitbucket account UUID
↳ accountIdstringAtlassian account ID
↳ displayNamestringAccount display name
↳ createdOnstringAccount creation timestamp
↳ selfUrlstringAccount API URL
↳ htmlUrlstringAccount web URL
↳ avatarUrlstringAccount avatar URL
↳ sourceobjectSource endpoint
↳ branchNamestringBranch name
↳ commitHashstringCommit hash
↳ repositoryUuidstringRepository UUID
↳ repositoryFullNamestringRepository full name
↳ destinationobjectDestination endpoint
↳ branchNamestringBranch name
↳ commitHashstringCommit hash
↳ repositoryUuidstringRepository UUID
↳ repositoryFullNamestringRepository full name
↳ mergeCommitHashstringMerge commit hash
↳ commentCountnumberComment count
↳ taskCountnumberOpen task count
↳ closeSourceBranchbooleanWhether merging closes the source branch
↳ reasonstringReason the pull request was declined
↳ createdOnstringCreation timestamp
↳ updatedOnstringUpdate timestamp
↳ reviewersarrayExplicit reviewers
↳ typestringBitbucket account object type
↳ uuidstringBitbucket account UUID
↳ accountIdstringAtlassian account ID
↳ displayNamestringAccount display name
↳ createdOnstringAccount creation timestamp
↳ selfUrlstringAccount API URL
↳ htmlUrlstringAccount web URL
↳ avatarUrlstringAccount avatar URL
↳ participantsarrayPull request participants
↳ typestringBitbucket participant object type
↳ userobjectParticipating account
↳ typestringBitbucket account object type
↳ uuidstringBitbucket account UUID
↳ accountIdstringAtlassian account ID
↳ displayNamestringAccount display name
↳ createdOnstringAccount creation timestamp
↳ selfUrlstringAccount API URL
↳ htmlUrlstringAccount web URL
↳ avatarUrlstringAccount avatar URL
↳ rolestringParticipant role
↳ approvedbooleanWhether the participant approved
↳ statestringReview state
↳ participatedOnstringTimestamp of the participant action
↳ selfUrlstringPull request API URL
↳ htmlUrlstringPull request web URL

Bitbucket Decline Pull Request

Decline an open pull request

Input

ParameterTypeRequiredDescription
workspaceSlugstringYesBitbucket workspace slug or UUID
repoSlugstringYesBitbucket repository slug or UUID
prIdnumberYesRepository-scoped pull request ID

Output

ParameterTypeDescription
pullRequestobjectDeclined pull request
↳ typestringBitbucket pull request object type
↳ idnumberRepository-scoped pull request ID
↳ titlestringPull request title
↳ descriptionstringPull request description
↳ statestringPull request state
↳ draftbooleanWhether the pull request is a draft
↳ queuedbooleanWhether the pull request is queued
↳ authorobjectPull request author
↳ typestringBitbucket account object type
↳ uuidstringBitbucket account UUID
↳ accountIdstringAtlassian account ID
↳ displayNamestringAccount display name
↳ createdOnstringAccount creation timestamp
↳ selfUrlstringAccount API URL
↳ htmlUrlstringAccount web URL
↳ avatarUrlstringAccount avatar URL
↳ closedByobjectAccount that closed the pull request
↳ typestringBitbucket account object type
↳ uuidstringBitbucket account UUID
↳ accountIdstringAtlassian account ID
↳ displayNamestringAccount display name
↳ createdOnstringAccount creation timestamp
↳ selfUrlstringAccount API URL
↳ htmlUrlstringAccount web URL
↳ avatarUrlstringAccount avatar URL
↳ sourceobjectSource endpoint
↳ branchNamestringBranch name
↳ commitHashstringCommit hash
↳ repositoryUuidstringRepository UUID
↳ repositoryFullNamestringRepository full name
↳ destinationobjectDestination endpoint
↳ branchNamestringBranch name
↳ commitHashstringCommit hash
↳ repositoryUuidstringRepository UUID
↳ repositoryFullNamestringRepository full name
↳ mergeCommitHashstringMerge commit hash
↳ commentCountnumberComment count
↳ taskCountnumberOpen task count
↳ closeSourceBranchbooleanWhether merging closes the source branch
↳ reasonstringReason the pull request was declined
↳ createdOnstringCreation timestamp
↳ updatedOnstringUpdate timestamp
↳ reviewersarrayExplicit reviewers
↳ typestringBitbucket account object type
↳ uuidstringBitbucket account UUID
↳ accountIdstringAtlassian account ID
↳ displayNamestringAccount display name
↳ createdOnstringAccount creation timestamp
↳ selfUrlstringAccount API URL
↳ htmlUrlstringAccount web URL
↳ avatarUrlstringAccount avatar URL
↳ participantsarrayPull request participants
↳ typestringBitbucket participant object type
↳ userobjectParticipating account
↳ typestringBitbucket account object type
↳ uuidstringBitbucket account UUID
↳ accountIdstringAtlassian account ID
↳ displayNamestringAccount display name
↳ createdOnstringAccount creation timestamp
↳ selfUrlstringAccount API URL
↳ htmlUrlstringAccount web URL
↳ avatarUrlstringAccount avatar URL
↳ rolestringParticipant role
↳ approvedbooleanWhether the participant approved
↳ statestringReview state
↳ participatedOnstringTimestamp of the participant action
↳ selfUrlstringPull request API URL
↳ htmlUrlstringPull request web URL

Bitbucket Approve Pull Request

Approve a pull request as the authenticated account

Input

ParameterTypeRequiredDescription
workspaceSlugstringYesBitbucket workspace slug or UUID
repoSlugstringYesBitbucket repository slug or UUID
prIdnumberYesRepository-scoped pull request ID

Output

ParameterTypeDescription
participantobjectApproval participant record
↳ typestringBitbucket participant object type
↳ userobjectParticipating account
↳ typestringBitbucket account object type
↳ uuidstringBitbucket account UUID
↳ accountIdstringAtlassian account ID
↳ displayNamestringAccount display name
↳ createdOnstringAccount creation timestamp
↳ selfUrlstringAccount API URL
↳ htmlUrlstringAccount web URL
↳ avatarUrlstringAccount avatar URL
↳ rolestringParticipant role
↳ approvedbooleanWhether the participant approved
↳ statestringReview state
↳ participatedOnstringTimestamp of the participant action

Bitbucket Request Pull Request Changes

Request changes on a pull request as the authenticated account

Input

ParameterTypeRequiredDescription
workspaceSlugstringYesBitbucket workspace slug or UUID
repoSlugstringYesBitbucket repository slug or UUID
prIdnumberYesRepository-scoped pull request ID

Output

ParameterTypeDescription
participantobjectChange-request participant record
↳ typestringBitbucket participant object type
↳ userobjectParticipating account
↳ typestringBitbucket account object type
↳ uuidstringBitbucket account UUID
↳ accountIdstringAtlassian account ID
↳ displayNamestringAccount display name
↳ createdOnstringAccount creation timestamp
↳ selfUrlstringAccount API URL
↳ htmlUrlstringAccount web URL
↳ avatarUrlstringAccount avatar URL
↳ rolestringParticipant role
↳ approvedbooleanWhether the participant approved
↳ statestringReview state
↳ participatedOnstringTimestamp of the participant action

Bitbucket Get Pull Request Diff

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

Input

ParameterTypeRequiredDescription
workspaceSlugstringYesBitbucket workspace slug or UUID
repoSlugstringYesBitbucket repository slug or UUID
prIdnumberYesRepository-scoped pull request ID
pathstringYesRepository-relative file path to include in the diff
maxCharactersnumberNoMaximum diff characters to return (1-500000)

Output

ParameterTypeDescription
diffstringBounded unified diff text decoded as UTF-8
decodingLossybooleanWhether invalid UTF-8 source bytes were replaced while decoding
truncatedbooleanWhether later diff text was omitted
returnedBytesnumberProvider bytes read for the returned diff
fullBytesnumberFull diff byte size when reported

Bitbucket Get Pull Request Diffstat

List per-file change statistics for a pull request

Input

ParameterTypeRequiredDescription
workspaceSlugstringYesBitbucket workspace slug or UUID
repoSlugstringYesBitbucket repository slug or UUID
prIdnumberYesRepository-scoped pull request ID
nextUrlstringNoOpaque next-page URL returned by a previous Bitbucket call
pageLennumberNoResults per page (1-100)

Output

ParameterTypeDescription
pageobjectPagination information
↳ sizenumberTotal result count reported by Bitbucket
↳ pagenumberCurrent page number
↳ pageLennumberNumber of results requested per page
↳ nextUrlstringValidated URL for the next page
↳ previousUrlstringValidated URL for the previous page
itemsarrayPer-file diff statistics
↳ typestringDiffstat object type
↳ statusstringFile change status
↳ linesAddednumberLines added
↳ linesRemovednumberLines removed
↳ oldPathstringOld file path
↳ newPathstringNew file path
↳ oldCommitHashstringOld file commit hash
↳ newCommitHashstringNew file commit hash

Bitbucket List Pull Request Comments

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

Input

ParameterTypeRequiredDescription
workspaceSlugstringYesBitbucket workspace slug or UUID
repoSlugstringYesBitbucket repository slug or UUID
prIdnumberYesRepository-scoped pull request ID
qstringNoBitbucket comment filtering expression
sortstringNoBitbucket comment sort expression
nextUrlstringNoOpaque next-page URL returned by a previous Bitbucket call
pageLennumberNoResults per page (1-100)

Output

ParameterTypeDescription
pageobjectPagination information
↳ sizenumberTotal result count reported by Bitbucket
↳ pagenumberCurrent page number
↳ pageLennumberNumber of results requested per page
↳ nextUrlstringValidated URL for the next page
↳ previousUrlstringValidated URL for the previous page
itemsarrayPull request comments
↳ typestringBitbucket comment object type
↳ idnumberComment ID
↳ createdOnstringCreation timestamp
↳ updatedOnstringUpdate timestamp
↳ contentstringRaw comment content
↳ userobjectComment author
↳ typestringBitbucket account object type
↳ uuidstringBitbucket account UUID
↳ accountIdstringAtlassian account ID
↳ displayNamestringAccount display name
↳ createdOnstringAccount creation timestamp
↳ selfUrlstringAccount API URL
↳ htmlUrlstringAccount web URL
↳ avatarUrlstringAccount avatar URL
↳ deletedbooleanWhether the comment was deleted
↳ parentIdnumberParent comment ID
↳ inlineobjectInline comment anchor
↳ pathstringAnchored file path
↳ fromnumberEnding line in the old file
↳ tonumberEnding line in the new file
↳ startFromnumberStarting line in the old file
↳ startTonumberStarting line in the new file
↳ pendingbooleanWhether the comment is pending
↳ resolutionobjectComment resolution details
↳ resolverobjectAccount that resolved the comment
↳ typestringBitbucket account object type
↳ uuidstringBitbucket account UUID
↳ accountIdstringAtlassian account ID
↳ displayNamestringAccount display name
↳ createdOnstringAccount creation timestamp
↳ selfUrlstringAccount API URL
↳ htmlUrlstringAccount web URL
↳ avatarUrlstringAccount avatar URL
↳ resolvedOnstringResolution timestamp
↳ selfUrlstringComment API URL
↳ htmlUrlstringComment web URL

Bitbucket Create Pull Request Comment

Create a global comment or reply on a pull request

Input

ParameterTypeRequiredDescription
workspaceSlugstringYesBitbucket workspace slug or UUID
repoSlugstringYesBitbucket repository slug or UUID
prIdnumberYesRepository-scoped pull request ID
contentstringYesRaw comment content
parentIdnumberNoParent comment ID when creating a reply

Output

ParameterTypeDescription
commentobjectCreated comment
↳ typestringBitbucket comment object type
↳ idnumberComment ID
↳ createdOnstringCreation timestamp
↳ updatedOnstringUpdate timestamp
↳ contentstringRaw comment content
↳ userobjectComment author
↳ typestringBitbucket account object type
↳ uuidstringBitbucket account UUID
↳ accountIdstringAtlassian account ID
↳ displayNamestringAccount display name
↳ createdOnstringAccount creation timestamp
↳ selfUrlstringAccount API URL
↳ htmlUrlstringAccount web URL
↳ avatarUrlstringAccount avatar URL
↳ deletedbooleanWhether the comment was deleted
↳ parentIdnumberParent comment ID
↳ inlineobjectInline comment anchor
↳ pathstringAnchored file path
↳ fromnumberEnding line in the old file
↳ tonumberEnding line in the new file
↳ startFromnumberStarting line in the old file
↳ startTonumberStarting line in the new file
↳ pendingbooleanWhether the comment is pending
↳ resolutionobjectComment resolution details
↳ resolverobjectAccount that resolved the comment
↳ typestringBitbucket account object type
↳ uuidstringBitbucket account UUID
↳ accountIdstringAtlassian account ID
↳ displayNamestringAccount display name
↳ createdOnstringAccount creation timestamp
↳ selfUrlstringAccount API URL
↳ htmlUrlstringAccount web URL
↳ avatarUrlstringAccount avatar URL
↳ resolvedOnstringResolution timestamp
↳ selfUrlstringComment API URL
↳ htmlUrlstringComment web URL

Bitbucket List Pull Request Commit Statuses

List commit statuses associated with a pull request

Input

ParameterTypeRequiredDescription
workspaceSlugstringYesBitbucket workspace slug or UUID
repoSlugstringYesBitbucket repository slug or UUID
prIdnumberYesRepository-scoped pull request ID
qstringNoBitbucket commit status filtering expression
sortstringNoBitbucket commit status sort expression
nextUrlstringNoOpaque next-page URL returned by a previous Bitbucket call
pageLennumberNoResults per page (1-100)

Output

ParameterTypeDescription
pageobjectPagination information
↳ sizenumberTotal result count reported by Bitbucket
↳ pagenumberCurrent page number
↳ pageLennumberNumber of results requested per page
↳ nextUrlstringValidated URL for the next page
↳ previousUrlstringValidated URL for the previous page
itemsarrayPull request commit statuses
↳ typestringBitbucket commit-status object type
↳ keystringVendor-unique status key
↳ refNamestringReference name at status creation time
↳ urlstringExternal build URL
↳ statestringCommit status state
↳ namestringBuild name
↳ descriptionstringBuild description
↳ createdOnstringCreation timestamp
↳ updatedOnstringUpdate timestamp
↳ selfUrlstringStatus API URL
↳ commitUrlstringCommit API URL

Bitbucket List Pipelines

List pipelines for a Bitbucket Cloud repository

Input

ParameterTypeRequiredDescription
workspaceSlugstringYesBitbucket workspace slug or UUID
repoSlugstringYesBitbucket repository slug or UUID
refTypestringNoReference type filter: BRANCH, TAG, or ANNOTATED_TAG
refNamestringNoReference name filter
commitHashstringNoFull 40-character target commit SHA-1 filter
selectorTypestringNoSelector type filter: BRANCH, TAG, CUSTOM, PULLREQUESTS, or DEFAULT
selectorPatternstringNoPipeline selector pattern filter
triggerTypestringNoTrigger filter: PUSH, MANUAL, SCHEDULED, or PARENT_STEP
statusstringNoPipeline status filter
sortstringNoBitbucket pipeline sort expression
nextUrlstringNoOpaque next-page URL returned by a previous Bitbucket call
pageLennumberNoResults per page (1-100)

Output

ParameterTypeDescription
pageobjectPagination information
↳ sizenumberTotal result count reported by Bitbucket
↳ pagenumberCurrent page number
↳ pageLennumberNumber of results requested per page
↳ nextUrlstringValidated URL for the next page
↳ previousUrlstringValidated URL for the previous page
itemsarrayPipelines
↳ typestringBitbucket pipeline object type
↳ uuidstringPipeline UUID
↳ buildNumbernumberPipeline build number
↳ creatorobjectPipeline creator
↳ typestringBitbucket account object type
↳ uuidstringBitbucket account UUID
↳ accountIdstringAtlassian account ID
↳ displayNamestringAccount display name
↳ createdOnstringAccount creation timestamp
↳ selfUrlstringAccount API URL
↳ htmlUrlstringAccount web URL
↳ avatarUrlstringAccount avatar URL
↳ repositoryFullNamestringRepository full name
↳ targetobjectPipeline target
↳ typestringTarget object type
↳ refTypestringReference type
↳ refNamestringReference name
↳ commitHashstringTarget commit hash
↳ selectorTypestringPipeline selector type
↳ selectorPatternstringPipeline selector pattern
↳ triggerTypestringPipeline trigger object type
↳ stateobjectPipeline state
↳ namestringState name
↳ stagestringIn-progress stage name
↳ resultstringCompleted result name
↳ errorKeystringCompleted-error key
↳ errorMessagestringCompleted-error message
↳ createdOnstringCreation timestamp
↳ completedOnstringCompletion timestamp
↳ buildSecondsUsednumberBuild seconds used
↳ selfUrlstringPipeline API URL
↳ stepsUrlstringPipeline steps API URL

Bitbucket Get Pipeline

Get a pipeline by UUID

Input

ParameterTypeRequiredDescription
workspaceSlugstringYesBitbucket workspace slug or UUID
repoSlugstringYesBitbucket repository slug or UUID
pipelineUuidstringYesPipeline UUID

Output

ParameterTypeDescription
pipelineobjectPipeline details
↳ typestringBitbucket pipeline object type
↳ uuidstringPipeline UUID
↳ buildNumbernumberPipeline build number
↳ creatorobjectPipeline creator
↳ typestringBitbucket account object type
↳ uuidstringBitbucket account UUID
↳ accountIdstringAtlassian account ID
↳ displayNamestringAccount display name
↳ createdOnstringAccount creation timestamp
↳ selfUrlstringAccount API URL
↳ htmlUrlstringAccount web URL
↳ avatarUrlstringAccount avatar URL
↳ repositoryFullNamestringRepository full name
↳ targetobjectPipeline target
↳ typestringTarget object type
↳ refTypestringReference type
↳ refNamestringReference name
↳ commitHashstringTarget commit hash
↳ selectorTypestringPipeline selector type
↳ selectorPatternstringPipeline selector pattern
↳ triggerTypestringPipeline trigger object type
↳ stateobjectPipeline state
↳ namestringState name
↳ stagestringIn-progress stage name
↳ resultstringCompleted result name
↳ errorKeystringCompleted-error key
↳ errorMessagestringCompleted-error message
↳ createdOnstringCreation timestamp
↳ completedOnstringCompletion timestamp
↳ buildSecondsUsednumberBuild seconds used
↳ selfUrlstringPipeline API URL
↳ stepsUrlstringPipeline steps API URL

Bitbucket Trigger Pipeline

Run the repository pipeline selected by a branch or ref target

Input

ParameterTypeRequiredDescription
workspaceSlugstringYesBitbucket workspace slug or UUID
repoSlugstringYesBitbucket repository slug or UUID
refTypestringYesReference type: branch, tag, named_branch, or bookmark
refNamestringYesReference name
commitHashstringNoFull 40-character commit SHA-1 to run in the reference context

Output

ParameterTypeDescription
pipelineobjectTriggered pipeline
↳ typestringBitbucket pipeline object type
↳ uuidstringPipeline UUID
↳ buildNumbernumberPipeline build number
↳ creatorobjectPipeline creator
↳ typestringBitbucket account object type
↳ uuidstringBitbucket account UUID
↳ accountIdstringAtlassian account ID
↳ displayNamestringAccount display name
↳ createdOnstringAccount creation timestamp
↳ selfUrlstringAccount API URL
↳ htmlUrlstringAccount web URL
↳ avatarUrlstringAccount avatar URL
↳ repositoryFullNamestringRepository full name
↳ targetobjectPipeline target
↳ typestringTarget object type
↳ refTypestringReference type
↳ refNamestringReference name
↳ commitHashstringTarget commit hash
↳ selectorTypestringPipeline selector type
↳ selectorPatternstringPipeline selector pattern
↳ triggerTypestringPipeline trigger object type
↳ stateobjectPipeline state
↳ namestringState name
↳ stagestringIn-progress stage name
↳ resultstringCompleted result name
↳ errorKeystringCompleted-error key
↳ errorMessagestringCompleted-error message
↳ createdOnstringCreation timestamp
↳ completedOnstringCompletion timestamp
↳ buildSecondsUsednumberBuild seconds used
↳ selfUrlstringPipeline API URL
↳ stepsUrlstringPipeline steps API URL

Bitbucket Stop Pipeline

Stop a running pipeline

Input

ParameterTypeRequiredDescription
workspaceSlugstringYesBitbucket workspace slug or UUID
repoSlugstringYesBitbucket repository slug or UUID
pipelineUuidstringYesPipeline UUID

Output

ParameterTypeDescription
stoppedbooleanWhether the stop request succeeded

Bitbucket List Pipeline Steps

List the steps in a pipeline

Input

ParameterTypeRequiredDescription
workspaceSlugstringYesBitbucket workspace slug or UUID
repoSlugstringYesBitbucket repository slug or UUID
pipelineUuidstringYesPipeline UUID
nextUrlstringNoOpaque next-page URL returned by a previous Bitbucket call
pageLennumberNoResults per page (1-100)

Output

ParameterTypeDescription
pageobjectPagination information
↳ sizenumberTotal result count reported by Bitbucket
↳ pagenumberCurrent page number
↳ pageLennumberNumber of results requested per page
↳ nextUrlstringValidated URL for the next page
↳ previousUrlstringValidated URL for the previous page
itemsarrayPipeline steps
↳ typestringBitbucket pipeline-step object type
↳ uuidstringPipeline step UUID
↳ startedOnstringStep start timestamp
↳ completedOnstringStep completion timestamp
↳ stateobjectPipeline step state
↳ namestringState name
↳ resultstringCompleted result name
↳ errorKeystringCompleted-error key
↳ errorMessagestringCompleted-error message
↳ imageNamestringBuild container image name
↳ setupCommandsarraySetup commands
↳ namestringCommand name
↳ commandstringExecutable command
↳ scriptCommandsarrayBuild script commands
↳ namestringCommand name
↳ commandstringExecutable command

Bitbucket Get Pipeline Step Log

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

Input

ParameterTypeRequiredDescription
workspaceSlugstringYesBitbucket workspace slug or UUID
repoSlugstringYesBitbucket repository slug or UUID
pipelineUuidstringYesPipeline UUID
stepUuidstringYesPipeline step UUID
maxCharactersnumberNoMaximum trailing log characters to return (1-200000)

Output

ParameterTypeDescription
logstringBounded trailing UTF-8 log text
truncatedbooleanWhether earlier log output was omitted
totalBytesnumberFull log byte size when reported

Triggers

A Trigger is a block that starts a workflow when an event happens in this service.

Bitbucket Build Status Created

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

Configuration

ParameterTypeRequiredDescription
triggerCredentialsstringYesThe Bitbucket account used to create and remove the repository webhook. Repository administrator access is required.
workspacePickerproject-selectorYesThe workspace containing the repository to monitor.
workspaceSlugInputstringYesEnter the workspace slug directly instead of selecting a workspace.
repositoryPickerproject-selectorYesThe repository where Sim creates the webhook.
repositorySlugInputstringYesEnter the repository slug directly instead of selecting a repository.

Output

ParameterTypeDescription
eventTypestringBitbucket event key from X-Event-Key
hookUuidstringUUID of the Bitbucket repository webhook
requestUuidstringBitbucket delivery request UUID
attemptNumbernumberBitbucket delivery attempt number
actorjsonUser or app that caused the event
repositoryjsonRepository where the event occurred
payloadjsonFull parsed Bitbucket webhook payload
commitStatusjsonBitbucket commit status object
commitHashstringHash of the commit with this status
statusKeystringKey identifying the build status
statusStatestringCurrent build status state
statusNamestringDisplay name of the build status
statusUrlstringURL associated with the build status

Bitbucket Build Status Updated

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

Configuration

ParameterTypeRequiredDescription
triggerCredentialsstringYesThe Bitbucket account used to create and remove the repository webhook. Repository administrator access is required.
workspacePickerproject-selectorYesThe workspace containing the repository to monitor.
workspaceSlugInputstringYesEnter the workspace slug directly instead of selecting a workspace.
repositoryPickerproject-selectorYesThe repository where Sim creates the webhook.
repositorySlugInputstringYesEnter the repository slug directly instead of selecting a repository.

Output

ParameterTypeDescription
eventTypestringBitbucket event key from X-Event-Key
hookUuidstringUUID of the Bitbucket repository webhook
requestUuidstringBitbucket delivery request UUID
attemptNumbernumberBitbucket delivery attempt number
actorjsonUser or app that caused the event
repositoryjsonRepository where the event occurred
payloadjsonFull parsed Bitbucket webhook payload
commitStatusjsonBitbucket commit status object
commitHashstringHash of the commit with this status
statusKeystringKey identifying the build status
statusStatestringCurrent build status state
statusNamestringDisplay name of the build status
statusUrlstringURL associated with the build status

Bitbucket Commit Comment Created

Trigger workflow when a comment is created on a Bitbucket commit

Configuration

ParameterTypeRequiredDescription
triggerCredentialsstringYesThe Bitbucket account used to create and remove the repository webhook. Repository administrator access is required.
workspacePickerproject-selectorYesThe workspace containing the repository to monitor.
workspaceSlugInputstringYesEnter the workspace slug directly instead of selecting a workspace.
repositoryPickerproject-selectorYesThe repository where Sim creates the webhook.
repositorySlugInputstringYesEnter the repository slug directly instead of selecting a repository.

Output

ParameterTypeDescription
eventTypestringBitbucket event key from X-Event-Key
hookUuidstringUUID of the Bitbucket repository webhook
requestUuidstringBitbucket delivery request UUID
attemptNumbernumberBitbucket delivery attempt number
actorjsonUser or app that caused the event
repositoryjsonRepository where the event occurred
payloadjsonFull parsed Bitbucket webhook payload
commentjsonBitbucket comment object
commentIdnumberRepository-scoped comment ID
commentContentstringRaw text content of the comment
commitjsonCommit the comment was created on

Bitbucket Pull Request Approval Removed

Trigger workflow when approval is removed from a Bitbucket pull request

Configuration

ParameterTypeRequiredDescription
triggerCredentialsstringYesThe Bitbucket account used to create and remove the repository webhook. Repository administrator access is required.
workspacePickerproject-selectorYesThe workspace containing the repository to monitor.
workspaceSlugInputstringYesEnter the workspace slug directly instead of selecting a workspace.
repositoryPickerproject-selectorYesThe repository where Sim creates the webhook.
repositorySlugInputstringYesEnter the repository slug directly instead of selecting a repository.

Output

ParameterTypeDescription
eventTypestringBitbucket event key from X-Event-Key
hookUuidstringUUID of the Bitbucket repository webhook
requestUuidstringBitbucket delivery request UUID
attemptNumbernumberBitbucket delivery attempt number
actorjsonUser or app that caused the event
repositoryjsonRepository where the event occurred
payloadjsonFull parsed Bitbucket webhook payload
pullRequestjsonBitbucket pull request object
pullRequestIdnumberRepository-scoped pull request ID
pullRequestTitlestringPull request title
pullRequestStatestringPull request state
sourceBranchstringPull request source branch
destinationBranchstringPull request destination branch
approvaljsonPull request approval details

Bitbucket Pull Request Approved

Trigger workflow when a Bitbucket pull request is approved

Configuration

ParameterTypeRequiredDescription
triggerCredentialsstringYesThe Bitbucket account used to create and remove the repository webhook. Repository administrator access is required.
workspacePickerproject-selectorYesThe workspace containing the repository to monitor.
workspaceSlugInputstringYesEnter the workspace slug directly instead of selecting a workspace.
repositoryPickerproject-selectorYesThe repository where Sim creates the webhook.
repositorySlugInputstringYesEnter the repository slug directly instead of selecting a repository.

Output

ParameterTypeDescription
eventTypestringBitbucket event key from X-Event-Key
hookUuidstringUUID of the Bitbucket repository webhook
requestUuidstringBitbucket delivery request UUID
attemptNumbernumberBitbucket delivery attempt number
actorjsonUser or app that caused the event
repositoryjsonRepository where the event occurred
payloadjsonFull parsed Bitbucket webhook payload
pullRequestjsonBitbucket pull request object
pullRequestIdnumberRepository-scoped pull request ID
pullRequestTitlestringPull request title
pullRequestStatestringPull request state
sourceBranchstringPull request source branch
destinationBranchstringPull request destination branch
approvaljsonPull request approval details

Bitbucket Pull Request Changes Request Removed

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

Configuration

ParameterTypeRequiredDescription
triggerCredentialsstringYesThe Bitbucket account used to create and remove the repository webhook. Repository administrator access is required.
workspacePickerproject-selectorYesThe workspace containing the repository to monitor.
workspaceSlugInputstringYesEnter the workspace slug directly instead of selecting a workspace.
repositoryPickerproject-selectorYesThe repository where Sim creates the webhook.
repositorySlugInputstringYesEnter the repository slug directly instead of selecting a repository.

Output

ParameterTypeDescription
eventTypestringBitbucket event key from X-Event-Key
hookUuidstringUUID of the Bitbucket repository webhook
requestUuidstringBitbucket delivery request UUID
attemptNumbernumberBitbucket delivery attempt number
actorjsonUser or app that caused the event
repositoryjsonRepository where the event occurred
payloadjsonFull parsed Bitbucket webhook payload
pullRequestjsonBitbucket pull request object
pullRequestIdnumberRepository-scoped pull request ID
pullRequestTitlestringPull request title
pullRequestStatestringPull request state
sourceBranchstringPull request source branch
destinationBranchstringPull request destination branch
changesRequestjsonPull request changes-request details

Bitbucket Pull Request Changes Requested

Trigger workflow when changes are requested on a Bitbucket pull request

Configuration

ParameterTypeRequiredDescription
triggerCredentialsstringYesThe Bitbucket account used to create and remove the repository webhook. Repository administrator access is required.
workspacePickerproject-selectorYesThe workspace containing the repository to monitor.
workspaceSlugInputstringYesEnter the workspace slug directly instead of selecting a workspace.
repositoryPickerproject-selectorYesThe repository where Sim creates the webhook.
repositorySlugInputstringYesEnter the repository slug directly instead of selecting a repository.

Output

ParameterTypeDescription
eventTypestringBitbucket event key from X-Event-Key
hookUuidstringUUID of the Bitbucket repository webhook
requestUuidstringBitbucket delivery request UUID
attemptNumbernumberBitbucket delivery attempt number
actorjsonUser or app that caused the event
repositoryjsonRepository where the event occurred
payloadjsonFull parsed Bitbucket webhook payload
pullRequestjsonBitbucket pull request object
pullRequestIdnumberRepository-scoped pull request ID
pullRequestTitlestringPull request title
pullRequestStatestringPull request state
sourceBranchstringPull request source branch
destinationBranchstringPull request destination branch
changesRequestjsonPull request changes-request details

Bitbucket Pull Request Comment Created

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

Configuration

ParameterTypeRequiredDescription
triggerCredentialsstringYesThe Bitbucket account used to create and remove the repository webhook. Repository administrator access is required.
workspacePickerproject-selectorYesThe workspace containing the repository to monitor.
workspaceSlugInputstringYesEnter the workspace slug directly instead of selecting a workspace.
repositoryPickerproject-selectorYesThe repository where Sim creates the webhook.
repositorySlugInputstringYesEnter the repository slug directly instead of selecting a repository.

Output

ParameterTypeDescription
eventTypestringBitbucket event key from X-Event-Key
hookUuidstringUUID of the Bitbucket repository webhook
requestUuidstringBitbucket delivery request UUID
attemptNumbernumberBitbucket delivery attempt number
actorjsonUser or app that caused the event
repositoryjsonRepository where the event occurred
payloadjsonFull parsed Bitbucket webhook payload
pullRequestjsonBitbucket pull request object
pullRequestIdnumberRepository-scoped pull request ID
pullRequestTitlestringPull request title
pullRequestStatestringPull request state
sourceBranchstringPull request source branch
destinationBranchstringPull request destination branch
commentjsonBitbucket comment object
commentIdnumberRepository-scoped comment ID
commentContentstringRaw text content of the comment

Bitbucket Pull Request Comment Deleted

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

Configuration

ParameterTypeRequiredDescription
triggerCredentialsstringYesThe Bitbucket account used to create and remove the repository webhook. Repository administrator access is required.
workspacePickerproject-selectorYesThe workspace containing the repository to monitor.
workspaceSlugInputstringYesEnter the workspace slug directly instead of selecting a workspace.
repositoryPickerproject-selectorYesThe repository where Sim creates the webhook.
repositorySlugInputstringYesEnter the repository slug directly instead of selecting a repository.

Output

ParameterTypeDescription
eventTypestringBitbucket event key from X-Event-Key
hookUuidstringUUID of the Bitbucket repository webhook
requestUuidstringBitbucket delivery request UUID
attemptNumbernumberBitbucket delivery attempt number
actorjsonUser or app that caused the event
repositoryjsonRepository where the event occurred
payloadjsonFull parsed Bitbucket webhook payload
pullRequestjsonBitbucket pull request object
pullRequestIdnumberRepository-scoped pull request ID
pullRequestTitlestringPull request title
pullRequestStatestringPull request state
sourceBranchstringPull request source branch
destinationBranchstringPull request destination branch
commentjsonBitbucket comment object
commentIdnumberRepository-scoped comment ID
commentContentstringRaw text content of the comment

Bitbucket Pull Request Comment Reopened

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

Configuration

ParameterTypeRequiredDescription
triggerCredentialsstringYesThe Bitbucket account used to create and remove the repository webhook. Repository administrator access is required.
workspacePickerproject-selectorYesThe workspace containing the repository to monitor.
workspaceSlugInputstringYesEnter the workspace slug directly instead of selecting a workspace.
repositoryPickerproject-selectorYesThe repository where Sim creates the webhook.
repositorySlugInputstringYesEnter the repository slug directly instead of selecting a repository.

Output

ParameterTypeDescription
eventTypestringBitbucket event key from X-Event-Key
hookUuidstringUUID of the Bitbucket repository webhook
requestUuidstringBitbucket delivery request UUID
attemptNumbernumberBitbucket delivery attempt number
actorjsonUser or app that caused the event
repositoryjsonRepository where the event occurred
payloadjsonFull parsed Bitbucket webhook payload
pullRequestjsonBitbucket pull request object
pullRequestIdnumberRepository-scoped pull request ID
pullRequestTitlestringPull request title
pullRequestStatestringPull request state
sourceBranchstringPull request source branch
destinationBranchstringPull request destination branch
commentjsonBitbucket comment object
commentIdnumberRepository-scoped comment ID
commentContentstringRaw text content of the comment

Bitbucket Pull Request Comment Resolved

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

Configuration

ParameterTypeRequiredDescription
triggerCredentialsstringYesThe Bitbucket account used to create and remove the repository webhook. Repository administrator access is required.
workspacePickerproject-selectorYesThe workspace containing the repository to monitor.
workspaceSlugInputstringYesEnter the workspace slug directly instead of selecting a workspace.
repositoryPickerproject-selectorYesThe repository where Sim creates the webhook.
repositorySlugInputstringYesEnter the repository slug directly instead of selecting a repository.

Output

ParameterTypeDescription
eventTypestringBitbucket event key from X-Event-Key
hookUuidstringUUID of the Bitbucket repository webhook
requestUuidstringBitbucket delivery request UUID
attemptNumbernumberBitbucket delivery attempt number
actorjsonUser or app that caused the event
repositoryjsonRepository where the event occurred
payloadjsonFull parsed Bitbucket webhook payload
pullRequestjsonBitbucket pull request object
pullRequestIdnumberRepository-scoped pull request ID
pullRequestTitlestringPull request title
pullRequestStatestringPull request state
sourceBranchstringPull request source branch
destinationBranchstringPull request destination branch
commentjsonBitbucket comment object
commentIdnumberRepository-scoped comment ID
commentContentstringRaw text content of the comment

Bitbucket Pull Request Comment Updated

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

Configuration

ParameterTypeRequiredDescription
triggerCredentialsstringYesThe Bitbucket account used to create and remove the repository webhook. Repository administrator access is required.
workspacePickerproject-selectorYesThe workspace containing the repository to monitor.
workspaceSlugInputstringYesEnter the workspace slug directly instead of selecting a workspace.
repositoryPickerproject-selectorYesThe repository where Sim creates the webhook.
repositorySlugInputstringYesEnter the repository slug directly instead of selecting a repository.

Output

ParameterTypeDescription
eventTypestringBitbucket event key from X-Event-Key
hookUuidstringUUID of the Bitbucket repository webhook
requestUuidstringBitbucket delivery request UUID
attemptNumbernumberBitbucket delivery attempt number
actorjsonUser or app that caused the event
repositoryjsonRepository where the event occurred
payloadjsonFull parsed Bitbucket webhook payload
pullRequestjsonBitbucket pull request object
pullRequestIdnumberRepository-scoped pull request ID
pullRequestTitlestringPull request title
pullRequestStatestringPull request state
sourceBranchstringPull request source branch
destinationBranchstringPull request destination branch
commentjsonBitbucket comment object
commentIdnumberRepository-scoped comment ID
commentContentstringRaw text content of the comment

Bitbucket Pull Request Created

Trigger workflow when a Bitbucket pull request is created

Configuration

ParameterTypeRequiredDescription
triggerCredentialsstringYesThe Bitbucket account used to create and remove the repository webhook. Repository administrator access is required.
workspacePickerproject-selectorYesThe workspace containing the repository to monitor.
workspaceSlugInputstringYesEnter the workspace slug directly instead of selecting a workspace.
repositoryPickerproject-selectorYesThe repository where Sim creates the webhook.
repositorySlugInputstringYesEnter the repository slug directly instead of selecting a repository.

Output

ParameterTypeDescription
eventTypestringBitbucket event key from X-Event-Key
hookUuidstringUUID of the Bitbucket repository webhook
requestUuidstringBitbucket delivery request UUID
attemptNumbernumberBitbucket delivery attempt number
actorjsonUser or app that caused the event
repositoryjsonRepository where the event occurred
payloadjsonFull parsed Bitbucket webhook payload
pullRequestjsonBitbucket pull request object
pullRequestIdnumberRepository-scoped pull request ID
pullRequestTitlestringPull request title
pullRequestStatestringPull request state
sourceBranchstringPull request source branch
destinationBranchstringPull request destination branch

Bitbucket Pull Request Declined

Trigger workflow when a Bitbucket pull request is declined

Configuration

ParameterTypeRequiredDescription
triggerCredentialsstringYesThe Bitbucket account used to create and remove the repository webhook. Repository administrator access is required.
workspacePickerproject-selectorYesThe workspace containing the repository to monitor.
workspaceSlugInputstringYesEnter the workspace slug directly instead of selecting a workspace.
repositoryPickerproject-selectorYesThe repository where Sim creates the webhook.
repositorySlugInputstringYesEnter the repository slug directly instead of selecting a repository.

Output

ParameterTypeDescription
eventTypestringBitbucket event key from X-Event-Key
hookUuidstringUUID of the Bitbucket repository webhook
requestUuidstringBitbucket delivery request UUID
attemptNumbernumberBitbucket delivery attempt number
actorjsonUser or app that caused the event
repositoryjsonRepository where the event occurred
payloadjsonFull parsed Bitbucket webhook payload
pullRequestjsonBitbucket pull request object
pullRequestIdnumberRepository-scoped pull request ID
pullRequestTitlestringPull request title
pullRequestStatestringPull request state
sourceBranchstringPull request source branch
destinationBranchstringPull request destination branch

Bitbucket Pull Request Merged

Trigger workflow when a Bitbucket pull request is merged

Configuration

ParameterTypeRequiredDescription
triggerCredentialsstringYesThe Bitbucket account used to create and remove the repository webhook. Repository administrator access is required.
workspacePickerproject-selectorYesThe workspace containing the repository to monitor.
workspaceSlugInputstringYesEnter the workspace slug directly instead of selecting a workspace.
repositoryPickerproject-selectorYesThe repository where Sim creates the webhook.
repositorySlugInputstringYesEnter the repository slug directly instead of selecting a repository.

Output

ParameterTypeDescription
eventTypestringBitbucket event key from X-Event-Key
hookUuidstringUUID of the Bitbucket repository webhook
requestUuidstringBitbucket delivery request UUID
attemptNumbernumberBitbucket delivery attempt number
actorjsonUser or app that caused the event
repositoryjsonRepository where the event occurred
payloadjsonFull parsed Bitbucket webhook payload
pullRequestjsonBitbucket pull request object
pullRequestIdnumberRepository-scoped pull request ID
pullRequestTitlestringPull request title
pullRequestStatestringPull request state
sourceBranchstringPull request source branch
destinationBranchstringPull request destination branch

Bitbucket Pull Request Updated

Trigger workflow when a Bitbucket pull request is updated

Configuration

ParameterTypeRequiredDescription
triggerCredentialsstringYesThe Bitbucket account used to create and remove the repository webhook. Repository administrator access is required.
workspacePickerproject-selectorYesThe workspace containing the repository to monitor.
workspaceSlugInputstringYesEnter the workspace slug directly instead of selecting a workspace.
repositoryPickerproject-selectorYesThe repository where Sim creates the webhook.
repositorySlugInputstringYesEnter the repository slug directly instead of selecting a repository.

Output

ParameterTypeDescription
eventTypestringBitbucket event key from X-Event-Key
hookUuidstringUUID of the Bitbucket repository webhook
requestUuidstringBitbucket delivery request UUID
attemptNumbernumberBitbucket delivery attempt number
actorjsonUser or app that caused the event
repositoryjsonRepository where the event occurred
payloadjsonFull parsed Bitbucket webhook payload
pullRequestjsonBitbucket pull request object
pullRequestIdnumberRepository-scoped pull request ID
pullRequestTitlestringPull request title
pullRequestStatestringPull request state
sourceBranchstringPull request source branch
destinationBranchstringPull request destination branch

Bitbucket Push

Trigger workflow when commits are pushed to a Bitbucket repository

Configuration

ParameterTypeRequiredDescription
triggerCredentialsstringYesThe Bitbucket account used to create and remove the repository webhook. Repository administrator access is required.
workspacePickerproject-selectorYesThe workspace containing the repository to monitor.
workspaceSlugInputstringYesEnter the workspace slug directly instead of selecting a workspace.
repositoryPickerproject-selectorYesThe repository where Sim creates the webhook.
repositorySlugInputstringYesEnter the repository slug directly instead of selecting a repository.

Output

ParameterTypeDescription
eventTypestringBitbucket event key from X-Event-Key
hookUuidstringUUID of the Bitbucket repository webhook
requestUuidstringBitbucket delivery request UUID
attemptNumbernumberBitbucket delivery attempt number
actorjsonUser or app that caused the event
repositoryjsonRepository where the event occurred
payloadjsonFull parsed Bitbucket webhook payload
pushjsonPush details, including changes and commits

Bitbucket Repository Forked

Trigger workflow when a Bitbucket repository is forked

Configuration

ParameterTypeRequiredDescription
triggerCredentialsstringYesThe Bitbucket account used to create and remove the repository webhook. Repository administrator access is required.
workspacePickerproject-selectorYesThe workspace containing the repository to monitor.
workspaceSlugInputstringYesEnter the workspace slug directly instead of selecting a workspace.
repositoryPickerproject-selectorYesThe repository where Sim creates the webhook.
repositorySlugInputstringYesEnter the repository slug directly instead of selecting a repository.

Output

ParameterTypeDescription
eventTypestringBitbucket event key from X-Event-Key
hookUuidstringUUID of the Bitbucket repository webhook
requestUuidstringBitbucket delivery request UUID
attemptNumbernumberBitbucket delivery attempt number
actorjsonUser or app that caused the event
repositoryjsonRepository where the event occurred
payloadjsonFull parsed Bitbucket webhook payload
forkjsonNewly created repository fork

Bitbucket Repository Updated

Trigger workflow when a Bitbucket repository is updated

Configuration

ParameterTypeRequiredDescription
triggerCredentialsstringYesThe Bitbucket account used to create and remove the repository webhook. Repository administrator access is required.
workspacePickerproject-selectorYesThe workspace containing the repository to monitor.
workspaceSlugInputstringYesEnter the workspace slug directly instead of selecting a workspace.
repositoryPickerproject-selectorYesThe repository where Sim creates the webhook.
repositorySlugInputstringYesEnter the repository slug directly instead of selecting a repository.

Output

ParameterTypeDescription
eventTypestringBitbucket event key from X-Event-Key
hookUuidstringUUID of the Bitbucket repository webhook
requestUuidstringBitbucket delivery request UUID
attemptNumbernumberBitbucket delivery attempt number
actorjsonUser or app that caused the event
repositoryjsonRepository where the event occurred
payloadjsonFull parsed Bitbucket webhook payload
changesjsonRepository fields changed by the update

OAuth Scopes

Sim requests these scopes when someone connects a Bitbucket account. On a self-hosted deployment, register your own app with the provider using the settings below. See Integrations & OAuth for the full setup.

SettingValue
Redirect URI<NEXT_PUBLIC_APP_URL>/api/auth/oauth2/callback/bitbucket
Environment variablesBITBUCKET_CLIENT_ID, BITBUCKET_CLIENT_SECRET
ScopeDescription
accountView your Bitbucket account and workspace memberships
repositoryView repositories and source code
repository:writePush to repositories and create or delete branches
pullrequestView and comment on pull requests
pullrequest:writeCreate, update, approve, decline, and merge pull requests
pipelineView pipelines, steps, and logs
pipeline:writeRun and stop pipelines
webhookManage repository webhooks