bitbucket-repository-provider
repository provider for bitbucket
Last updated 3 hours ago by arlac77 .
BSD-2-Clause · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install bitbucket-repository-provider 
SYNC missed versions from official npm registry.

npm License minified size downloads Build Status semantic-release styled with prettier Commitizen friendly Known Vulnerabilities codecov.io Coverage Status

bitbucket-repository-provider

repository provider for bitbucket

API

Table of Contents

BitbucketProvider

Extends Provider

Provider for bitbucket repositories

Supported name schemes are

Parameters

  • config Object
    • config.url string provider scm base
    • config.api string provider api base
    • config.authentication Object authentication
      • config.authentication.type string
      • config.authentication.username string
      • config.authentication.password string

repositoryClass

Returns Class BitbucketRepository

branchClass

Returns Class BitbucketBranch

pullRequestClass

Returns Class pull request class used by the Provider

repositoryBases

All possible base urls

Returns Array<string> common base urls of all repositories

defaultOptions

Default configuration as given for the cloud privider

Returns Object

areOptionsSufficciant

Parameters

Returns boolean true if authentication is present

environmentOptions

known environment variables

Returns Object

Returns string BITBUCKET_API api

Returns string BB_TOKEN api token

Returns string BITBUCKET_TOKEN api token

Returns string BITBUCKET_USERNAME username

Returns string BITBUCKET_PASSWORD password

BitbucketBranch

Extends Branch

Branch of a bitbucket repository

entry

https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/{username}/{repo_slug}/src/{node}/{path}

Parameters

Returns Promise<Entry>

entries

Parameters

  • patterns

commit

Commit entries

Parameters

  • message string commit message
  • updates Array<Entry> file content to be commited
  • options Object

Returns Promise

defaultOptions

options

hash

api url.

Returns string

BitbucketRepository

Extends Repository

a repository hosted in bitbucket

Parameters

Properties

urls

Returns Array<string> url

homePageURL

Deliver the url of home page.

Returns string '.../overwiew'

issuesURL

Deliver the url of issue tracking system.

Returns string '.../issues'

createBranch

Create a new branch

Parameters

deleteBranch

https://docs.atlassian.com/bitbucket-server/rest/5.8.0/bitbucket-branch-rest.html#idm45555984542992 https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/{username}/{repo_slug}/refs/branches/{name}#delete

Parameters

  • name

BitbucketPullRequest

Extends PullRequest

_merge

https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/{workspace}/{repo_slug}/pullrequests/{pull_request_id}/merge

Parameters

  • method (optional, default "merge_commit")

list

List all pull request for a given repo result will be filtered by source branch, destination branch and states

Parameters

  • repository Repository
  • filter Object (optional, default {})
    • filter.source Branch?
    • filter.destination Branch?
    • filter.states Set<string>?

Returns Iterator<PullRequest>

open

https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/{username}/{repo_slug}/pullrequests#post

Parameters

  • source
  • destination
  • options

install

With npm do:

npm install bitbucket-repository-provider

license

BSD-2-Clause

Current Tags

  • 3.5.30                                ...           latest (3 hours ago)

