Skip to content

Commit d04a770

Browse files
authored
adding draft-release github actions workflow (#518)
1 parent 77fec1f commit d04a770

File tree

2 files changed

+86
-0
lines changed

2 files changed

+86
-0
lines changed

.github/draft-release.yml

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
name-template: 'v$RESOLVED_VERSION'
2+
tag-template: '$RESOLVED_VERSION'
3+
version-template: '$MAJOR.$MINOR.$PATCH'
4+
version-resolver:
5+
major:
6+
labels:
7+
- 'major'
8+
minor:
9+
labels:
10+
- 'minor'
11+
- 'enhancement'
12+
patch:
13+
labels:
14+
- 'auto-update'
15+
- 'patch'
16+
- 'fix'
17+
- 'bugfix'
18+
- 'bug'
19+
- 'hotfix'
20+
- 'packages'
21+
- 'docker'
22+
- 'docs'
23+
- 'github'
24+
default: 'minor'
25+
26+
categories:
27+
- title: '🚀 Enhancements'
28+
labels:
29+
- 'enhancement'
30+
- 'patch'
31+
- 'shell'
32+
- 'scripts'
33+
- 'terraform'
34+
- title: '🐛 Bug Fixes'
35+
labels:
36+
- 'fix'
37+
- 'bugfix'
38+
- 'bug'
39+
- 'hotfix'
40+
- title: '🧰 Included Tools'
41+
labels:
42+
- 'packages'
43+
- 'docker'
44+
- title: '📚️ Documentation'
45+
labels:
46+
- 'docs'
47+
- title: '🏗️ Build/Release Maintenance'
48+
labels:
49+
- 'github'
50+
51+
change-template: |
52+
<details>
53+
<summary>$TITLE @$AUTHOR (#$NUMBER)</summary>
54+
55+
$BODY
56+
</details>
57+
58+
template: |
59+
$CHANGES
60+
61+
replacers:
62+
# Remove irrelevant information from Renovate bot
63+
- search: '/---\s+^#.*Renovate configuration(?:.|\n)*?This PR has been generated .*/gm'
64+
replace: ''
65+
# Remove Renovate bot banner image
66+
- search: '/\[!\[[^\]]*Renovate\][^\]]*\](\([^)]*\))?\s*\n+/gm'
67+
replace: ''

.github/workflows/draft-release.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: draft-release
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
semver:
10+
runs-on: ubuntu-latest
11+
steps:
12+
# Drafts your next Release notes as Pull Requests are merged into "master"
13+
- uses: release-drafter/release-drafter@v5
14+
with:
15+
publish: false
16+
prerelease: false
17+
config-name: draft-release.yml
18+
env:
19+
GITHUB_TOKEN: ${{ secrets.PUBLIC_REPO_ACCESS_TOKEN }}

0 commit comments

Comments
 (0)