diff --git a/.github/draft-release-notes-config.yml b/.github/draft-release-notes-config.yml new file mode 100644 index 0000000000..8810497fef --- /dev/null +++ b/.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" diff --git a/.github/workflows/draft-release-notes-workflow.yml b/.github/workflows/draft-release-notes-workflow.yml new file mode 100644 index 0000000000..1b2e7b2797 --- /dev/null +++ b/.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 }}