From ae519dcd9c92a3566b1849ccf3102506f78bae6c Mon Sep 17 00:00:00 2001 From: Jan Macku Date: Fri, 3 May 2024 16:10:05 +0200 Subject: [PATCH] ci: add release-drafter workflow --- .github/release-drafter.yml | 62 +++++++++++++++++++++++++++ .github/workflows/release-drafter.yml | 24 +++++++++++ 2 files changed, 86 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..b6f9287 --- /dev/null +++ b/.github/release-drafter.yml @@ -0,0 +1,62 @@ +--- +# Source: https://github.com/release-drafter/release-drafter/blob/f551477c43766f7020024aa95f1074aeeb96a0bf/.github/release-drafter.yml + +name-template: 'v$RESOLVED_VERSION' +tag-template: 'v$RESOLVED_VERSION' + +template: | + # What's Changed + + $CHANGES + + **Full Changelog**: https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...v$RESOLVED_VERSION + +categories: + - title: 'Breaking' + label: 'type: breaking' + + - title: 'New' + label: 'type: feature' + + - title: 'Bug Fixes' + label: 'type: bugfix' + + - title: 'Maintenance' + labels: + - 'type: maintenance' + - 'type: performance' + + - title: 'Documentation' + label: 'type: documentation' + + - title: 'Other changes' + + - title: 'Automation and CI changes' + label: 'type: ci' + + - title: 'Dependency Updates' + label: 'type: dependencies' + collapse-after: 5 + +version-resolver: + major: + labels: + - 'type: breaking' + + minor: + labels: + - 'type: feature' + + patch: + labels: + - 'type: bug' + - 'type: maintenance' + - 'type: documentation' + - 'type: ci' + - 'type: dependencies' + - 'type: security' + + default: patch + +exclude-labels: + - 'skip-changelog' diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml new file mode 100644 index 0000000..b54476a --- /dev/null +++ b/.github/workflows/release-drafter.yml @@ -0,0 +1,24 @@ +--- + +name: Release Drafter + +on: + push: + branches: [ main ] + +permissions: + contents: read + +jobs: + update_release_draft: + name: Update release Draft + runs-on: ubuntu-latest + + permissions: + contents: write + pull-requests: write + + steps: + - uses: release-drafter/release-drafter@v6 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}