Skip to content

Commit a84d800

Browse files
committed
feat: support release drafter
1 parent e07e801 commit a84d800

2 files changed

Lines changed: 81 additions & 0 deletions

File tree

.github/release-drafter.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name-template: 'v$RESOLVED_VERSION'
2+
tag-template: 'v$RESOLVED_VERSION'
3+
4+
categories:
5+
- title: '🚀 Features'
6+
labels:
7+
- 'feature'
8+
- 'enhancement'
9+
- title: '🐛 Bug Fixes'
10+
labels:
11+
- 'fix'
12+
- 'bugfix'
13+
- 'bug'
14+
- title: '🧰 Maintenance'
15+
labels:
16+
- 'chore'
17+
- 'maintenance'
18+
- title: '📚 Documentation'
19+
labels:
20+
- 'documentation'
21+
- 'docs'
22+
- title: '🔧 Dependencies'
23+
labels:
24+
- 'dependencies'
25+
- 'deps'
26+
27+
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
28+
29+
change-title-escapes: '\<*_&'
30+
31+
version-resolver:
32+
major:
33+
labels:
34+
- 'major'
35+
- 'breaking'
36+
minor:
37+
labels:
38+
- 'minor'
39+
- 'feature'
40+
- 'enhancement'
41+
patch:
42+
labels:
43+
- 'patch'
44+
- 'fix'
45+
- 'bugfix'
46+
- 'bug'
47+
default: patch
48+
49+
template: |
50+
## Changes
51+
52+
$CHANGES
53+
54+
**Full Changelog**: https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...v$RESOLVED_VERSION
55+
56+
exclude-labels:
57+
- 'skip-changelog'
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
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: read
12+
pull-requests: read
13+
14+
jobs:
15+
update_release_draft:
16+
runs-on: ubuntu-latest
17+
permissions:
18+
contents: write
19+
pull-requests: write
20+
steps:
21+
- name: Release Drafter
22+
uses: release-drafter/release-drafter@v6.1.0
23+
env:
24+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)