bitbucket-repository-provider
v6.0.29
Published
repository provider for bitbucket
Downloads
1,125
Maintainers
Readme
bitbucket-repository-provider
repository provider for bitbucket
API
Table of Contents
- BitbucketBranch
- hash
- BitbucketHook
- BitbucketProvider
- BitbucketPullRequest
- BitbucketRepositoryGroup
- BitbucketRepository
BitbucketBranch
Extends Branch
Branch of a bitbucket repository.
entry
Parameters
name
string
Returns Promise<ContentEntry>
entries
Parameters
commit
Commit entries
Parameters
Returns Promise
attributes
options
hash
Returns string
BitbucketHook
Extends Hook
BitbucketProvider
Extends MultiGroupProvider
Provider for bitbucket repositories.
Supported name schemes are
- https://user:[email protected]/owner/repo-name.git
- git+https://user:[email protected]/owner/repo-name.git
- [email protected]:owner/repo-name.git
- owner/repo-name Known environment variables
- BITBUCKET_API api
- BITBUCKET_TOKEN api token
- BITBUCKET_USERNAME username
- BITBUCKET_APP_PASSWORD password
- BITBUCKET_PASSWORD password
Parameters
config
Object
repositoryBases
All possible base urls.
Returns Array<string> common base urls of all repositories
initializeRepositories
https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories
name
We are called bitbucket.
Returns string bitbucket
instanceIdentifier
Default instance env name prefix.
attributes
Default configuration as given for the cloud privider.
Returns Object
areOptionsSufficcient
Parameters
options
Object
Returns boolean true if authentication is present
BitbucketPullRequest
Extends PullRequest
Pull request inside bitbucket
_merge
Parameters
merge_strategy
(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
Repositoryfilter
Object?
Returns AsyncIterable<PullRequest>
open
Parameters
source
destination
options
BitbucketRepositoryGroup
Extends RepositoryGroup
createRepository
Parameters
Returns Promise<Repository> newly created repository
BitbucketRepository
Extends Repository
a repository hosted on bitbucket
Parameters
Properties
homePageURL
Deliver the url of home page.
Returns string '.../overwiew'
issuesURL
Deliver the url of issue tracking system.
Returns string '.../issues'
update
initializeHooks
initializeBranches
https://developer.atlassian.com/cloud/bitbucket/rest/api-group-refs/#api-group-refs
createBranch
Parameters
name
string of the new branch to createfrom
BitbucketBranch (optional, defaultthis.defaultBranch
)options
Objectoptions.message
string?
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/%7Busername%7D/%7Brepo_slug%7D/refs/branches/%7Bname%7D#delete
Parameters
name
install
With npm do:
npm install bitbucket-repository-provider
license
BSD-2-Clause