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 }}