set up release-drafter (#1503)

see https://github.com/marketplace/actions/release-drafter#configuration for description of the config options
This commit is contained in:
Martin Raifer 2025-04-02 15:18:11 +02:00 committed by GitHub
parent ca93ae1653
commit be215c5ab7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 74 additions and 0 deletions

51
.github/release-drafter.yml vendored Normal file
View file

@ -0,0 +1,51 @@
name-template: 'v$RESOLVED_VERSION'
tag-template: 'v$RESOLVED_VERSION'
categories:
- title: 'New Presets'
labels:
- 'new-preset'
- title: 'New and Changed Fields'
labels:
- 'field'
- 'new-field'
- 'new-value'
- title: 'Changed Presets'
labels:
- 'add-field'
- 'new-icon'
- 'new-label'
- title: 'Regional Presets and Fields'
labels:
- 'regional'
- title: 'Deprecated Tags'
labels:
- 'deprecating'
- title: 'Bug Fixes'
labels:
- 'bug'
- title: 'Documentation and Other Changes'
label: 'ci'
label: 'github-actions'
label: 'documentation'
label: 'new-category'
label: 'javascript'
label: 'schema-builder'
label: 'schema'
- title: 'Dependencies'
collapse-after: 3
labels:
- 'dependencies'
change-template: '* $TITLE (#$NUMBER, thanks @$AUTHOR)'
change-title-escapes: '\<*_&'
version-resolver:
major:
labels:
- 'breaking'
minor:
labels:
- 'enhancement'
patch:
labels:
- 'bug'
default: minor
template: $CHANGES

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

@ -0,0 +1,23 @@
name: Release Drafter
on:
push:
branches:
- main
permissions:
contents: read
jobs:
update_release_draft:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
# Drafts your next Release notes as Pull Requests are merged into "master"
- uses: release-drafter/release-drafter@v6
# (Optional) specify config name to use, relative to .github/. Default: release-drafter.yml
with:
disable-autolabeler: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}