New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

bitbucket-push-request

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bitbucket-push-request

Module to create a push, pull request in bitbucket

latest
npmnpm
Version
1.10.1
Version published
Maintainers
1
Created
Source

Introduction

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.

How to install it

npm i bitbucket-push-request --save-dev

How to run it

  • ./bin/push or
  • Add it to your package.json as a script 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

Help

Run push help

Configuration

For the use, you need to do the following:

  • Create a copy of the file bb-pr-config-template.json and rename it as bb-pr-config.json
  • Fill the values for authentication and bitbucket repository

Available Commands

  • full - push, pull-request and slack notification
  • pr - push, create a pull request and slack notification
  • forks - show the forks for the repository
  • slack - 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 version
  • version-update - Update the version in the package.json
  • lib-update - Update the version in the package.json dependency of parent app

Examples of use

  • 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

Requirements

  • You need at least Node 8.0 to run it

Keywords

bitbucket

FAQs

Package last updated on 04 Sep 2019

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