Skip to content

Commit 1e3d9f8

Browse files
committed
ci(release): configure release drafter
- Add Release Drafter workflow to automate release notes - Configure categories for Feature, Bug, and Maintenance - Set version resolution strategy based on labels
1 parent 8270975 commit 1e3d9f8

File tree

2 files changed

+61
-0
lines changed

2 files changed

+61
-0
lines changed

.github/release-drafter.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name-template: "v$NEXT_PATCH_VERSION"
2+
tag-template: "v$NEXT_PATCH_VERSION"
3+
categories:
4+
- title: "🚀 Features"
5+
labels:
6+
- "feature"
7+
- "feat"
8+
- title: "🐛 Bug Fixes"
9+
labels:
10+
- "fix"
11+
- "bug"
12+
- title: "🧰 Maintenance"
13+
labels:
14+
- "chore"
15+
- "maintenance"
16+
- "refactor"
17+
- "ci"
18+
- "docs"
19+
- "style"
20+
- "test"
21+
change-template: "- $TITLE @$AUTHOR (#$NUMBER)"
22+
version-resolver:
23+
major:
24+
labels:
25+
- "major"
26+
- "breaking"
27+
minor:
28+
labels:
29+
- "minor"
30+
- "feature"
31+
- "feat"
32+
patch:
33+
labels:
34+
- "patch"
35+
- "fix"
36+
- "bug"
37+
- "chore"
38+
- "docs"
39+
template: |
40+
## Changes
41+
$CHANGES
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Release Drafter
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
# pull_request:
8+
# types: [opened, reopened, synchronize]
9+
10+
permissions:
11+
contents: write
12+
pull-requests: read
13+
14+
jobs:
15+
update_release_draft:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: release-drafter/release-drafter@v6
19+
env:
20+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)