Skip to content

Commit 7f0b9e0

Browse files
Merge branch 'peggy/release-note' into develop
2 parents eaceaf7 + 1124bd1 commit 7f0b9e0

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed

.github/release-drafter.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name-template: "Release v$NEXT_PATCH_VERSION"
2+
tag-template: "v$NEXT_PATCH_VERSION"
3+
categories:
4+
- title: 🚀 New Features
5+
labels:
6+
- feature
7+
- title: 🐛 Bug Fixes
8+
labels:
9+
- bug
10+
- title: 🧹 Chores
11+
labels:
12+
- chore
13+
change-template: "- ${{PR.title}} (#${{PR.number}}) by @${{PR.author}}"
14+
no-changes-template: "- No changes in this release."
15+
sort-by: "merged_at"
16+
sort-direction: "descending"
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Generate Release Notes
2+
3+
on:
4+
workflow_dispatch: # Enables manual triggering
5+
release:
6+
types:
7+
- created
8+
9+
jobs:
10+
generate-release-notes:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout Code
14+
uses: actions/checkout@v3
15+
16+
- name: Generate Release Notes
17+
id: notes
18+
uses: release-drafter/release-drafter@v5
19+
with:
20+
config-name: custom-config.yml
21+
22+
- name: Upload Release Notes
23+
run: |
24+
gh release edit ${{ github.event.release.id }} \
25+
--notes "${{ steps.notes.outputs.release_notes }}"

0 commit comments

Comments
 (0)