Skip to content
This repository was archived by the owner on Jul 31, 2023. It is now read-only.

Commit d0a8ea2

Browse files
feat: setup release-drafter (#7)
1 parent acba711 commit d0a8ea2

File tree

2 files changed

+63
-0
lines changed

2 files changed

+63
-0
lines changed

.github/release-drafter.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name-template: 'v$RESOLVED_VERSION 🌈'
2+
tag-template: 'v$RESOLVED_VERSION'
3+
categories:
4+
- title: '🚀 Features'
5+
labels:
6+
- 'feat'
7+
- title: '🐛 Bug Fixes'
8+
labels:
9+
- 'fix'
10+
- title: '🧰 Maintenance'
11+
label: 'chore'
12+
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
13+
change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks.
14+
version-resolver:
15+
major:
16+
labels:
17+
- 'major'
18+
minor:
19+
labels:
20+
- 'minor'
21+
patch:
22+
labels:
23+
- 'patch'
24+
default: patch
25+
autolabeler:
26+
- label: 'chore'
27+
branch:
28+
- '/chore\/.+/'
29+
title:
30+
- '/chore/i'
31+
- label: 'fix'
32+
branch:
33+
- '/fix\/.+/'
34+
title:
35+
- '/fix/i'
36+
- label: 'feat'
37+
branch:
38+
- '/feat\/.+/'
39+
title:
40+
- '/feat/i'
41+
template: |
42+
## Changes
43+
44+
$CHANGES
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Release Drafter
2+
on:
3+
push:
4+
branches:
5+
- master
6+
pull_request:
7+
types: [opened, reopened, synchronize]
8+
permissions:
9+
contents: read
10+
jobs:
11+
update_release_draft:
12+
permissions:
13+
contents: write
14+
pull-requests: write
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: release-drafter/release-drafter@v5
18+
env:
19+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)