Skip to content

Commit f13b125

Browse files
norlandrhagenMax Jonespre-commit-ci[bot]
authored
Initial setup of release-drafter (#95)
* Initial setup of release-drafter Co-authored-by: Max Jones <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent d261806 commit f13b125

File tree

2 files changed

+63
-0
lines changed

2 files changed

+63
-0
lines changed

.github/release-drafter.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name-template: "v$RESOLVED_VERSION"
2+
tag-template: "v$RESOLVED_VERSION"
3+
categories:
4+
- title: "Features"
5+
labels:
6+
- "feature"
7+
- "enhancement"
8+
- title: "Bug Fixes"
9+
labels:
10+
- "bug"
11+
- title: "Maintenance"
12+
label: "chore"
13+
change-template: "- $TITLE @$AUTHOR ([#$NUMBER]($URL))"
14+
change-title-escapes: '\<*_&#@'
15+
version-resolver:
16+
major:
17+
labels:
18+
- "major"
19+
minor:
20+
labels:
21+
- "feature"
22+
- "enhancement"
23+
default: patch
24+
exclude-labels:
25+
- "skip-changelog"
26+
template: |
27+
## Changes
28+
29+
$CHANGES

.github/workflows/release-drafter.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
update_release_draft:
14+
permissions:
15+
# write permission is required to create a github release
16+
contents: write
17+
# write permission is required for autolabeler
18+
# otherwise, read permission is required at least
19+
pull-requests: write
20+
runs-on: ubuntu-latest
21+
steps:
22+
# (Optional) GitHub Enterprise requires GHE_HOST variable set
23+
#- name: Set GHE_HOST
24+
# run: |
25+
# echo "GHE_HOST=${GITHUB_SERVER_URL##https:\/\/}" >> $GITHUB_ENV
26+
27+
# Drafts your next Release notes as Pull Requests are merged into "main"
28+
- uses: release-drafter/release-drafter@v5
29+
# (Optional) specify config name to use, relative to .github/. Default: release-drafter.yml
30+
# with:
31+
# config-name: my-config.yml
32+
# disable-autolabeler: true
33+
env:
34+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)