Bitbucket

Usage Instructions

Connect Bitbucket Cloud to inspect repositories and source, collaborate on pull requests, and diagnose or control pipelines. This action integration uses OAuth and does not create webhooks or triggers.

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

On this page