1.2.0 • Published 4 years ago

release-please-bot v1.2.0

Weekly downloads
4
License
Apache-2.0
Repository
github
Last release
4 years ago

release-please

A GitHub App built with Probot that proposes releases based on semantic version commits defined by conventionalcommits.org.

Setup

# Install dependencies
npm install

# Run the bot
npm start

Configuration

To configure the bot, you can create a configuration file: .github/release-please.yml. The contents of this file allow for the following options:

NameDescriptionTypeDefault
primaryBranchThe primary branch from which releases are startedstringmaster
releaseLabelsList of labels to add to the release PR.string[]nullundefined
releaseTypeRelease strategystringstrategy detected from the repository's primary language
handleGHReleaseRelease to GitHubbooleanshould release please create a GitHub release, when release pull-requests are merged?
bumpMinorPreMajorBump minor for breaking changes before GAbooleanwhether to bump a minor version before 1.0.0 on a breaking change

Testing

This bot uses nock for mocking requests to GitHub, and snap-shot-it for capturing responses; This allows updates to the API surface to be treated as a visual diff, rather than tediously asserting against each field.

Running tests:

npm run test

To update snapshots:

npm run test:snap

Contributing

If you have suggestions for how release-please could be improved, or want to report a bug, open an issue! We'd love all and any contributions.

For more, check out the Contributing Guide.

License

Apache 2.0 © 2019 Google Inc.