From 10f2fdc5472f381a2e5e05e4ce7926c5f927abe7 Mon Sep 17 00:00:00 2001 From: Richard North Date: Mon, 2 Aug 2021 14:01:26 +0100 Subject: [PATCH] Add release drafter Copied from testcontainers-java configuration --- .github/release-drafter.yml | 25 +++++++++++++++++++++++++ .github/workflows/release-drafter.yml | 17 +++++++++++++++++ 2 files changed, 42 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..4da3410 --- /dev/null +++ b/.github/release-drafter.yml @@ -0,0 +1,25 @@ +name-template: $NEXT_PATCH_VERSION +tag-template: $NEXT_PATCH_VERSION +template: | + # What's Changed + + $CHANGES +categories: + - title: โš ๏ธ Breaking API changes + label: type/breaking-api-change + - title: ๐Ÿš€ Features & Enhancements + labels: + - type/feature + - type/enhancement + - title: โ˜ ๏ธ Deprecations + label: type/deprecation + - title: ๐Ÿ› Bug Fixes + label: type/bug + - title: ๐Ÿ“– Documentation + label: type/docs + - title: ๐Ÿงน Housekeeping + labels: + - type/housekeeping + - type/test-improvement + - title: ๐Ÿ“ฆ Dependency updates + label: dependencies diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml new file mode 100644 index 0000000..bab32b2 --- /dev/null +++ b/.github/workflows/release-drafter.yml @@ -0,0 +1,17 @@ +name: Release Drafter + +on: + push: + branches: + - master + pull_request: + types: [opened, reopened, synchronize] + +jobs: + update_release_draft: + if: github.repository == 'testcontainers/moby-ryuk' + runs-on: ubuntu-latest + steps: + - uses: release-drafter/release-drafter@fe52e97d262833ae07d05efaf1a239df3f1b5cd4 # v5.15.0 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}