Skip to content

Latest commit

 

History

History
56 lines (38 loc) · 1.59 KB

File metadata and controls

56 lines (38 loc) · 1.59 KB

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:

Name Description Type Default
primaryBranch The primary branch from which releases are started string master
releaseLabels List of labels to add to the release PR. string[] null
releaseType Release strategy string strategy detected from the repository's primary language
handleGHRelease Release to GitHub boolean should release please create a GitHub release, when release pull-requests are merged?

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 header-checker-lint 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.