Add release drafter

This commit is contained in:
Michel Roegl-Brunner
2025-10-03 14:26:43 +02:00
parent ab7e46cbc0
commit 997d4a9723
2 changed files with 38 additions and 0 deletions

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

@@ -0,0 +1,21 @@
# Template for release drafts
name-template: 'v$NEXT_PATCH_VERSION' # You can switch to $NEXT_MINOR_VERSION or $NEXT_MAJOR_VERSION
tag-template: 'v$NEXT_PATCH_VERSION'
categories:
- title: "🚀 Features"
labels:
- feature
- title: "🐛 Bug Fixes"
labels:
- fix
- bug
- title: "🧰 Maintenance"
labels:
- chore
- refactor
change-template: '- $TITLE (#$NUMBER) by @$AUTHOR'
change-title-template: '### $TITLE'
template: |
## Changes
$CHANGES

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

@@ -0,0 +1,17 @@
name: Release Drafter
on:
push:
branches:
- main
jobs:
update_release_draft:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: release-drafter/release-drafter@v6
with:
config-name: release-drafter.yml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}