@robinpath/bitbucket
v0.1.1
Published
> Bitbucket module for RobinPath.
Downloads
195
Keywords
Readme
@robinpath/bitbucket
Bitbucket module for RobinPath.
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
npm install @robinpath/bitbucketQuick Start
1. Set up credentials
bitbucket.setCredentials "your-credentials"2. listRepositories
bitbucket.listRepositoriesAvailable Functions
| Function | Description |
|----------|-------------|
| bitbucket.setCredentials | Configure bitbucket credentials. |
| bitbucket.listRepositories | listRepositories |
| bitbucket.getRepository | getRepository |
| bitbucket.createRepository | createRepository |
| bitbucket.deleteRepository | deleteRepository |
| bitbucket.listBranches | listBranches |
| bitbucket.createBranch | createBranch |
| bitbucket.deleteBranch | deleteBranch |
| bitbucket.listPullRequests | listPullRequests |
| bitbucket.getPullRequest | getPullRequest |
| bitbucket.createPullRequest | createPullRequest |
| bitbucket.updatePullRequest | updatePullRequest |
| bitbucket.mergePullRequest | mergePullRequest |
| bitbucket.declinePullRequest | declinePullRequest |
| bitbucket.listCommits | listCommits |
| bitbucket.listPipelines | listPipelines |
| bitbucket.getPipeline | getPipeline |
| bitbucket.triggerPipeline | triggerPipeline |
| bitbucket.listIssues | listIssues |
| bitbucket.createIssue | createIssue |
| bitbucket.listWorkspaces | listWorkspaces |
| bitbucket.getWorkspace | getWorkspace |
| bitbucket.listWebhooks | listWebhooks |
| bitbucket.getUser | getUser |
| bitbucket.listDeployments | listDeployments |
Examples
listRepositories
bitbucket.listRepositoriesgetRepository
bitbucket.getRepositorycreateRepository
bitbucket.createRepositoryIntegration 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.
Related Modules
@robinpath/docker— Docker module for complementary functionality@robinpath/git— Git module for complementary functionality@robinpath/github— GitHub module for complementary functionality@robinpath/gitlab— GitLab module for complementary functionality@robinpath/vercel— Vercel module for complementary functionality
License
MIT
