Skip to content

Commit 111253f

Browse files
Add Release Drafter
1 parent eee80a4 commit 111253f

File tree

2 files changed

+43
-0
lines changed

2 files changed

+43
-0
lines changed

.github/RELEASE_DRAFTER.yml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name-template: 'v$RESOLVED_VERSION'
2+
tag-template: 'v$RESOLVED_VERSION'
3+
categories:
4+
- title: 'Features'
5+
labels:
6+
- 'feature'
7+
- 'enhancement'
8+
- title: 'Bug Fixes'
9+
labels:
10+
- 'fix'
11+
- 'bugfix'
12+
- 'bug'
13+
- title: 'Documentation'
14+
label: 'documentation'
15+
change-template: '- $TITLE, by @$AUTHOR (#$NUMBER)'
16+
template: |
17+
# What's changed
18+
19+
$CHANGES

.github/workflows/release-drafter.yml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Release Drafter
2+
3+
permissions:
4+
contents: write
5+
pull-requests: read
6+
7+
on:
8+
push:
9+
branches:
10+
- main
11+
- master
12+
13+
pull_request:
14+
types: [opened, reopened, synchronize, labeled]
15+
16+
jobs:
17+
update_release_draft:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: release-drafter/release-drafter@v5
21+
with:
22+
config-name: RELEASE_DRAFTER.yml
23+
env:
24+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)