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
parent
de2cff4d47
commit
2c2db623c6
|
@ -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
|
|
@ -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 }}
|
Loading…
Reference in New Issue