Node module to make a pull request for bitbucket after doing some changes.
This project was based in Creating A Real-World CLI App With Node.
For more information of Bitbucket Rest API you can go to the Documentation.
If you wanna create the Slack Notification you can go to the Webhook Incoming Documentation
This app was built for NodeJS.
npm i bitbucket-push-request --save-dev
./bin/push
or- Add it to your
package.json
as ascript
like this:"push": "node node_modules/bitbucket-push-request/bin/push"
- Run it from there with
npm run push
- Send the commands with the
--
before the commands. Example:npm run push pr -- -j <jira> -m <message>
npm link
After you link it, you can run it as push
Run push help
For the use, you need to do the following:
- Create a copy of the file
bb-pr-config-template.json
and rename it asbb-pr-config.json
- Fill the values for authentication and bitbucket repository
full
- push, pull-request and slack notificationpr
- push, create a pull request and slack notificationforks
- show the forks for the repositoryslack
- send a message to slack hook. You can send the jira you created too!!tag
- create a tag in remote based on the package.json versionversion-update
- Update the version in the package.jsonlib-update
- Update the version in the package.json dependency of parent app
push pr -j <code> -m <my title>
push full -j <code> -m <message> -n <version>
push version-update -n <version> -p <path> -j <code>
push lib-update -n <version> -j <code> -t <feature>
push tag
- You need at least Node 8.0 to run it