diff --git a/.github/release-notes-drafter-config.yml b/.github/release-notes-drafter-config.yml new file mode 100644 index 000000000000..9c7c5975d25a --- /dev/null +++ b/.github/release-notes-drafter-config.yml @@ -0,0 +1,25 @@ + +# Configuration for Release Drafter: https://github.com/toolmantim/release-drafter +template: | + Compatible with OpenSearch Dashboards (set version here). + $CHANGES +# Setting the formatting and sorting for the release notes body +name-template: Version (set version here) +change-template: '* $TITLE ([#$NUMBER](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/$NUMBER))' +sort-by: merged_at +sort-direction: ascending +replacers: + - search: "##" + replace: "###" +include-labels: ["v1.3.0"] + +# Organizing the tagged PRs into unified categories +categories: + - title: "Enhancements" + labels: "enhancement" + + - title: "Bug fixes" + labels: "bug" + + - title: "Maintenance" + labels: "maintenance" \ No newline at end of file diff --git a/.github/workflows/draft-release-notes-workflow.yml b/.github/workflows/draft-release-notes-workflow.yml new file mode 100644 index 000000000000..77da1a39cd34 --- /dev/null +++ b/.github/workflows/draft-release-notes-workflow.yml @@ -0,0 +1,19 @@ +name: Release Drafter + +on: + push: + pull_request: + +jobs: + update_release_draft: + name: Update draft release notes + runs-on: ubuntu-latest + steps: + - name: Update draft release notes + uses: release-drafter/release-drafter@v5 + with: + config-name: release-notes-drafter-config.yml + name: Version (set here) + tag: (None) + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file