Skip to content
This repository was archived by the owner on Aug 2, 2022. It is now read-only.

Commit 0b57d93

Browse files
authored
Add workflow to draft release on push (#572)
* Add release drafter workflow * Add more labels to release drafter workflow * Rearrange labels in release drafter workflow
1 parent 51f353d commit 0b57d93

File tree

2 files changed

+63
-0
lines changed

2 files changed

+63
-0
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# The overall template of the release notes
2+
template: |
3+
Open Distro for Elasticsearch Version $RESOLVED_VERSION
4+
$CHANGES
5+
6+
# Setting the formatting and sorting for the release notes body
7+
name-template: Version $RESOLVED_VERSION
8+
change-template: "- $TITLE (PR [#$NUMBER](https://github.com/opendistro-for-elasticsearch/sql/pull/$NUMBER))"
9+
sort-by: merged_at
10+
sort-direction: ascending
11+
12+
# Organizing the tagged PRs into categories
13+
categories:
14+
- title: "Version Upgrades"
15+
labels:
16+
- "version compatibility"
17+
- title: "SQL and PPL"
18+
labels:
19+
- "SQL"
20+
- "PPL"
21+
- title: "SQL CLI"
22+
labels:
23+
- "CLI"
24+
- title: "SQL JDBC"
25+
labels:
26+
- "JDBC"
27+
- title: "SQL ODBC"
28+
labels:
29+
- "ODBC"
30+
- title: "SQL Workbench"
31+
labels:
32+
- "Workbench"
33+
- title: "Enhancements"
34+
labels:
35+
- "enhancement"
36+
- "maintenance"
37+
- title: "Bug Fixes"
38+
labels:
39+
- "bug"
40+
- title: "Documentation"
41+
labels:
42+
- "documentation"
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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+
# Drafts your next Release notes as Pull Requests are merged into "master"
14+
- name: Update draft release notes
15+
uses: release-drafter/release-drafter@v5
16+
with:
17+
config-name: draft-release-notes-config.yml
18+
tag: (None)
19+
version: 1.9.0.0
20+
env:
21+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)