Skip to content

Commit b2c9239

Browse files
authored
Add release drafter (#40)
1 parent 7cc6931 commit b2c9239

File tree

4 files changed

+53
-0
lines changed

4 files changed

+53
-0
lines changed

.github/pr-labeler.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
feature: ['feature/*', 'feat/*']
2+
enhancement: enhancement/*
3+
bug: fix/*
4+
breaking: breaking/*
5+
documentation: doc/*

.github/release-drafter.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name-template: 'v$NEXT_PATCH_VERSION'
2+
tag-template: 'v$NEXT_PATCH_VERSION'
3+
exclude-labels:
4+
- 'Meta: Exclude From Changelog'
5+
- 'auto-changelog'
6+
categories:
7+
- title: '⚠️ Breaking changes'
8+
label: 'breaking'
9+
- title: '🚀 Features'
10+
label: 'feature'
11+
- title: '✨ Enhancement'
12+
label: 'enhancement'
13+
- title: '📘 Documentation'
14+
label: 'documentation'
15+
- title: '🐛 Bug Fixes'
16+
label: 'bug'
17+
template: |
18+
## What's changed
19+
$CHANGES
20+
## Contributors to this release
21+
$CONTRIBUTORS

.github/workflows/pr-labeler.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: PR Labeler
2+
on:
3+
pull_request:
4+
types: [opened]
5+
6+
jobs:
7+
pr-labeler:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: TimonVS/pr-labeler-action@v3
11+
env:
12+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Release Drafter
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
update_release_draft:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Update release draft
13+
uses: release-drafter/release-drafter@v5
14+
env:
15+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)