🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@robinpath/bitbucket

Package Overview
Dependencies
Maintainers
4
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@robinpath/bitbucket

Bitbucket Cloud REST API v2 — workspaces, repositories, branches, commits, pull requests, pipelines, issues, webhooks, deployments. Uses the encrypted credential vault for App Password (Basic) or OAuth tokens.

latest
npmnpm
Version
0.3.0
Version published
Weekly downloads
17
70%
Maintainers
4
Weekly downloads
 
Created
Source

@robinpath/bitbucket

Bitbucket module for RobinPath.

Category Functions Auth License

Why use this module?

The bitbucket module lets you:

  • listRepositories
  • getRepository
  • createRepository
  • deleteRepository
  • listBranches

All functions are callable directly from RobinPath scripts with a simple, consistent API.

Installation

robinpath add @robinpath/bitbucket

Quick Start

1. Set up credentials

bitbucket.setCredentials "your-credentials"

2. listRepositories

bitbucket.listRepositories

Available Functions

FunctionDescription
bitbucket.setCredentialsConfigure bitbucket credentials.
bitbucket.listRepositorieslistRepositories
bitbucket.getRepositorygetRepository
bitbucket.createRepositorycreateRepository
bitbucket.deleteRepositorydeleteRepository
bitbucket.listBrancheslistBranches
bitbucket.createBranchcreateBranch
bitbucket.deleteBranchdeleteBranch
bitbucket.listPullRequestslistPullRequests
bitbucket.getPullRequestgetPullRequest
bitbucket.createPullRequestcreatePullRequest
bitbucket.updatePullRequestupdatePullRequest
bitbucket.mergePullRequestmergePullRequest
bitbucket.declinePullRequestdeclinePullRequest
bitbucket.listCommitslistCommits
bitbucket.listPipelineslistPipelines
bitbucket.getPipelinegetPipeline
bitbucket.triggerPipelinetriggerPipeline
bitbucket.listIssueslistIssues
bitbucket.createIssuecreateIssue
bitbucket.listWorkspaceslistWorkspaces
bitbucket.getWorkspacegetWorkspace
bitbucket.listWebhookslistWebhooks
bitbucket.getUsergetUser
bitbucket.listDeploymentslistDeployments

Examples

listRepositories

bitbucket.listRepositories

getRepository

bitbucket.getRepository

createRepository

bitbucket.createRepository

Integration with RobinPath

import { RobinPath } from "@wiredwp/robinpath";
import Module from "@robinpath/bitbucket";

const rp = new RobinPath();
rp.registerModule(Module.name, Module.functions);
rp.registerModuleMeta(Module.name, Module.functionMetadata);

const result = await rp.executeScript(`
  bitbucket.setCredentials "your-credentials"
  bitbucket.listRepositories
`);

Full API Reference

See MODULE.md for complete documentation including all parameters, return types, error handling, and advanced examples.

License

MIT

Keywords

bitbucket

FAQs

Package last updated on 06 May 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts