Skip to content

Commit 7f189c3

Browse files
authored
Add release drafter config
Add release drafter config
2 parents 04ed07d + fe59d37 commit 7f189c3

File tree

2 files changed

+95
-0
lines changed

2 files changed

+95
-0
lines changed

.github/release-drafter-config.yml

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
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: "🧰 Maintenance"
14+
labels:
15+
- "chore"
16+
- "maintenance"
17+
- title: "📚 Documentation"
18+
labels:
19+
- "documentation"
20+
- title: "⬆️ Dependencies"
21+
collapse-after: 5
22+
labels:
23+
- "dependencies"
24+
25+
change-template: "- $TITLE @$AUTHOR (#$NUMBER)"
26+
change-title-escapes: '\<*_&'
27+
version-resolver:
28+
major:
29+
labels:
30+
- "major"
31+
- "breaking"
32+
minor:
33+
labels:
34+
- "minor"
35+
- "feature"
36+
patch:
37+
labels:
38+
- "patch"
39+
- "fix"
40+
- "bugfix"
41+
- "bug"
42+
default: patch
43+
44+
sort-by: "merged_at"
45+
sort-direction: "descending"
46+
47+
exclude-labels:
48+
- "skip-changelog"
49+
50+
autolabeler:
51+
- label: "documentation"
52+
files:
53+
- "*.md"
54+
- label: "bug"
55+
branch:
56+
- '/fix\/.+/'
57+
title:
58+
- "/fix/i"
59+
- label: "enhancement"
60+
branch:
61+
- '/feature\/.+/'
62+
- label: "dependencies"
63+
files:
64+
- "Gemfile.lock"
65+
66+
template: |
67+
## Changes in Release v$RESOLVED_VERSION
68+
$CHANGES
69+
**Full Changelog**: https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...v$RESOLVED_VERSION
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Release Drafter
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- master
8+
pull_request:
9+
types: [opened, reopened, synchronize]
10+
workflow_dispatch:
11+
12+
permissions:
13+
contents: read
14+
15+
jobs:
16+
update_release_draft:
17+
permissions:
18+
contents: write
19+
pull-requests: write
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: release-drafter/release-drafter@v6
23+
with:
24+
config-name: release-drafter-config.yml
25+
env:
26+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)