diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml new file mode 100644 index 0000000..ed97530 --- /dev/null +++ b/.github/release-drafter.yml @@ -0,0 +1,44 @@ +name-template: "Keycloak Event Listener for Temporal $RESOLVED_VERSION" +tag-template: "v$RESOLVED_VERSION" +change-template: "- $TITLE by @$AUTHOR (#$NUMBER)" +no-changes-template: "- No changes" +categories: + - title: "📚 Documentation" + labels: + - "documentation" + - title: "🚀 New Features" + labels: + - "enhancement" + - title: "🐛 Bug Fixes" + labels: + - "bug" + - title: "🧰 Maintenance" + labels: + - "maintenance" + +version-resolver: + major: + labels: + - "major" + minor: + labels: + - "minor" + patch: + labels: + - "patch" + default: patch +template: | + $CHANGES + + ## 👨🏼‍💻 Contributors + + $CONTRIBUTORS +autolabeler: + - label: "documentation" + files: + - "docs/**/*" + - label: "maintenance" + files: + - ".github/**/*" + - ".devcontainer/**/*" + - "test/**/*" diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml new file mode 100644 index 0000000..475aa5a --- /dev/null +++ b/.github/workflows/release-drafter.yml @@ -0,0 +1,25 @@ +name: Release Drafter + +on: + push: + branches: + - main + pull_request_target: + types: + - edited + - opened + - reopened + - synchronize + workflow_dispatch: {} + +jobs: + update_release_draft: + permissions: + contents: write + pull-requests: write + runs-on: ubuntu-latest + steps: + - name: "Draft Release" + uses: release-drafter/release-drafter@v5.24.0 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}