Files
probot.github.io/_apps/release-drafter.md
Brandon Keepers 2009d02956 Sync data
2018-08-11 20:36:00 +00:00

64 lines
2.0 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: Release Drafter
description: Drafts your next release notes as pull requests are merged into master.
slug: release-drafter
screenshots:
- https://raw.githubusercontent.com/toolmantim/release-drafter/master/design/screenshot.png
authors:
- toolmantim
repository: toolmantim/release-drafter
host: https://release-drafter.now.sh
stars: 221
updated: 2018-08-11 16:29:51 UTC
installations: 52
organizations:
- abraham
- benbalter
- testcontainers
- balloob
- jeanregisser
- home-assistant
- nashaofu
- palkan
- toolmantim
- motss
---
## Usage
1. Install the [Release Drafter GitHub App](https://github.com/apps/release-drafter) into the repositories you wish to create releases in.
2. Add a `.github/release-drafter.yml` configuration file to each repository.
## Example
For example, take the following `.github/release-drafter.yml` file in a repository:
```yml
template: |
## What's Changed
$CHANGES
```
As pull requests are merged, a draft release is kept up-to-date listing the changes, ready to publish when youre ready.
## Template variables
You can use any of the following variables in your template, and theyll be substituted when the release is regenerated:
|Variable|Description|
|-|-|
|`$CHANGES`|The markdown list of pull requests that have been merged.|
|`$PREVIOUS_TAG`|The previous releasess tag.|
## Configuration options
You can configure Release Drafter using the following key in your `.github/release-drafter.yml` file:
|Key|Required|Description|
|-|-|-|
|`template`|Required|The template for the body of the draft release. Use [template variables](#template-variables) to insert values.|
|`branches`|Optional|The branches to listen for configuration updates to `.github/release-drafter.yml` and for merge commits. Useful if you want to test the app on a pull request branch. Default is the repositorys default branch.|
Release Drafter also supports [Probot Config](https://github.com/probot/probot-config), if you want to store your configuration files in a central repository.