0.0.43 • Published 6 years ago

bb-npm-bot v0.0.43

Weekly downloads
2
License
MIT
Repository
-
Last release
6 years ago

bitbucket-npm-bot

A renovate-like service that works on Bitbucket Server.

Installation

npm install -g bb-npm-bot

Usage

bb-npm-bot --config=my/path/config.json --token=dXNlcm5hbWU6cGFzc3dvcmQ=

Options

OptionDescriptionTypeExamplesDefault
configa local or network path for your config fileString"my/path/config.json" "https://my-custom-server/config.json"
tokenYour Bitbucket auth tokenString"dXNlcm5hbWU6cGFzc3dvcmQ="

Docker

npm run docker-build
# the following command assumes env vars BB_CONFIG and BB_TOKEN are set to something like BB_CONFIG=/my/path/config.json and BB_TOKEN=dXNlcm5hbWU6cGFzc3dvcmQ=
npm run docker-run

Config

Server-level

This is your "config.json" top-level.

{
  "endpoint": "https://my-stash-server",
  "cachePath": "/override/cache/path",
  "user": "my-stash-bot-account",
  "repositories": [
    // ...
  ],
  "packages": [
    "mocha",
    // ...
  ],
  "versionHint": "~",
  "titleTemplate": "custom {{package}} {{oldRange}} {{newRange}}",
  "branchTemplate": "custom_{{package}}_{{oldVersion}}_{{newVersion}}",
  "descriptionTemplate": "custom {{package}} {{oldRange}} {{newRange}} {{oldVersion}} {{newVersion}}"
}

Repo-level

This is an item inside the "repositories" array from above.

{
  "project": "my-project",
  "name": "my-repo",
  "packages": [
    "lodash",
    // ...
  ]
}

Local-level

This is a file called ".bb-npm.js" checked in to the repository.

{
  "packages": [
    "rimraf",
    // ...
  ]
}

These objects are all merged when determining how to update your project.

OptionDescriptionTypeExamplesRequiredDefault
endpointYour private Stash serverString"https://my-stash-server"
cachePathProvide an alternative cache to clone and update depsString"/my/temp/dir"your OS tmp dir + "bb-npm-bot-cache"
userThe user submitting the pull requests. This must match the user from your auth token.String"my-bot-account"
repositoriesA list of repositories to watch and their settingsObject
packagesA list of packages to watch. Leave blank to watch all.Array of Strings"mocha" "lodash"
versionHintSpecify a range. Leave blank to keep the existing range.String"" "~" "^"
titleTemplateOverride the title using a templateString"custom {{package}} {{oldRange}} {{newRange}}""{{package}} {{oldRange}} => {{newRange}}"
branchTemplateOverride the branch name using a templateString"custom{{package}}{{oldVersion}}_{{newVersion}}""bb/{{package}}_{{newVersion}}"
descriptionTemplateOverride the description using a templateString"custom {{package}} {{oldRange}} {{newRange}} {{oldVersion}} {{newVersion}}""test description"
projectName of the project or user. Prefix with "~" if it is a user.String"my-project" "~my-user"
nameName of the repositoryString"my-repo"
disabledDisable processingBooleanfalse
0.0.43

6 years ago

0.0.42

6 years ago

0.0.41

7 years ago

0.0.40

7 years ago

0.0.39

7 years ago

0.0.38

7 years ago

0.0.37

7 years ago

0.0.36

7 years ago

0.0.35

7 years ago

0.0.34

7 years ago

0.0.33

7 years ago

0.0.32

7 years ago

0.0.31

7 years ago

0.0.30

7 years ago

0.0.29

7 years ago

0.0.28

7 years ago

0.0.27

7 years ago

0.0.26

7 years ago

0.0.25

7 years ago

0.0.24

7 years ago

0.0.23

7 years ago

0.0.22

7 years ago

0.0.21

7 years ago

0.0.20

7 years ago

0.0.19

7 years ago

0.0.18

7 years ago

0.0.17

7 years ago

0.0.16

7 years ago

0.0.15

7 years ago

0.0.14

7 years ago

0.0.13

7 years ago

0.0.12

7 years ago

0.0.11

7 years ago

0.0.10

7 years ago

0.0.9

7 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago