diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml new file mode 100644 index 0000000..99e93c8 --- /dev/null +++ b/.github/release-drafter.yml @@ -0,0 +1,64 @@ +name-template: "v$RESOLVED_VERSION" +tag-template: "v$RESOLVED_VERSION" +categories: + - title: "🚧 Breaking changes" + labels: + - "major-bump" + - title: "🚀 New Features" + labels: + - "feature" + - "enhancement" + - title: "🐛 Bug Fixes" + labels: + - "fix" + - "bugfix" + - "bug" + - title: "🧰 Maintenance" + labels: + - "chore" + - "other" + - "dependencies" + - title: "📝 Documentation" + labels: + - "documentation" +version-resolver: + major: + labels: + - "major-bump" + minor: + labels: + - "minor-bump" + - "feature" + patch: + labels: + - "patch-bump" + default: patch +exclude-labels: + - "skip-changelog" +autolabeler: + - label: "chore" + title: + - "/chore/i" + branch: + - '/chore\/.+/' + - '/dependabot\/.+/' + - label: "fix" + title: + - "/fix/i" + branch: + - '/fix\/.+/' + - label: "feature" + title: + - "/feat/i" + branch: + - '/feature\/.+/' + - '/feat\/.+/' + - label: "documentation" + title: + - "/docs/i" + branch: + - '/docs\/.+/' +template: | + # Changes since $PREVIOUS_TAG + + $CHANGES diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml new file mode 100644 index 0000000..354ab09 --- /dev/null +++ b/.github/workflows/release-drafter.yml @@ -0,0 +1,19 @@ +name: Release Drafter + +on: + push: + # branches to consider in the event; optional, defaults to all + branches: + - master + # Only required for the autolabler + pull_request: + types: [opened, reopened, synchronize] + +jobs: + update_release_draft: + runs-on: ubuntu-latest + steps: + # Drafts your next Release notes as Pull Requests are merged into "master" + - uses: release-drafter/release-drafter@v5 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}