Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hkjang/node-red-contrib-bitbucket
https://github.com/hkjang/node-red-contrib-bitbucket
Last synced: 5 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/hkjang/node-red-contrib-bitbucket
- Owner: hkjang
- License: other
- Created: 2021-03-22T05:10:56.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-12-20T11:36:36.000Z (about 3 years ago)
- Last Synced: 2024-12-28T22:46:08.995Z (about 1 month ago)
- Language: JavaScript
- Size: 59.6 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
node-red-contrib-bitbucket
================Node-RED node for bitbucket
## Install
To install the stable version use the `Menu - Manage palette - Install`
option and search for node-red-contrib-bitbucket, or run the following
command in your Node-RED user directory, typically `~/.node-red`npm install node-red-contrib-bitbucket
## Wrapper bitbucket.js
- https://www.npmjs.com/package/bitbucket## Sample msg parameter
```javascript
msg.namespace = 'repositories';
msg.api = 'listGlobal';
msg.params = {};
return msg;
```### Notes:
- is one of the Namespace Names
- is one of the API Names### Namespace Names
branching_model, branchrestrictions, commits, commitstatuses, deploy, deployments, downloads, hook_events, issue_tracker, pipelines, projects, pullrequests, refs, repositories, search, snippet, snippets, source, ssh, teams, user, users, webhooks### API Names
Check API client docs: https://bitbucketjs.netlify.com## Sample flows
```js
[{"id":"fdf93af.764acc8","type":"inject","z":"5a2fb3d3.3d0bac","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":110,"y":60,"wires":[["642bea3d.38b964"]]},{"id":"642bea3d.38b964","type":"function","z":"5a2fb3d3.3d0bac","name":"","func":"\n// msg.namespace = 'repositories';\n// msg.api = 'listGlobal';\nmsg.params = {};\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":280,"y":60,"wires":[["c649630d.9e35d"]]},{"id":"198f0ae5.dcfe15","type":"debug","z":"5a2fb3d3.3d0bac","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":630,"y":60,"wires":[]},{"id":"c649630d.9e35d","type":"bitbucket","z":"5a2fb3d3.3d0bac","name":"","namespace":"repositories","api":"listGlobal","creds":"9821486f.d12848","x":460,"y":60,"wires":[["198f0ae5.dcfe15"]]},{"id":"9821486f.d12848","type":"bitbucketAuth","z":"","name":"test"}]
```