In order to use the Mozaïk weather widgets, you must configure its client.
key | env key | required | description |
---|---|---|---|
baseUrl |
BITBUCKET_API_BASE_URL | yes | bitbucket website base url |
basicAuthUser |
BITBUCKET_API_BASIC_AUTH_USER | yes | bitbucket username |
basicAuthKey |
BITBUCKET_API_BASIC_AUTH_PASSWORD | yes | bitbucket key generated from personal account |
{
//…
api: {
bitbucket: {
baseUrl: 'your_url',
basicAuthUser: 'username',
basicAuthKey: 'auth_key'
}
}
}
Simply set BITBUCKET_API_BASE_URL env variable, using .env
or manually.
Show a list of pull requests in certain repository
key | required | description |
---|---|---|
project |
yes | bitbucket project name |
repo |
yes | bitbucket repository's name |
{
type: 'bitbucket.pull_requests',
project: 'project_name',
repo: 'repo_name',
columns: 1, rows: 1,
x: 2, y: 1
}