Merge pull request #5074 from LibreSign/feat/release-drafter-automation

chore: improve Release Drafter config with categories, changelog temp…
This commit is contained in:
Samuelson Brito 2025-05-29 09:37:54 -04:00 committed by GitHub
commit c4894c630e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 48 additions and 1 deletions

View file

@ -3,14 +3,31 @@
name-template: 'v$RESOLVED_VERSION'
tag-template: 'v$RESOLVED_VERSION'
categories:
- title: '🚀 Features'
label: 'feature'
labels:
- 'feature'
- 'feat'
- title: '🐛 Bug Fixes'
labels:
- 'fix'
- 'bugfix'
- 'bug'
- title: '🛠️ Changes'
labels:
- 'chore'
- 'refactor'
- 'docs'
- title: '📦 Dependencies'
labels:
- 'dependencies'
- title: '🧪 Tests'
labels:
- 'test'
change-template: '- $TITLE [#$NUMBER]($URL)'
version-resolver:
major:
labels:
@ -22,7 +39,11 @@ version-resolver:
labels:
- 'patch'
default: patch
template: |
## Whats Changed
$CHANGES
Milestone: $RESOLVED_VERSION
**Full Changelog**: https://github.com/LibreSign/libresign/compare/$PREVIOUS_TAG...$NEXT_TAG

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

@ -0,0 +1,26 @@
# SPDX-FileCopyrightText: 2025 LibreCode coop and contributors
# SPDX-License-Identifier: AGPL-3.0-or-later
name: Release Drafter
permissions:
contents: read
pull-requests: write
on:
push:
branches:
- main
pull_request:
types: [closed]
jobs:
update_release_draft:
if: github.event.pull_request.merged == true || github.event_name == 'push'
runs-on: ubuntu-latest
steps:
- uses: release-drafter/release-drafter@v5
with:
config-name: release-drafter.yml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}