Skip to content

Commit 0266922

Browse files
authored
Add release-drafter configuration files (#36)
1 parent 38e5c8d commit 0266922

File tree

2 files changed

+78
-0
lines changed

2 files changed

+78
-0
lines changed

.github/release-drafter.yml

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name-template: '$RESOLVED_VERSION'
2+
tag-template: '$RESOLVED_VERSION'
3+
categories:
4+
- title: '🚀 New Features'
5+
labels:
6+
- 'feature'
7+
- title: '✨ Enhancements'
8+
labels:
9+
- 'enhancement'
10+
- title: '🐛 Bug Fixes'
11+
labels:
12+
- 'bug'
13+
- title: '📃 Documentation'
14+
labels:
15+
- 'docs'
16+
- 'documentation'
17+
- title: '🖥️ Website'
18+
labels:
19+
- 'site'
20+
- title: '📎 Github'
21+
labels:
22+
- 'github'
23+
exclude-labels:
24+
- 'ask'
25+
26+
change-template: '- (#$NUMBER) | $TITLE @$AUTHOR'
27+
change-title-escapes: '\<*_&'
28+
29+
version-resolver:
30+
major:
31+
labels:
32+
- 'major'
33+
minor:
34+
labels:
35+
- 'minor'
36+
patch:
37+
labels:
38+
- 'patch'
39+
default: patch
40+
41+
template: |
42+
## Changes
43+
$CHANGES
44+
45+
## Contributors
46+
$CONTRIBUTORS

.github/workflows/release-drafter.yml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Release Drafter
2+
3+
on:
4+
push:
5+
# branches to consider in the event; optional, defaults to all
6+
branches:
7+
- main
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+
# pull_request_target event is required for autolabeler to support PRs from forks
13+
# pull_request_target:
14+
# types: [opened, reopened, synchronize]
15+
16+
jobs:
17+
update_release_draft:
18+
runs-on: ubuntu-latest
19+
steps:
20+
# (Optional) GitHub Enterprise requires GHE_HOST variable set
21+
#- name: Set GHE_HOST
22+
# run: |
23+
# echo "GHE_HOST=${GITHUB_SERVER_URL##https:\/\/}" >> $GITHUB_ENV
24+
25+
# Drafts your next Release notes as Pull Requests are merged into "master"
26+
- uses: release-drafter/release-drafter@v6
27+
# (Optional) specify config name to use, relative to .github/. Default: release-drafter.yml
28+
# with:
29+
# config-name: my-config.yml
30+
# disable-autolabeler: true
31+
env:
32+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)