Skip to content

Commit 54594cb

Browse files
committed
add release-drafter
1 parent 43f65fc commit 54594cb

File tree

2 files changed

+125
-0
lines changed

2 files changed

+125
-0
lines changed

.github/release-drafter.yml

+96
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
name-template: 'v$RESOLVED_VERSION'
2+
tag-template: 'v$RESOLVED_VERSION'
3+
categories:
4+
- title: '🚀 New'
5+
labels:
6+
- '✏️ Feature'
7+
- title: '🧹 Updates'
8+
labels:
9+
- '🧹 Updates'
10+
- '🤖 Dependencies'
11+
- title: '🐛 Fixes'
12+
labels:
13+
- '☢️ Bug'
14+
- title: '📚 Documentation'
15+
labels:
16+
- '📒 Documentation'
17+
change-template: '- $TITLE (#$NUMBER)'
18+
change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks.
19+
sort-by: 'title'
20+
version-resolver:
21+
major:
22+
labels:
23+
- 'major'
24+
minor:
25+
labels:
26+
- 'minor'
27+
- '✏️ Feature'
28+
patch:
29+
labels:
30+
- 'patch'
31+
- '📒 Documentation'
32+
- '☢️ Bug'
33+
- '🤖 Dependencies'
34+
- '🧹 Updates'
35+
default: patch
36+
autolabeler:
37+
- label: '📒 Documentation'
38+
title:
39+
- '/docs/i'
40+
- '/doc:/i'
41+
- '/\[doc\]/i'
42+
- '/README/i'
43+
- '/typos/i'
44+
- '/comment/i'
45+
- '/📚/i'
46+
- '/📒/i'
47+
- '/📝/i'
48+
- '/documentation/i'
49+
- label: '☢️ Bug'
50+
title:
51+
- '/fix/i'
52+
- '/race/i'
53+
- '/bug/i'
54+
- '/missing/i'
55+
- '/correct/i'
56+
- '/🐛/i'
57+
- '/☢/i'
58+
- '/🩹/i'
59+
- '/🚨/i'
60+
- label: '🧹 Updates'
61+
title:
62+
- '/improve/i'
63+
- '/update/i'
64+
- '/refactor/i'
65+
- '/deprecated/i'
66+
- '/remove/i'
67+
- '/unused/i'
68+
- '/test/i'
69+
- '/⚡/i'
70+
- '/👷/i'
71+
- '/🚧/i'
72+
- '/♻️/i'
73+
- '/🎨/i'
74+
- '/🧪/i'
75+
- '/🧹/i'
76+
- label: '🤖 Dependencies'
77+
title:
78+
- '/bumb/i'
79+
- '/dependencies/i'
80+
- '/📦/i'
81+
- '/🤖/i'
82+
- label: '✏️ Feature'
83+
title:
84+
- '/feature/i'
85+
- '/create/i'
86+
- '/implement/i'
87+
- '/add/i'
88+
- '/🚀/i'
89+
- '/✨/i'
90+
- '/🔥/i'
91+
template: |
92+
$CHANGES
93+
94+
**Full Changelog**: https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...v$RESOLVED_VERSION
95+
96+
Thank you $CONTRIBUTORS for making this update possible.

.github/workflows/release-drafter.yml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Release Drafter
2+
3+
on:
4+
push:
5+
# branches to consider in the event; optional, defaults to all
6+
branches:
7+
- master
8+
# pull_request event is required only for autolabeler
9+
pull_request:
10+
# Only following types are handled by the action, but one can default to all as well
11+
types: [opened, reopened, synchronize]
12+
13+
jobs:
14+
update_release_draft:
15+
runs-on: ubuntu-latest
16+
steps:
17+
# (Optional) GitHub Enterprise requires GHE_HOST variable set
18+
#- name: Set GHE_HOST
19+
# run: |
20+
# echo "GHE_HOST=${GITHUB_SERVER_URL##https:\/\/}" >> $GITHUB_ENV
21+
22+
# Drafts your next Release notes as Pull Requests are merged into "master"
23+
- uses: release-drafter/release-drafter@v5
24+
# (Optional) specify config name to use, relative to .github/. Default: release-drafter.yml
25+
# with:
26+
# config-name: my-config.yml
27+
# disable-autolabeler: true
28+
env:
29+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)