Skip to content

Commit e030a78

Browse files
authored
Add release drafter (#378)
1 parent 5a46383 commit e030a78

File tree

2 files changed

+86
-0
lines changed

2 files changed

+86
-0
lines changed

.github/release-drafter.yml

+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name-template: 'v$RESOLVED_VERSION'
2+
tag-template: 'v$RESOLVED_VERSION'
3+
categories:
4+
- title: '🔥 Breaking Changes'
5+
labels:
6+
- 'breaking'
7+
- title: '🚀 Features'
8+
labels:
9+
- 'feature'
10+
- 'enhancement'
11+
- title: '🐛 Bug Fixes'
12+
labels:
13+
- 'bug'
14+
- title: '👋 Deprecated'
15+
labels:
16+
- 'deprecation'
17+
- title: '🔗 Dependency Updates'
18+
labels:
19+
- 'library-update'
20+
- 'dependencies'
21+
- title: '🛠 Internal Updates'
22+
labels:
23+
- 'internal'
24+
- 'kaizen'
25+
- 'test-library-update'
26+
- 'sbt-plugin-update'
27+
- title: '📚 Docs'
28+
labels:
29+
- 'doc'
30+
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
31+
32+
template: |
33+
## What's Changed
34+
35+
$CHANGES
36+
37+
**Full Changelog**: https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...v$RESOLVED_VERSION
38+
39+
40+
autolabeler:
41+
- label: 'doc'
42+
files:
43+
- '*.md'
44+
- label: 'feature'
45+
title:
46+
- '/(support|add)/i'
47+
- label: 'bug'
48+
title:
49+
- '/fix/i'
50+
- label: 'internal'
51+
title:
52+
- '/internal/i'
53+
- label: 'deprecation'
54+
title:
55+
- '/deprecate/i'

.github/workflows/release-drafter.yml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Release Drafter
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
# pull_request event is required only for autolabeler
8+
pull_request:
9+
# Only following types are handled by the action, but one can default to all as well
10+
types: [opened, reopened, synchronize]
11+
# pull_request_target event is required for autolabeler to support PRs from forks
12+
pull_request_target:
13+
types: [opened, reopened, synchronize]
14+
15+
permissions:
16+
contents: read
17+
18+
jobs:
19+
update_release_draft:
20+
permissions:
21+
# write permission is required to create a github release
22+
contents: write
23+
# write permission is required for autolabeler
24+
# otherwise, read permission is required at least
25+
pull-requests: write
26+
runs-on: ubuntu-latest
27+
steps:
28+
# Drafts your next Release notes as Pull Requests are merged into "master"
29+
- uses: release-drafter/release-drafter@v5
30+
env:
31+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)