Skip to content

Commit be16c86

Browse files
authored
add release-drafter configuration (#151)
1 parent 8bc2d40 commit be16c86

2 files changed

Lines changed: 84 additions & 0 deletions

File tree

.github/release-drafter.yml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name-template: "v$RESOLVED_VERSION"
2+
tag-template: "v$RESOLVED_VERSION"
3+
categories:
4+
- title: "⚠️ Breaking Changes"
5+
labels:
6+
- "breaking-change"
7+
- title: "✨ New Features"
8+
labels:
9+
- "feature"
10+
- "enhancement"
11+
- title: "🐛 Bug Fixes"
12+
labels:
13+
- "bug"
14+
- "bugfix"
15+
- title: "📚 Documentation"
16+
labels:
17+
- "documentation"
18+
- "docs"
19+
- title: "🧪 Testing"
20+
labels:
21+
- "testing"
22+
- title: "⚡ Performance"
23+
labels:
24+
- "performance"
25+
- "optimization"
26+
- title: "🔧 Maintenance"
27+
labels:
28+
- "maintenance"
29+
- "chore"
30+
- "refactor"
31+
- title: "📦 Dependencies"
32+
labels:
33+
- "dependencies"
34+
- title: "🔁 CI/CD"
35+
labels:
36+
- "ci"
37+
- "github_actions"
38+
change-template: "- $TITLE by @$AUTHOR in #$NUMBER"
39+
change-title-escapes: '\<*_&'
40+
version-resolver:
41+
major:
42+
labels:
43+
- "breaking-change"
44+
minor:
45+
labels:
46+
- "feature"
47+
- "enhancement"
48+
default: patch
49+
exclude-labels:
50+
- "skip-changelog"
51+
- "no-changelog"
52+
- "duplicate"
53+
- "invalid"
54+
- "wontfix"
55+
template: |
56+
## What's Changed
57+
58+
$CHANGES
59+
60+
**Full Changelog**: https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...v$RESOLVED_VERSION
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+
permissions:
9+
contents: read
10+
11+
jobs:
12+
update-release-draft:
13+
permissions:
14+
# write permission is required to create a github release
15+
contents: write
16+
# write permission is required for autolabeler
17+
# otherwise, read permission is required at least
18+
pull-requests: write
19+
runs-on: ubuntu-latest
20+
steps:
21+
# Drafts your next Release notes as Pull Requests are merged into "main"
22+
- uses: release-drafter/release-drafter@v6
23+
env:
24+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)