Neoclassical Programming Multitude
Miss any of our Open RFC calls?Watch the recordings here! »

bitbucket-pull-request

1.0.1 • Public • Published

Bitbucket Pull Request

Command line interface

Create Pull Request

BITBUCKET_PULLREQUEST_USER=luislobo BITBUCKET_PULLREQUEST_PASSWORD=your_app_password \
bitbucket-pull-request-cli \
 create \
 --title "Pull Req Title"  \
 --description "Some test pull \nrequest description" \
 --repositoryUser "luislobo" \
 --repositoryName "bitbucket-pull-request-test" \
 --sourceBranch "test_branch" \
 --destinationBranch "master"

Module

const bpr = require('bitbucket-pull-request')

Create

 let result = await bpr.create(
    'luislobo', // repository user
    'bitbucket-pull-request-test', // repository name
    'some title', // title
    'some big description\ncomes here', // description
    'test_branch', // source branch
    'master' // destination branch
  )

Get

 let result = await bpr.create(
    'luislobo', // repository user
    'bitbucket-pull-request-test'
  )

Approve

  result = await bpr.approve(
    'luislobo',
    'bitbucket-pull-request-test',
    result.id
  )

Decline

  result = await bpr.decline(
    'luislobo',
    'bitbucket-pull-request-test',
    result.id
  )```

Install

npm i bitbucket-pull-request

DownloadsWeekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

6.79 kB

Total Files

5

Last publish

Collaborators

  • avatar