Skip to content

Commit 4d6b193

Browse files
committed
feat: 🎸 introduce release-drafter
1 parent f775cd8 commit 4d6b193

File tree

2 files changed

+94
-0
lines changed

2 files changed

+94
-0
lines changed

.github/release-drafter.yml

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
name-template: 'v$RESOLVED_VERSION 🌈'
2+
tag-template: 'v$RESOLVED_VERSION'
3+
4+
categories:
5+
- title: '🚀 Features'
6+
labels:
7+
- 'feature'
8+
- title: '💪 Enhancement'
9+
labels:
10+
- 'enhancement'
11+
- 'ci'
12+
- title: '🐛 Bug Fixes'
13+
labels:
14+
- 'fix'
15+
- 'bugfix'
16+
- 'bug'
17+
- title: '🧰 Maintenance'
18+
label: 'chore'
19+
- title: '🔧 Refactoring'
20+
label: 'refactor'
21+
- title: '📖 Documentation'
22+
label: 'documentation'
23+
- title: '⛓️ Dependency update'
24+
label: 'dependencies'
25+
26+
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
27+
28+
change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks.
29+
30+
version-resolver:
31+
major:
32+
labels:
33+
- 'major'
34+
minor:
35+
labels:
36+
- 'minor'
37+
patch:
38+
labels:
39+
- 'patch'
40+
default: patch
41+
42+
template: |
43+
## Changes
44+
45+
$CHANGES
46+
47+
autolabeler:
48+
- label: feature
49+
branch:
50+
- '/^feat(ure)?[/-].+/'
51+
- label: ci
52+
branch:
53+
- '/^ci[/-].+/'
54+
- label: bug
55+
branch:
56+
- '/^fix[/-].+/'
57+
- label: chore
58+
branch:
59+
- '/^chore[/-].+/'
60+
- label: refactor
61+
branch:
62+
- '/^refactor[/-].+/'
63+
- label: documentation
64+
branch:
65+
- '/^docs[/-].+/'
66+
files:
67+
- '*.md'
68+
- label: enhancement
69+
branch:
70+
- '/(enhancement|improve)[/-].+/'
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+
8+
jobs:
9+
update_release_draft:
10+
runs-on: ubuntu-latest
11+
steps:
12+
# (Optional) GitHub Enterprise requires GHE_HOST variable set
13+
#- name: Set GHE_HOST
14+
# run: |
15+
# echo "GHE_HOST=${GITHUB_SERVER_URL##https:\/\/}" >> $GITHUB_ENV
16+
17+
# Drafts your next Release notes as Pull Requests are merged into "master"
18+
- uses: release-drafter/release-drafter@v5
19+
# (Optional) specify config name to use, relative to .github/. Default: release-drafter.yml
20+
# with:
21+
# config-name: my-config.yml
22+
# disable-autolabeler: true
23+
env:
24+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)