Skip to content

Commit 375d7be

Browse files
authored
Add release draft workflow (opendistro-for-elasticsearch#35)
Add draft config and workflow file.
1 parent 7338d8f commit 375d7be

File tree

2 files changed

+59
-0
lines changed

2 files changed

+59
-0
lines changed
+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# The overall template of the release notes
2+
template: |
3+
$CHANGES
4+
5+
# Setting the formatting and sorting for the release notes body
6+
name-template: Version (set version here)
7+
change-template: '* $TITLE (#$NUMBER)'
8+
sort-by: merged_at
9+
sort-direction: ascending
10+
replacers:
11+
- search: '##'
12+
replace: '###'
13+
14+
# Organizing the tagged PRs into categories
15+
categories:
16+
- title: 'Breaking Changes'
17+
labels:
18+
- 'Breaking Changes'
19+
- title: 'Features'
20+
labels:
21+
- 'Features'
22+
- title: 'Enhancements'
23+
labels:
24+
- 'Enhancements'
25+
- title: 'Bug Fixes'
26+
labels:
27+
- 'Bug Fixes'
28+
- title: 'Infrastructure'
29+
labels:
30+
- 'Infrastructure'
31+
- title: 'Documentation'
32+
labels:
33+
- 'Documentation'
34+
- title: 'Maintenance'
35+
labels:
36+
- 'Maintenance'
37+
- title: 'Refactoring'
38+
labels:
39+
- 'Refactoring'
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Release Drafter
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
update_release_draft:
10+
name: Update draft release notes
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Update draft release notes
14+
uses: release-drafter/release-drafter@v5
15+
with:
16+
config-name: draft-release-notes-config.yml
17+
name: Version (set here)
18+
tag: (None)
19+
env:
20+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)