Skip to content

Commit ab7918f

Browse files
committed
ci: Add release-drafter
1 parent 4869bca commit ab7918f

2 files changed

Lines changed: 111 additions & 0 deletions

File tree

.github/release-drafter.yml

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
name-template: "v$RESOLVED_VERSION"
2+
tag-template: "v$RESOLVED_VERSION"
3+
4+
categories:
5+
- title: '⚠️ Breaking changes'
6+
labels:
7+
- 'breaking change'
8+
- title: '🚀 Features'
9+
labels:
10+
- 'feature'
11+
- title: '🐛 Bug Fixes'
12+
labels:
13+
- 'bug'
14+
- title: '📃 Documents'
15+
labels:
16+
- 'docs'
17+
- title: '🧩 Dependency Updates'
18+
labels:
19+
- 'deps'
20+
- 'dependencies'
21+
- 'bump'
22+
- 'chore'
23+
collapse-after: 5
24+
- title: '🔬 Others'
25+
labels:
26+
- 'style'
27+
- 'refactor'
28+
- 'test'
29+
- 'ci'
30+
collapse-after: 5
31+
32+
autolabeler:
33+
- label: 'breaking change'
34+
title:
35+
- '/!:/i'
36+
- label: 'feature'
37+
title:
38+
- '/feat:/i'
39+
- label: 'bug'
40+
title:
41+
- '/fix:/i'
42+
- label: 'style'
43+
title:
44+
- '/style:/i'
45+
- label: 'refactor'
46+
title:
47+
- '/refactor:/i'
48+
- label: 'test'
49+
title:
50+
- '/test:/i'
51+
- label: 'chore'
52+
title:
53+
- '/chore:/i'
54+
- label: 'docs'
55+
title:
56+
- '/docs:/i'
57+
- label: 'ci'
58+
title:
59+
- '/ci:/i'
60+
- label: 'dependencies'
61+
title:
62+
- '/deps:/i'
63+
- '/dependencies:/i'
64+
- '/bump:/i'
65+
66+
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
67+
change-title-escapes: '\<*_&'
68+
69+
version-resolver:
70+
major:
71+
labels:
72+
- 'major'
73+
minor:
74+
labels:
75+
- 'minor'
76+
patch:
77+
labels:
78+
- 'patch'
79+
default: patch
80+
81+
template: |
82+
## Changes
83+
84+
$CHANGES
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Release Drafter
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
types:
9+
- opened
10+
- reopened
11+
- edited
12+
- synchronize
13+
14+
permissions:
15+
contents: read
16+
17+
jobs:
18+
update_release_draft:
19+
permissions:
20+
contents: write
21+
pull-requests: write
22+
checks: write
23+
runs-on: ubuntu-latest
24+
steps:
25+
- uses: release-drafter/release-drafter@v5
26+
env:
27+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)