chore(actions): Add `release-drafter` action (#496)

Adds the [`release-drafter` action](https://github.com/release-drafter/release-drafter) to this repository.
It listens on PRs merged to `master` and updates a _draft release_ based on the changes.

If a PR has the label `Topic: CI/CD` when being merged it will be excluded from the draft changelog.
master
Tobias Nett 2020-03-10 20:30:50 +01:00 committed by GitHub
parent de2cff4d47
commit 2c2db623c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 40 additions and 0 deletions

22
.github/release-drafter-config.yml vendored Normal file
View File

@ -0,0 +1,22 @@
name-template: 'Draft for v$NEXT_MINOR_VERSION'
tag-template: 'v$NEXT_MINOR_VERSION'
categories:
- title: '🚀 Features'
labels:
- 'Type: Enhancement'
- title: '🐛 Bug Fixes'
labels:
- 'Type: Bug'
- title: '🧰 Maintenance'
label: 'Type: Maintenance'
change-template: '- #$NUMBER $TITLE (@$AUTHOR)'
exclude-labels:
- 'Topic: CI/CD'
template: |
## Changes
$CHANGES

18
.github/workflows/release-drafter.yml vendored Normal file
View File

@ -0,0 +1,18 @@
name: Release Drafter
on:
push:
# branches to consider in the event; optional, defaults to all
branches:
- master
jobs:
update_release_draft:
runs-on: ubuntu-latest
steps:
# Drafts your next Release notes as Pull Requests are merged into "master"
- uses: release-drafter/release-drafter@v5
with:
config-name: release-drafter-config.yml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}