From b6281fd63b5ddc14fe312ba7bad922964257b2eb Mon Sep 17 00:00:00 2001 From: Stefan Zweifel Date: Sun, 16 Apr 2023 14:44:53 +0200 Subject: [PATCH] Add Release Drafter --- .github/release-drafter.yml | 45 +++++++++++++++++++++++++++ .github/workflows/release-drafter.yml | 14 +++++++++ 2 files changed, 59 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 0000000..a7cc2bb --- /dev/null +++ b/.github/release-drafter.yml @@ -0,0 +1,45 @@ +name-template: 'v$RESOLVED_VERSION' +tag-template: 'v$RESOLVED_VERSION' +template: | + $CHANGES +change-template: '- $TITLE ([#$NUMBER](https://github.com/stefanzweifel/php-swiss-cantons/pull/$NUMBER))' +categories: + - title: Added + labels: + - 'changelog:added' + - title: Changed + labels: + - 'changelog:changed' + - title: Deprecated + labels: + - 'changelog:deprecated ' + - title: Removed + labels: + - 'changelog:removed' + - title: Fixed + labels: + - 'changelog:fixed' + - title: Security + labels: + - security + - changelog:security + - title: 'Dependency Updates' + labels: + - dependencies + +version-resolver: + major: + labels: + - 'changelog:removed' + minor: + labels: + - 'changelog:added' + - 'changelog:deprecated' + patch: + labels: + - 'changelog:fixed' + - 'changelog:security' + - 'dependency' + +exclude-labels: + - 'skip-changelog' diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml new file mode 100644 index 0000000..896edaf --- /dev/null +++ b/.github/workflows/release-drafter.yml @@ -0,0 +1,14 @@ +name: Release Drafter + +on: + push: + branches: + - main + +jobs: + update_release_draft: + runs-on: ubuntu-latest + steps: + - uses: release-drafter/release-drafter@v5 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}