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

Commit

Permalink
Add workflow to draft release on push (#572)
Browse files Browse the repository at this point in the history
* Add release drafter workflow

* Add more labels to release drafter workflow

* Rearrange labels in release drafter workflow
  • Loading branch information
joshuali925 committed Jul 16, 2020
1 parent 51f353d commit 0b57d93
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 0 deletions.
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 }}

0 comments on commit 0b57d93

Please sign in to comment.