From d51f1fceee7dc2a56eb496edfb9b5a385e5081e7 Mon Sep 17 00:00:00 2001 From: sanix-darker Date: Thu, 15 Jun 2023 03:15:12 +0200 Subject: [PATCH] ci(dx): add a release drafter workflow --- .github/release-drafter.yml | 34 +++++++++++++++++++++++++++ .github/workflows/release-drafter.yml | 16 +++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 .github/release-drafter.yml create mode 100644 .github/workflows/release-drafter.yml diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml new file mode 100644 index 000000000..a7ea46d39 --- /dev/null +++ b/.github/release-drafter.yml @@ -0,0 +1,34 @@ +# This file is used by Release Drafter +# GitHub Action https://github.com/marketplace/actions/release-drafter +# Each merged PR is added in the right section of the draft release based on its label. +categories: + - title: "💥 Breaking Changes" + label: "breaking" + - title: "✨ Features" + label: "enhancement" + - title: "🐛 Fixes" + label: "bug" + - title: "🏎 Performance" + label: "performance" + - title: "🔨 Refactoring" + label: "refactoring" + - title: "❌ Removals and Deprecations" + label: "removal" + - title: "🚥 Testing" + label: "testing" + - title: "💄 Style" + label: "style" + - title: "📖 Documentation" + label: "documentation" + - title: "👷‍♂️ Continuous Integration" + label: "ci" + - title: "📦 Build and dependencies" + labels: + - "build" + - "dependencies" +exclude-labels: + - "skip changelog" +template: | + ## Changes + + $CHANGES diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml new file mode 100644 index 000000000..52fa63b3d --- /dev/null +++ b/.github/workflows/release-drafter.yml @@ -0,0 +1,16 @@ +name: Release Drafter + +on: + push: + branches: + - main + pull_request: + types: [opened, reopened, synchronize] + +jobs: + update_release_draft: + runs-on: ubuntu-latest + steps: + - uses: release-drafter/release-drafter@v5 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}