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',
'bitbucket-pull-request-test',
'some title',
'some big description\ncomes here',
'test_branch',
'master'
)
Get
let result = await bpr.create(
'luislobo',
'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
)```