Skip to content

Commit 36c189e

Browse files
committed
add release drafter
1 parent 65e55e2 commit 36c189e

2 files changed

Lines changed: 79 additions & 0 deletions

File tree

.github/release-drafter.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name-template: $NEXT_PATCH_VERSION
2+
tag-template: $NEXT_PATCH_VERSION
3+
categories:
4+
- title: 💥 Breaking changes
5+
labels:
6+
- breaking
7+
- title: 🚀 New features and improvements
8+
labels:
9+
- enhancement
10+
- title: 🐛 Bug fixes
11+
labels:
12+
- bug
13+
- title: 📦 Dependency updates
14+
labels:
15+
- dependencies
16+
collapse-after: 15
17+
- title: 📝 Documentation updates
18+
labels:
19+
- documentation
20+
- title: 🌐 Localization and translation
21+
labels:
22+
- localization
23+
- title: 🌐 Community-related changes
24+
labels:
25+
- community
26+
- title: 👻 Maintenance
27+
labels:
28+
- chore
29+
- maintenance
30+
- title: 🚦 Tests
31+
labels:
32+
- test
33+
- title: ✍ Other changes
34+
exclude-labels:
35+
- skip-changelog
36+
- invalid
37+
template: |
38+
<!-- Optional: add a release summary here -->
39+
$CHANGES
40+
41+
autolabeler:
42+
- label: 'documentation'
43+
files:
44+
- '*.md'
45+
branch:
46+
- '/docs{0,1}\/.+/'
47+
- label: 'bug'
48+
branch:
49+
- '/fix\/.+/'
50+
title:
51+
- '/fix/i'
52+
- label: 'enhancement'
53+
branch:
54+
- '/feature\/.+/'
55+

.github/workflows/changelog.yml

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+
workflow_dispatch:
5+
push:
6+
branches:
7+
- main
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
update_release_draft:
14+
permissions:
15+
# write permission is required to create a github release
16+
contents: write
17+
# write permission is required for autolabeler
18+
# otherwise, read permission is required at least
19+
pull-requests: write
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: release-drafter/release-drafter@v6
23+
env:
24+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)