0.1.7 • Published 7 years ago
@my-ideas/bb-create v0.1.7
There are no tests here! Use this at your own risk!
Readme
A tiny script to create Bitbucket repositories using a configuration file, instead of relying on manual configuration
Supported settings:
- Creation of the repo with its metadata (name, description, private/public, etc.)
- Enable pipeline and set environment variables
- Branch restrictions (number of review, number of passing builds)
Missing features
- Create HipChat notifications
- Test
How to use
Install this module npm install -g bb-create
Get an App Password and write a ~/.bbcreate-settings.json config file
{
"username": <YOUR_USER_NAME>,
"appPassword": <YES_EXACTLY_WHAT_HE_SAYS>
}Then write the definition of your Bitbucket repo in a JSON file.
Last step, run bb-create <REPO_DEFINITION>.json
How to define a Bitbucket repository
See example-repo.json and refer to the Atlassian documentaiton