@indiekit/store-bitbucket
v1.0.0-beta.28
Published
Bitbucket content store adaptor for Indiekit
Maintainers
Readme
@indiekit/store-bitbucket
Bitbucket content store adaptor for Indiekit.
Installation
npm install @indiekit/store-bitbucket
Requirements
A Bitbucket API token with read:repository:bitbucket and write:repository:bitbucket scopes.
[!IMPORTANT] Store your app password in an environment variable called
BITBUCKET_TOKENso that only you and the application can see it.
Usage
Add @indiekit/store-bitbucket to your list of plug-ins, specifying options as required:
{
"plugins": ["@indiekit/store-bitbucket"],
"@indiekit/store-bitbucket": {
"email": "[email protected]",
"user": "username",
"repo": "reponame"
}
}Options
| Option | Type | Description |
| :------- | :------- | :---------------------------------------------------------------------------- |
| email | string | Your Atlassian email. Required. |
| user | string | Your Bitbucket workspace. Required. |
| repo | string | The name of your Bitbucket repository. Required. |
| branch | string | The branch files will be saved to. Optional, defaults to main. |
| token | string | A Bitbucket API token. Required, defaults to process.env.BITBUCKET_TOKEN. |
