From 0be792d84843ca6cc495ff9591ff400056727612 Mon Sep 17 00:00:00 2001 From: Yass Almardoud Date: Fri, 12 Jul 2024 10:24:29 +0200 Subject: [PATCH 1/2] #407 added release-drafter.yaml for GH-actions --- .github/release-drafter.yaml | 44 ++++++++++++++++++++++++++ .github/workflows/release-drafter.yaml | 26 +++++++++++++++ 2 files changed, 70 insertions(+) create mode 100644 .github/release-drafter.yaml create mode 100644 .github/workflows/release-drafter.yaml diff --git a/.github/release-drafter.yaml b/.github/release-drafter.yaml new file mode 100644 index 0000000000..04b28faf7a --- /dev/null +++ b/.github/release-drafter.yaml @@ -0,0 +1,44 @@ +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 From aff11522a31800aa24d8b4fd7c6ceb529e1ce9d8 Mon Sep 17 00:00:00 2001 From: Yass Almardoud Date: Fri, 12 Jul 2024 10:26:06 +0200 Subject: [PATCH 2/2] #407 added release-drafter.yaml for GH-actions --- .github/release-drafter.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/release-drafter.yaml b/.github/release-drafter.yaml index 04b28faf7a..370243cdee 100644 --- a/.github/release-drafter.yaml +++ b/.github/release-drafter.yaml @@ -1,4 +1,4 @@ -name-template: 'v$RESOLVED_VERSION 🌈' +name-template: 'v$RESOLVED_VERSION' tag-template: 'v$RESOLVED_VERSION' categories: - title: '✨ Features' @@ -12,7 +12,8 @@ categories: - 'chore' change-template: '- $TITLE (#$NUMBER by @$AUTHOR)' -change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks. +change-title-escapes: '\<*_&' + # You can add # and @ to disable mentions, and add ` to disable code blocks. version-resolver: major: labels: