Skip to content

Commit 406ebb2

Browse files
chore: Add auto release drafting
Utilizing the external release-drafter gh action
1 parent a83ae87 commit 406ebb2

File tree

2 files changed

+69
-0
lines changed

2 files changed

+69
-0
lines changed

.github/release-drafter.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name-template: 'v$RESOLVED_VERSION'
2+
tag-template: 'v$RESOLVED_VERSION'
3+
template: |
4+
# What's Changed
5+
6+
$CHANGES
7+
8+
**Full Changelog**: https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...v$RESOLVED_VERSION
9+
10+
11+
categories:
12+
- title: 'New'
13+
label: 'Type: Feature'
14+
15+
- title: 'Bug Fixes'
16+
label: 'Type: Bug'
17+
18+
- title: 'Improvements'
19+
label: 'Type: Enhancement'
20+
21+
- title: 'Other changes'
22+
23+
- title: 'Documentation'
24+
label: 'Documentation'
25+
collapse-after: 5
26+
27+
28+
version-resolver:
29+
major:
30+
labels:
31+
- 'Type: Breaking'
32+
minor:
33+
labels:
34+
- 'Type: Feature'
35+
patch:
36+
labels:
37+
- 'Type: Bug'
38+
- 'Documentation'
39+
- 'Type: Security'
40+
41+
exclude-labels:
42+
- 'Skip-Changelog'
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Release Drafter
2+
3+
4+
on:
5+
push:
6+
branches:
7+
- main
8+
9+
10+
permissions:
11+
contents: read
12+
13+
14+
jobs:
15+
update_release_draft:
16+
permissions:
17+
contents: write
18+
pull-requests: read
19+
20+
runs-on: ubuntu-latest
21+
steps:
22+
# Drafts your next Release notes as Pull Requests are merged into "master"
23+
- uses: release-drafter/release-drafter@v5
24+
with:
25+
disable-autolabeler: true
26+
env:
27+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)