Bitbucket
bitbucketBitbucket is a Git-based code hosting and collaboration platform supporting private and public repositories, enabling teams to manage and review code through pull requests and integrations
Acciones disponibles (17)
Cada acción es una operación que el agente puede ejecutar contra este conector. Haz clic en una acción para ver sus parámetros.
Create a branchBITBUCKET_CREATE_BRANCHAcciónCreates a new branch in a bitbucket repository from a target commit hash; the branch name must be unique, adhere to bitbucket's naming conventions, and not include the 'refs/heads/' prefix.
BITBUCKET_CREATE_BRANCHAcciónCreates a new branch in a bitbucket repository from a target commit hash; the branch name must be unique, adhere to bitbucket's naming conventions, and not include the 'refs/heads/' prefix.
Parámetros de entrada
namestringObligatorioThe name for the new branch (e.g., 'feature/new-login', 'bugfix/issue-123'). Important: Do not include the 'refs/heads/' prefix.
repo_slugstringObligatorioThe slug or UUID of the repository where the branch will be created. This is usually the repository's name in URL-friendly format.
workspacestringObligatorioThe workspace ID or UUID that owns the repository. This can typically be found in the URL of your Bitbucket workspace.
target_hashstringObligatorioThe full commit hash (SHA1) from which the new branch will be created. This commit must exist in the repository.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create an issueBITBUCKET_CREATE_ISSUEAcciónCreates a new issue in a bitbucket repository, setting the authenticated user as reporter; ensures assignee (if provided) has repository access, and that any specified milestone, version, or component ids exist.
BITBUCKET_CREATE_ISSUEAcciónCreates a new issue in a bitbucket repository, setting the authenticated user as reporter; ensures assignee (if provided) has repository access, and that any specified milestone, version, or component ids exist.
Parámetros de entrada
kindstringType of the issue (e.g., 'bug', 'enhancement', 'proposal', 'task').
titlestringObligatorioTitle for the new issue.
due_onstringDue date for the issue in ISO 8601 format (e.g., 'YYYY-MM-DDTHH:mm:ssZ').
contentstringObligatorioDetailed description for the new issue.
assigneestringBitbucket username of the assignee. The assignee must have repository access.
prioritystringPriority level of the issue (e.g., 'trivial', 'minor', 'major', 'critical', 'blocker').
repo_slugstringObligatorioThe slug of the Bitbucket repository.
workspacestringObligatorioThe ID or slug of the Bitbucket workspace.
version_idintegerNumeric ID of an existing version to associate with this issue.
component_idintegerNumeric ID of an existing component to associate with this issue.
milestone_idintegerNumeric ID of an existing milestone to associate with this issue.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create an issue commentBITBUCKET_CREATE_ISSUE_COMMENTAcciónAdds a new comment with markdown support to an existing bitbucket issue.
BITBUCKET_CREATE_ISSUE_COMMENTAcciónAdds a new comment with markdown support to an existing bitbucket issue.
Parámetros de entrada
contentstringObligatorioThe raw text content for the comment. This content supports markdown formatting, which Bitbucket will then render.
issue_idstringObligatorioThe unique identifier of the issue on which the comment will be posted.
repo_slugstringObligatorioThe slug (URL-friendly version) of the repository name.
workspacestringObligatorioThe ID or slug of the workspace or user that owns the repository.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create a pull requestBITBUCKET_CREATE_PULL_REQUESTAcciónCreates a new pull request in a specified bitbucket repository, ensuring the source branch exists and is distinct from the (optional) destination branch.
BITBUCKET_CREATE_PULL_REQUESTAcciónCreates a new pull request in a specified bitbucket repository, ensuring the source branch exists and is distinct from the (optional) destination branch.
Parámetros de entrada
titlestringObligatorioConcise title summarizing the changes for the pull request.
repo_slugstringObligatorioSlug (URL-friendly name) of the repository for the pull request.
reviewersobject[]List of Bitbucket user UUIDs to be added as reviewers.
workspacestringObligatorioWorkspace ID (UUID or slug) of the repository owner.
descriptionstringDetailed Markdown description of the pull request, outlining changes and purpose.
source_branchstringObligatorioName of the source branch with changes to be merged.
destination_branchstringName of the destination branch for merging; defaults to repository's main branch if unspecified.
close_source_branchbooleanIf true, automatically closes the source branch upon pull request merge.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create repositoryBITBUCKET_CREATE_REPOSITORYAcciónCreates a new bitbucket 'git' repository in a specified workspace, defaulting to the workspace's oldest project if `project key` is not provided.
BITBUCKET_CREATE_REPOSITORYAcciónCreates a new bitbucket 'git' repository in a specified workspace, defaulting to the workspace's oldest project if `project key` is not provided.
Parámetros de entrada
has_wikibooleanEnable the wiki (`True`), or disable it (`False`).
languagestringPrimary programming language (e.g., 'python', 'java') for categorization.
repo_slugstringObligatorioURL-friendly slug for the new repository.
workspacestringObligatorioID or slug of the Bitbucket workspace for the new repository.
has_issuesbooleanEnable the issue tracker (`True`), or disable it (`False`).
is_privatebooleanRepository visibility: `True` for private, `False` for public.
descriptionstringDescription for the new repository.
fork_policystringenumForking policy for the repository, determining who can create forks.
allow_forksno_public_forksno_forksproject_keystringKey of the Bitbucket project for the repository; if omitted, it's placed in the workspace's oldest project.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create snippet commentBITBUCKET_CREATE_SNIPPET_COMMENTAcciónPosts a new top-level comment or a threaded reply to an existing comment on a specified bitbucket snippet.
BITBUCKET_CREATE_SNIPPET_COMMENTAcciónPosts a new top-level comment or a threaded reply to an existing comment on a specified bitbucket snippet.
Parámetros de entrada
contentstringObligatorioRaw text content of the comment; Bitbucket will render any included markup (like Markdown).
parent_idintegerID of an existing comment to reply to, creating a threaded comment; if omitted, a top-level comment is created.
workspacestringObligatorioWorkspace ID or slug (e.g., 'my_workspace_slug' or a UUID) for the Bitbucket workspace containing the snippet.
encoded_idstringObligatorioUnique, encoded ID of the Bitbucket snippet to comment on (typically part of the snippet's URL).
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Delete issueBITBUCKET_DELETE_ISSUEAcciónPermanently deletes a specific issue, identified by its `issue id`, from the repository specified by `repo slug` within the given `workspace`.
BITBUCKET_DELETE_ISSUEAcciónPermanently deletes a specific issue, identified by its `issue id`, from the repository specified by `repo slug` within the given `workspace`.
Parámetros de entrada
issue_idstringObligatorioThe unique identifier of the issue to be deleted from the specified repository.
repo_slugstringObligatorioThe slug of the repository. This is the repository's name, usually in lowercase and with hyphens instead of spaces.
workspacestringObligatorioThe workspace ID (slug) or UUID of the Bitbucket workspace that owns the repository. This can be the workspace name or its universally unique identifier.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Delete repositoryBITBUCKET_DELETE_REPOSITORYAcciónPermanently deletes a specified bitbucket repository; this action is irreversible and does not affect forks.
BITBUCKET_DELETE_REPOSITORYAcciónPermanently deletes a specified bitbucket repository; this action is irreversible and does not affect forks.
Parámetros de entrada
repo_slugstringObligatorioThe slug (URL-friendly name) of the repository to be deleted. This identifies the repository within the workspace.
workspacestringObligatorioThe ID or slug of the Bitbucket workspace that owns the repository. This can be a user's username or a team's slug.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get current userBITBUCKET_GET_CURRENT_USERAcciónRetrieves the profile information (uuid, display name, links, creation date) for the currently authenticated bitbucket user.
BITBUCKET_GET_CURRENT_USERAcciónRetrieves the profile information (uuid, display name, links, creation date) for the currently authenticated bitbucket user.
Parámetros de entrada
Sin parámetros.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get file from repositoryBITBUCKET_GET_FILE_FROM_REPOSITORYAcciónRetrieves a specific file's content from a bitbucket repository at a given commit (hash, branch, or tag), failing if the file path is invalid for that commit.
BITBUCKET_GET_FILE_FROM_REPOSITORYAcciónRetrieves a specific file's content from a bitbucket repository at a given commit (hash, branch, or tag), failing if the file path is invalid for that commit.
Parámetros de entrada
pathstringObligatorioFull path to the file within the repository (e.g., 'src/main.py').
commitstringObligatorioCommit hash, branch name (fetches latest), or tag for the file version.
repo_slugstringObligatorioRepository slug or UUID (typically URL-formatted name).
workspacestringObligatorioWorkspace ID or UUID (often username or team name) containing the repository.
Parámetros de salida
datastringObligatorioThe textual content of the retrieved file.
pathstringObligatorioThe full path of the file as it exists in the repository, confirming the retrieved file's location.
sizeintegerObligatorioThe size of the retrieved file in bytes.
errorstringError if any occurred during the execution of the action
commitstringObligatorioThe specific commit hash, branch, or tag from which the file was retrieved.
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Pull RequestBITBUCKET_GET_PULL_REQUESTAcciónGet a single pull request by id with complete details.
BITBUCKET_GET_PULL_REQUESTAcciónGet a single pull request by id with complete details.
Parámetros de entrada
repo_slugstringObligatorioRepository slug (URL-friendly name).
workspacestringObligatorioWorkspace ID or slug (URL-friendly name).
pull_request_idintegerObligatorioThe ID of the pull request to retrieve.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get snippetBITBUCKET_GET_SNIPPETAcciónRetrieves a specific bitbucket snippet by its encoded id from an existing workspace, returning its metadata and file structure.
BITBUCKET_GET_SNIPPETAcciónRetrieves a specific bitbucket snippet by its encoded id from an existing workspace, returning its metadata and file structure.
Parámetros de entrada
workspacestringObligatorioThe workspace ID (slug) or the workspace UUID surrounded by curly braces, identifying the Bitbucket workspace.
encoded_idstringObligatorioThe unique identifier (encoded ID) of the snippet to be retrieved.
accept_formatstringThe desired format for the response. Valid options are 'application/json', 'multipart/related', or 'multipart/form-data'. This may affect how snippet content or file data is presented.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List pull requestsBITBUCKET_LIST_PULL_REQUESTSAcciónLists pull requests in a specified, accessible bitbucket repository, optionally filtering by state (open, merged, declined).
BITBUCKET_LIST_PULL_REQUESTSAcciónLists pull requests in a specified, accessible bitbucket repository, optionally filtering by state (open, merged, declined).
Parámetros de entrada
pageintegerPage number for paginated results (starts from 1).
statestringenumLifecycle state of a pull request.
OPENMERGEDDECLINEDpagelenintegerNumber of pull requests per page (1-100). Bitbucket default if not specified.
repo_slugstringObligatorioRepository slug (URL-friendly name).
workspacestringObligatorioWorkspace ID or slug (URL-friendly name).
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List repositories in workspaceBITBUCKET_LIST_REPOSITORIES_IN_WORKSPACEAcciónLists repositories in a specified bitbucket workspace, accessible to the authenticated user, with options to filter by role or query string, and sort results.
BITBUCKET_LIST_REPOSITORIES_IN_WORKSPACEAcciónLists repositories in a specified bitbucket workspace, accessible to the authenticated user, with options to filter by role or query string, and sort results.
Parámetros de entrada
qstringQuery string using Bitbucket's REST API filtering syntax to filter repositories. For detailed syntax, refer to Bitbucket API documentation.
rolestringFilters repositories by the authenticated user's role within each repository.
sortstringField for sorting repository results. Prefix with '-' for descending order. Common sortable fields: 'name', 'updated_on', 'created_on'.
workspacestringObligatorioThe identifier of the Bitbucket workspace. This can be the workspace slug (e.g., 'my-workspace') or its UUID enclosed in curly braces (e.g., '{workspace-uuid}').
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List workspace membersBITBUCKET_LIST_WORKSPACE_MEMBERSAcciónLists all members of a specified bitbucket workspace; the workspace must exist.
BITBUCKET_LIST_WORKSPACE_MEMBERSAcciónLists all members of a specified bitbucket workspace; the workspace must exist.
Parámetros de entrada
workspacestringObligatorioThe workspace ID (UUID) or slug from which to list members. The slug is the user-friendly, URL-safe identifier for the workspace.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List workspacesBITBUCKET_LIST_WORKSPACESAcciónLists bitbucket workspaces accessible to the authenticated user, optionally filtered and sorted.
BITBUCKET_LIST_WORKSPACESAcciónLists bitbucket workspaces accessible to the authenticated user, optionally filtered and sorted.
Parámetros de entrada
qstringQuery string to filter workspaces by attributes, following Bitbucket's filtering syntax.
sortstringField to sort returned workspaces by; prefix with a hyphen (-) for descending order.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Update an issueBITBUCKET_UPDATE_ISSUEAcciónUpdates an existing issue in a bitbucket repository by modifying specified attributes; requires `workspace`, `repo slug`, `issue id`, and at least one attribute to update.
BITBUCKET_UPDATE_ISSUEAcciónUpdates an existing issue in a bitbucket repository by modifying specified attributes; requires `workspace`, `repo slug`, `issue id`, and at least one attribute to update.
Parámetros de entrada
kindstringThe updated kind (type) for the issue. If omitted, kind remains unchanged.
statestringThe updated state for the issue. If omitted, state remains unchanged.
titlestringThe new title for the issue. If omitted, the title remains unchanged.
contentstringThe new content or description for the issue, in raw text format. If omitted, the content remains unchanged.
versionstringThe name of the version affected by this issue (e.g., '1.0.0', '2.0-beta'). If omitted, the version remains unchanged.
issue_idstringObligatorioThe unique identifier (ID) of the issue to be updated.
prioritystringThe updated priority for the issue. If omitted, priority remains unchanged.
componentstringThe name of the component to associate with the issue (e.g., 'API', 'Frontend'). If omitted, the component remains unchanged.
milestonestringThe name of the milestone to associate with the issue (e.g., 'Sprint 1', 'v1.0 Launch'). If omitted, the milestone remains unchanged.
repo_slugstringObligatorioThe slug or name of the repository (e.g., 'my-app-repo').
workspacestringObligatorioThe workspace ID or slug that owns the repository (e.g., 'my-company' or '{123e4567-e89b-12d3-a456-426614174000}').
assignee_account_idstringThe Bitbucket account ID (UUID) of the user to assign the issue to. If omitted, the assignee remains unchanged.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not