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

Add workflow to draft release on push #572

Merged
merged 3 commits into from Jul 16, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
42 changes: 42 additions & 0 deletions .github/draft-release-notes-config.yml
@@ -0,0 +1,42 @@
# The overall template of the release notes
template: |
Open Distro for Elasticsearch Version $RESOLVED_VERSION
$CHANGES

# Setting the formatting and sorting for the release notes body
name-template: Version $RESOLVED_VERSION
change-template: "- $TITLE (PR [#$NUMBER](https://github.com/opendistro-for-elasticsearch/sql/pull/$NUMBER))"
sort-by: merged_at
sort-direction: ascending

# Organizing the tagged PRs into categories
categories:
- title: "Version Upgrades"
labels:
- "version compatibility"
- title: "SQL and PPL"
labels:
- "SQL"
- "PPL"
- title: "SQL CLI"
labels:
- "CLI"
- title: "SQL JDBC"
labels:
- "JDBC"
- title: "SQL ODBC"
labels:
- "ODBC"
- title: "SQL Workbench"
labels:
- "Workbench"
- title: "Enhancements"
labels:
- "enhancement"
- "maintenance"
- title: "Bug Fixes"
labels:
- "bug"
- title: "Documentation"
labels:
- "documentation"
21 changes: 21 additions & 0 deletions .github/workflows/draft-release-notes-workflow.yml
@@ -0,0 +1,21 @@
name: Release Drafter

on:
push:
branches:
- master

jobs:
update_release_draft:
name: Update draft release notes
runs-on: ubuntu-latest
steps:
# Drafts your next Release notes as Pull Requests are merged into "master"
- name: Update draft release notes
uses: release-drafter/release-drafter@v5
with:
config-name: draft-release-notes-config.yml
tag: (None)
version: 1.9.0.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}