mirror of
https://github.com/LibreSign/libresign.git
synced 2025-12-18 05:20:45 +01:00
Merge pull request #5074 from LibreSign/feat/release-drafter-automation
chore: improve Release Drafter config with categories, changelog temp…
This commit is contained in:
commit
c4894c630e
2 changed files with 48 additions and 1 deletions
23
.github/release-drafter.yml
vendored
23
.github/release-drafter.yml
vendored
|
|
@ -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: |
|
||||
## What’s 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
26
.github/workflows/release-drafter.yml
vendored
Normal 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 }}
|
||||
Loading…
Add table
Reference in a new issue