From 7be5e9978a8acd8c4e3228e387c676699eaaa818 Mon Sep 17 00:00:00 2001 From: Sanooj Es Date: Sun, 1 Sep 2024 20:01:57 +0530 Subject: [PATCH] =?UTF-8?q?=E2=9A=99=EF=B8=8F=20ci:=20add=20release=20draf?= =?UTF-8?q?ter?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/release-drafter.yml | 33 +++++++++++++++++++++++++++++++++ .github/workflows/release.yml | 26 ++++++++++++++++++++++++++ 2 files changed, 59 insertions(+) create mode 100644 .github/release-drafter.yml create mode 100644 .github/workflows/release.yml diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml new file mode 100644 index 00000000..da162a61 --- /dev/null +++ b/.github/release-drafter.yml @@ -0,0 +1,33 @@ +name-template: 'v$NEXT_PATCH_VERSION' +tag-template: 'v$NEXT_PATCH_VERSION' + +categories: + - title: '✨ Features' + labels: + - 'feat' + - 'enhancement' + description: 'New features and enhancements.' + - title: '🐛 Bug Fixes' + labels: + - 'bug' + - 'fix' + description: 'Bug fixes and patches.' + - title: '🧰 Maintenance' + labels: + - 'chore' + - 'docs' + - 'refactor' + - 'style' + description: 'General maintenance tasks and improvements.' + +exclude-labels: + - 'skip-release' + +template: | + ## Spicetify Lucid v$NEXT_PATCH_VERSION + + ### 🚀 Highlights + $CHANGES + + ### 🛠️ Contributors + $CONTRIBUTORS diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..d02ab5ce --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,26 @@ +name: Release Drafter + +on: + push: + branches: + - main + pull_request: + types: [opened, reopened, synchronize] + pull_request_target: + types: [opened, reopened, synchronize] + +permissions: + contents: read + +jobs: + update_release_draft: + permissions: + contents: write + pull-requests: write + runs-on: ubuntu-latest + steps: + - uses: release-drafter/release-drafter@v6 + with: + config-name: release-drafter.yml + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}