147 Versions

  • 3.5.30                                ...           3 hours ago
  • 3.5.29                                ...           16 hours ago
  • 3.5.28                                ...           18 hours ago
  • 3.5.27                                ...           21 hours ago
  • 3.5.26                                ...           a day ago
  • 3.5.25                                ...           a day ago
  • 3.5.24                                ...           2 days ago
  • 3.5.23                                ...           2 days ago
  • 3.5.22                                ...           11 days ago
  • 3.5.21                                ...           15 days ago
  • 3.5.20                                ...           15 days ago
  • 3.5.19                                ...           20 days ago
  • 3.5.18                                ...           20 days ago
  • 3.5.17                                ...           23 days ago
  • 3.5.16                                ...           25 days ago
  • 3.5.15                                ...           a month ago
  • 3.5.14                                ...           a month ago
  • 3.5.13                                ...           a month ago
  • 3.5.12                                ...           a month ago
  • 3.5.11                                ...           a month ago
  • 3.5.10                                ...           a month ago
  • 3.5.9                                ...           a month ago
  • 3.5.8                                ...           a month ago
  • 3.5.7                                ...           a month ago
  • 3.5.6                                ...           a month ago
  • 3.5.5                                ...           a month ago
  • 3.5.4                                ...           a month ago
  • 3.5.3                                ...           2 months ago
  • 3.5.2                                ...           2 months ago
  • 3.5.1                                ...           2 months ago
  • 3.5.0                                ...           2 months ago
  • 3.4.8                                ...           3 months ago
  • 3.4.7                                ...           3 months ago
  • 3.4.6                                ...           3 months ago
  • 3.4.5                                ...           3 months ago
  • 3.4.4                                ...           3 months ago
  • 3.4.3                                ...           3 months ago
  • 3.4.2                                ...           4 months ago
  • 3.4.1                                ...           4 months ago
  • 3.4.0                                ...           4 months ago
  • 3.3.49                                ...           4 months ago
  • 3.3.48                                ...           4 months ago
  • 3.3.47                                ...           4 months ago
  • 3.3.46                                ...           4 months ago
  • 3.3.45                                ...           4 months ago
  • 3.3.44                                ...           4 months ago
  • 3.3.43                                ...           4 months ago
  • 3.3.42                                ...           5 months ago
  • 3.3.41                                ...           6 months ago
  • 3.3.40                                ...           6 months ago
  • 3.3.39                                ...           6 months ago
  • 3.3.38                                ...           7 months ago
  • 3.3.37                                ...           7 months ago
  • 3.3.36                                ...           7 months ago
  • 3.3.35                                ...           7 months ago
  • 3.3.34                                ...           7 months ago
  • 3.3.33                                ...           8 months ago
  • 3.3.32                                ...           8 months ago
  • 3.3.31                                ...           8 months ago
  • 3.3.30                                ...           8 months ago
  • 3.3.29                                ...           8 months ago
  • 3.3.28                                ...           8 months ago
  • 3.3.27                                ...           8 months ago
  • 3.3.26                                ...           9 months ago
  • 3.3.25                                ...           9 months ago
  • 3.3.24                                ...           10 months ago
  • 3.3.23                                ...           10 months ago
  • 3.3.22                                ...           10 months ago
  • 3.3.21                                ...           10 months ago
  • 3.3.20                                ...           10 months ago
  • 3.3.19                                ...           10 months ago
  • 3.3.18                                ...           10 months ago
  • 3.3.17                                ...           10 months ago
  • 3.3.16                                ...           10 months ago
  • 3.3.15                                ...           10 months ago
  • 3.3.14                                ...           10 months ago
  • 3.3.13                                ...           10 months ago
  • 3.3.12                                ...           10 months ago
  • 3.3.11                                ...           a year ago
  • 3.3.10                                ...           a year ago
  • 3.3.9                                ...           a year ago
  • 3.3.8                                ...           a year ago
  • 3.3.7                                ...           a year ago
  • 3.3.6                                ...           a year ago
  • 3.3.5                                ...           a year ago
  • 3.3.4                                ...           a year ago
  • 3.3.3                                ...           a year ago
  • 3.3.2                                ...           a year ago
  • 3.3.1                                ...           a year ago
  • 3.3.0                                ...           a year ago
  • 3.2.1                                ...           a year ago
  • 3.2.0                                ...           a year ago
  • 3.1.3                                ...           a year ago
  • 3.1.2                                ...           a year ago
  • 3.1.1                                ...           a year ago
  • 3.1.0                                ...           a year ago
  • 3.0.8                                ...           a year ago
  • 3.0.7                                ...           a year ago
  • 3.0.6                                ...           a year ago
  • 3.0.5                                ...           a year ago
  • 3.0.4                                ...           a year ago
  • 3.0.3                                ...           a year ago
  • 3.0.2                                ...           a year ago
  • 3.0.1                                ...           a year ago
  • 3.0.0                                ...           a year ago
  • 2.1.5                                ...           2 years ago
  • 2.1.4                                ...           2 years ago
  • 2.1.3                                ...           2 years ago
  • 2.1.2                                ...           2 years ago
  • 2.1.1                                ...           2 years ago
  • 2.1.0                                ...           2 years ago
  • 2.0.3                                ...           2 years ago
  • 2.0.2                                ...           2 years ago
  • 2.0.1                                ...           2 years ago
  • 2.0.0                                ...           2 years ago
  • 1.5.1                                ...           2 years ago
  • 1.5.0                                ...           2 years ago
  • 1.4.1                                ...           2 years ago
  • 1.4.0                                ...           2 years ago
  • 1.3.3                                ...           2 years ago
  • 1.3.2                                ...           2 years ago
  • 1.3.1                                ...           2 years ago
  • 1.3.0                                ...           2 years ago
  • 1.2.11                                ...           2 years ago
  • 1.2.10                                ...           2 years ago
  • 1.2.9                                ...           2 years ago
  • 1.2.8                                ...           2 years ago
  • 1.2.7                                ...           2 years ago
  • 1.2.6                                ...           2 years ago
  • 1.2.5                                ...           2 years ago
  • 1.2.4                                ...           2 years ago
  • 1.2.3                                ...           2 years ago
  • 1.2.2                                ...           2 years ago
  • 1.2.1                                ...           2 years ago
  • 1.2.0                                ...           2 years ago
  • 1.1.8                                ...           2 years ago
  • 1.1.7                                ...           2 years ago
  • 1.1.6                                ...           2 years ago
  • 1.1.5                                ...           2 years ago
  • 1.1.4                                ...           2 years ago
  • 1.1.3                                ...           2 years ago
  • 1.1.2                                ...           2 years ago
  • 1.1.1                                ...           2 years ago
  • 1.1.0                                ...           2 years ago
  • 1.0.2                                ...           2 years ago
  • 1.0.1                                ...           3 years ago
  • 1.0.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 107
This Month 286
Last Day 70
Last Week 0
Last Month 205
Dependencies (4)
Dev Dependencies (5)
Dependents (2)

Copyright 2014 - 2017 © taobao.org |