Skip to content

Commit eec0434

Browse files
committed
chore: add release-drafter action
This will draft a release based on changes since the last release. The changes are based on merged PRs.
1 parent b965767 commit eec0434

File tree

2 files changed

+81
-0
lines changed

2 files changed

+81
-0
lines changed

.github/release-drafter.yml

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
name-template: "v$RESOLVED_VERSION"
2+
tag-template: "v$RESOLVED_VERSION"
3+
categories:
4+
- title: "🚧 Breaking changes"
5+
labels:
6+
- "major-bump"
7+
- title: "🚀 New Features"
8+
labels:
9+
- "feature"
10+
- "enhancement"
11+
- title: "🐛 Bug Fixes"
12+
labels:
13+
- "fix"
14+
- "bugfix"
15+
- "bug"
16+
- title: "🧰 Maintenance"
17+
labels:
18+
- "chore"
19+
- "other"
20+
- "dependencies"
21+
- title: "📝 Documentation"
22+
labels:
23+
- "documentation"
24+
version-resolver:
25+
major:
26+
labels:
27+
- "major-bump"
28+
minor:
29+
labels:
30+
- "minor-bump"
31+
- "feature"
32+
patch:
33+
labels:
34+
- "patch-bump"
35+
default: patch
36+
exclude-labels:
37+
- "skip-changelog"
38+
autolabeler:
39+
- label: "chore"
40+
title:
41+
- "/chore/i"
42+
branch:
43+
- '/chore\/.+/'
44+
- '/dependabot\/.+/'
45+
- label: "fix"
46+
title:
47+
- "/fix/i"
48+
branch:
49+
- '/fix\/.+/'
50+
- label: "feature"
51+
title:
52+
- "/feat/i"
53+
branch:
54+
- '/feature\/.+/'
55+
- '/feat\/.+/'
56+
- label: "documentation"
57+
title:
58+
- "/docs/i"
59+
branch:
60+
- '/docs\/.+/'
61+
template: |
62+
# Changes since $PREVIOUS_TAG
63+
64+
$CHANGES
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Release Drafter
2+
on:
3+
push:
4+
branches:
5+
- master
6+
- main
7+
pull_request:
8+
types: [opened, reopened, synchronize]
9+
10+
jobs:
11+
update_release_draft:
12+
runs-on: ubuntu-latest
13+
steps:
14+
# Drafts your next Release notes as Pull Requests are merged into "master"
15+
- uses: release-drafter/release-drafter@v5
16+
env:
17+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)