diff --git a/.github/release-drafter.yaml b/.github/release-drafter.yaml new file mode 100644 index 0000000000..370243cdee --- /dev/null +++ b/.github/release-drafter.yaml @@ -0,0 +1,45 @@ +name-template: 'v$RESOLVED_VERSION' +tag-template: 'v$RESOLVED_VERSION' +categories: + - title: '✨ Features' + labels: + - 'feature' + - title: '🐛 Bug Fixes' + labels: + - 'bug' + - title: '🧰 Maintenance' + labels: + - 'chore' + +change-template: '- $TITLE (#$NUMBER by @$AUTHOR)' +change-title-escapes: '\<*_&' + # You can add # and @ to disable mentions, and add ` to disable code blocks. +version-resolver: + major: + labels: + - 'major' + minor: + labels: + - 'minor' + patch: + labels: + - 'patch' + default: patch +exclude-labels: + - 'skip-changelog' +template: | + ## What's changed + + $CHANGES +autolabeler: + - label: 'chore' + branch: + - '/chore\/.+/' + - label: 'bug' + branch: + - '/bug\/.+/' + - '/bugfix\/.+/' + - '/hotfix\/.+/' + - label: 'feature' + branch: + - '/feature\/.+/' \ No newline at end of file diff --git a/.github/workflows/release-drafter.yaml b/.github/workflows/release-drafter.yaml new file mode 100644 index 0000000000..a7e32af917 --- /dev/null +++ b/.github/workflows/release-drafter.yaml @@ -0,0 +1,26 @@ + +name: Release Drafter + +on: + push: + branches: + - master + pull_request: + # pull_request event is required only for auto labeler + types: [ opened, reopened, closed ] + +jobs: + update_release_draft: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Set up release drafter + # Drafts your next Release notes as Pull Requests are merged into "master" + uses: release-drafter/release-drafter@v5 + with: + config-name: release_drafter.yml + disable-autolabeler: false + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file