From b1db75f6f8697786c81f46b1e948c220de958f87 Mon Sep 17 00:00:00 2001 From: Chris Hasenpflug Date: Thu, 30 Jan 2025 21:53:30 -0600 Subject: [PATCH] Add Release Drafter --- .github/release-drafter.yml | 25 +++++++++++++++++++++++++ .github/workflows/release-drafter.yaml | 17 +++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 .github/release-drafter.yml create mode 100644 .github/workflows/release-drafter.yaml diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml new file mode 100644 index 0000000..51bfbfd --- /dev/null +++ b/.github/release-drafter.yml @@ -0,0 +1,25 @@ +# Release drafter configuration https://github.com/release-drafter/release-drafter#configuration + +name-template: "$NEXT_MINOR_VERSION" +tag-template: "$NEXT_MINOR_VERSION" + +categories: + - title: "Breaking Changes" + labels: [breaking] + - title: "Features" + labels: [enhancement, feature] + - title: "Fixes & Refactoring" + labels: [bug, refactoring, bugfix, fix] + - title: "Build System & CI/CD" + labels: [build, ci, testing] + - title: "Documentation" + labels: [documentation] + - title: "Dependency Updates" + labels: [dependencies] + +template: | + ## What's Changed + + $CHANGES + + **Full Changelog**: https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...$NEXT_MINOR_VERSION diff --git a/.github/workflows/release-drafter.yaml b/.github/workflows/release-drafter.yaml new file mode 100644 index 0000000..7c23b0c --- /dev/null +++ b/.github/workflows/release-drafter.yaml @@ -0,0 +1,17 @@ +name: Release Drafter + +on: + push: + branches: + - main + +jobs: + update_release_draft: + permissions: + contents: write + pull-requests: read + runs-on: ubuntu-latest + steps: + - uses: release-drafter/release-drafter@v5 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}